|
Page 1 of 1
|
[ 7 posts ] |
|
Ultrasonic sensors, please can you modify the address?
| Author |
Message |
|
liaoze22
Rookie
Joined: Sat Mar 09, 2013 2:34 am Posts: 7
|
 Ultrasonic sensors, please can you modify the address?
I want to install multiple ultrasonic sensors on the same interface,Ultrasonic sensors, please can you modify the address? Is the default address 0 x02, I want to change to such as "0 x5a"
|
| Sat Mar 09, 2013 2:42 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2905 Location: Rotterdam, The Netherlands
|
 Re: Ultrasonic sensors, please can you modify the address?
No, you can't. The sensor does not support this. However, you could easily use one of the HiTechnic Sensor MUXes to connect up to 4 of these sensors to your robot. You can find out more about them here: http://www.hitechnic.com/cgi-bin/commer ... ey=NSX2020= 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 Mar 09, 2013 4:18 am |
|
 |
|
liaoze22
Rookie
Joined: Sat Mar 09, 2013 2:34 am Posts: 7
|
 Re: Ultrasonic sensors, please can you modify the address?
Oh, thank you! HiTechnic Sensor MUXes This product is currently out of stock. I want to use 51 or AVR MCU reads the ultrasonic sensor to use on the other robot controller, but I according to the I2C protocol program, without success, could you tell me where have this information? I am Chinese, my English is not good, I am use translation software to translate Chinese into English, if grammar is not correct, please forgive me.
|
| Sat Mar 09, 2013 4:53 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2905 Location: Rotterdam, The Netherlands
|
 Re: Ultrasonic sensors, please can you modify the address?
liaoze22, I am not sure I understand you correctly. You want to use an AVR microcontroller to read the Ultra Sound sensor and then use the NXT to read from the AVR? Which AVR do you want to use? The Arduino? If you want to use the Arduino in combination with the NXT, you should take a look at Mattallan's library for Arduino: http://mattallen37.wordpress.com/arduino-libraries/To use the Ultra Sound sensor with the Arduino, you should take a look at the NXShield, which Mindsensors makes. Again, Mattallan has written some libraries for using that: http://mattallen37.wordpress.com/2012/0 ... -released/More information on the NXShield can be found here: http://www.openelectrons.com/index.php? ... &PAGE_id=7Let me know if this is the information you were looking for. = 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 Mar 09, 2013 5:54 am |
|
 |
|
liaoze22
Rookie
Joined: Sat Mar 09, 2013 2:34 am Posts: 7
|
 Re: Ultrasonic sensors, please can you modify the address?
I have another robot controller (not the NXT, has nothing to do with the NXT, is made in China), the sensor input interface is 485, I just want to use the NXT ultrasonic sensors, with AVR MCU read out values,Then converted into 485, Transfer to another controller of the robot, I need to read the code of ultrasonic sensor, with MCU
|
| Sat Mar 09, 2013 6:43 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2905 Location: Rotterdam, The Netherlands
|
 Re: Ultrasonic sensors, please can you modify the address?
I can't help you with the code itself, but if you're looking to use an AVR controller with the US sensor, you should look at the NXShield library that Matt wrote. The US sensor is a very difficult one, the timing is very specific. It can't be used at very high speeds, when you exceed about a 10KHz I2C clock speed, it will simply stop working. There are additional requirements with regards to start conditions. As I said before, you should read the code that Matt has written for more information about that.
Regards, 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 Mar 09, 2013 7:28 am |
|
 |
|
liaoze22
Rookie
Joined: Sat Mar 09, 2013 2:34 am Posts: 7
|
 Re: Ultrasonic sensors, please can you modify the address?
Ok, thank you
|
| Sat Mar 09, 2013 7:43 am |
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 4 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
|
|