View unanswered posts | View active topics It is currently Wed Aug 20, 2014 11:06 pm






Reply to topic  [ 7 posts ] 
More than four sensors on one brick? 
Author Message
Rookie

Joined: Thu Nov 17, 2011 1:30 am
Posts: 6
Post More than four sensors on one brick?
Is it possible to daisy chain multiple sensors to get more than four sensors operating off of one NXT brick?


Thu Nov 17, 2011 2:12 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: More than four sensors on one brick?
Yes, you can. You will need to use a sensor multiplexer.

_________________
sudo rm -rf /


Thu Nov 17, 2011 2:23 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: More than four sensors on one brick?
There are many ways to do that. But the simplest way is to just buy one. Here are all of the ones I know of:

HiTechnic Active

HiTechnic Passive

Mindsensors Passive

Mindsensor Active

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Thu Nov 17, 2011 2:27 pm
Profile WWW
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Re: More than four sensors on one brick?
That "mindsensors active" "multiplexer" is just a port splitter. It isn't a multiplexer of any sort.

_________________
Matt


Thu Nov 17, 2011 4:21 pm
Profile WWW
Rookie

Joined: Thu Nov 17, 2011 1:30 am
Posts: 6
Post Re: More than four sensors on one brick?
thanks for the info.


Thu Nov 17, 2011 8:55 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3188
Location: Rotterdam, The Netherlands
Post Re: More than four sensors on one brick?
When using the Mindsensors splitter, you also need to be mindful of the fact that you cannot attach sensors that consume too much power together. There is a limit to how much you can draw form each sensor port. Another important thing to note is that the splitter does not allow 2 or more devices with the same I2C addresses to work together. You also need to use sensors that either disable their internal pull-up resistors or that can handle the fact that there's multiple sensors on the bus that have them.
The HiTechnic MUX is very nice and allows you to have multiple sensors on there that are identical and have identical I2C addresses without issue. However, it is a "read-only" multiplexer. In other words, you cannot send commands to the connected sensor. For example, if you had a compass connected to the HT SMUX, you would't be able to send it the calibration command, but you could read the data from it just fine. The HT SMUX also allows you to connect both analogue -and- digital sensors, something the Mindsensors splitter does not, it only allows digital.

So, which one should you get? Depends on what you want to do :)

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Nov 18, 2011 2:14 am
Profile WWW
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Re: More than four sensors on one brick?
mightor wrote:
...The HT SMUX also allows you to connect both analogue -and- digital sensors, something the Mindsensors splitter does not, it only allows digital...

- Xander

Actually, the analog lines are connected, they are just all tied together (like all the other pins). So if you use I2C sensors that aren't reliant on the analog line, you can use the analog line with an analog sensor at the same time as you are using I2C sensors on the other ports.

_________________
Matt


Fri Nov 18, 2011 2:21 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.