ROBOTC.net forums
http://www.robotc.net/forums/

Ultrasonic sensors, please can you modify the address?
http://www.robotc.net/forums/viewtopic.php?f=1&t=5600
Page 1 of 1

Author:  liaoze22 [ Sat Mar 09, 2013 2:42 am ]
Post subject:  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"

Author:  mightor [ Sat Mar 09, 2013 4:18 am ]
Post subject:  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

Author:  liaoze22 [ Sat Mar 09, 2013 4:53 am ]
Post subject:  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.

Author:  mightor [ Sat Mar 09, 2013 5:54 am ]
Post subject:  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=7

Let me know if this is the information you were looking for.

= Xander

Author:  liaoze22 [ Sat Mar 09, 2013 6:43 am ]
Post subject:  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

Author:  mightor [ Sat Mar 09, 2013 7:28 am ]
Post subject:  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

Author:  liaoze22 [ Sat Mar 09, 2013 7:43 am ]
Post subject:  Re: Ultrasonic sensors, please can you modify the address?

Ok, thank you

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/