|
Page 1 of 1
|
[ 8 posts ] |
|
| Author |
Message |
|
piedmont
Rookie
Joined: Fri Dec 02, 2011 6:21 pm Posts: 5
|
 Sensor Multiplexer
Hello,
Does someone have a step-by-step tutorial on how to install the HiTechnic Sensor Multiplexer (NOT the HiTechnic TOUCH Multiplexer)? If you do, could you please post it on the forum? Thank you in advance.
|
| Fri Dec 16, 2011 10:56 am |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Sensor Multiplexer
1. Download Xander's driver suite if you haven't already ( http://botbench.com/blog/robotc-driver-suite/) 2. Make sure you installed a 9V battery in the Sensor MUX and turn the power ON. 3. In your code, include Xander's Sensor MUX driver: 4. Connect the Sensor MUX upstream port (not any of the ports labeled 1, 2, 3, 4) to one of the sensor ports of the NXT (S1-S4). 5. Connect whatever sensors you want to use to the Sensor MUX ports 1-4. 6. Add the following lines to your code below the include line in step 3 above. 7. Call Xander's driver to access the sensors.
|
| Fri Dec 16, 2011 5:10 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
|
 Re: Sensor Multiplexer
Thanks MHTS  I saw this mail this morning but I was on my way out for the day. I couldn't have explained it better myself  - Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Sat Dec 17, 2011 7:04 pm |
|
 |
|
arendyl
Rookie
Joined: Thu Nov 29, 2012 2:16 pm Posts: 3
|
 Re: Sensor Multiplexer
Hi, I am new to robotc, and I am using the multiplexer to add two force sensors. Could somebody explain to me how to "Call Xander's driver to access the sensors" for the force sensor? Everything else seems to be in working order. thanks
|
| Thu Nov 29, 2012 2:20 pm |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Sensor Multiplexer
Please refer to Xander's sample code hitechnic-force-SMUX-test1.c. To play with this sample code, connect the Sensor MUX to NXT Sensor port 1 (S1) and connect the force sensor to port 1 of the Sensor MUX. Compile and run Xander's test program and notice the force reading on the LCD display. If that works, then you can look at the source code of the sample regarding how to call Xander's driver to do the same.
|
| Thu Nov 29, 2012 2:38 pm |
|
 |
|
arendyl
Rookie
Joined: Thu Nov 29, 2012 2:16 pm Posts: 3
|
 Re: Sensor Multiplexer
The force sensor works fine on its own, i just want to know how to reference it with as connected to the Sensor MUX, like you represented with these
|
| Thu Nov 29, 2012 3:34 pm |
|
 |
|
MHTS
Guru
Joined: Sun Nov 15, 2009 5:46 am Posts: 1023
|
 Re: Sensor Multiplexer
If you look at Xander's sample code, excerpt below: Then you will see the line (extracted below). That's how you read the sensor.
|
| Thu Nov 29, 2012 4:41 pm |
|
 |
|
arendyl
Rookie
Joined: Thu Nov 29, 2012 2:16 pm Posts: 3
|
 Re: Sensor Multiplexer
ah. great, thanks. still learning the ropes
|
| Fri Nov 30, 2012 12:34 am |
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 6 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
|
|