NXT sensor cable pinouts ![]() from: http://en.wikipedia.org/wiki/Lego_Mindstorms_NXT Arduino pinouts Similar to our project NXT Ultrasonic I2C sensor Ultrasonic schematic: blog.tkjelectronics.dk/wp-content/uploads/Appendix-6-LEGO-MINDSTORMS-NXT-Ultrasonic-Sensor-hardware-schematic.pdf Arduino and NXT Ultrasonic Sensor NXT Hardware developer kit:blog.tkjelectronics.dk/wp-content/uploads/LEGO-MINDSTORMS-NXT-Hardware-Developer-Kit.pdf Measurements with Ultrasonic: www.tik.ee.ethz.ch/mindstorms/sa_nxt/index.php?page=print Infrared-Ultrasonic Beacons - www.convict.lu/htm/rob/ir_us.htm From Lego Mindstorms NXT Hacker's guide page 116 Equipped with its own microconroller, the NXT ultrasonic sensor is able to accurately measure the distance between itself and an object that is in its path. It has an emitter and receiver. The emitter generates an ultrasonic sound that is "chirped" from a piezo crystal microphone-like element. This chirp has a fequency of 40 kHz and a sound level of 110 dB when measured at 30 cm. Once this sound wave reaches an object, it is reflected back to the sensor. This reflection is called an echo. Once this echo has been detected, the onboard microcontroller calculates the amount of time that has elapsed between the initial chipr and the reception of the return echo. Emissions ranging from single chirps to time-delayed "bursts" of chirps can be programmed into the Brick. The spacings of these bursts can be controlled between 80 msec and 2.5 s. The default burst rate is 10 - 15 bursts per second. A deflection of approx. -10 to +10 cm either side of the sensor's centerline will rpoduce valid measurements. Degradation of distances greater than 78 cm. Light Hacking an NXT light sensor Links http://letsmakerobots.com/node/6855 converting voltage reading to pH values: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?action=print;num=1259762518 Instructable to hack an NXT light sensor: http://www.instructables.com/id/Simple-interfacing-Lego-Mindstorms-NXT-to-Arduino-/
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1221664564/Arduiono vs NXT: http://blog.tinyenormous.com/2008/05/22/lego-nxt-vs-arduino/ Using Arduino in physics class: http://quarkstream.wordpress.com/lessons-in-arduino/ Digital Sensors - I2C Arduino and the I2C bus Using the NXT to interface with I2C Wiring Arduino Duemilanove, Uno or100% compatible board, you will be using pins A4 for SDA (data) and A5 for SCL (clock). So, from the NXT cable, pin 5 from the NXT cable plugs into A5 on the Arduino and pin 6 from the NXT cable plugs into A4 on the Arduino. Arduino and I2C
|
Robotics >

