Jose Pino's projects & tidbits
"Great stuff from someone with an inquisitive mind"

Hacking the LEGO NXT

As the LEGO NXT is more complicated than the RCX; I had to do my own research to be able to hack the NXT connectors. Here is some interesting information about the signals from LEGO Mindstorms NXT. (8/2/2007)


Source: http://www.josepino.com/?hacking_lego_nxt   Tags: lego howto projects electronics robots

If you are a millionaire and able to buy a LEGO Mindstorms NXT, you may find kind of difficult to hack it or create homemade sensors.

ntx connector I believe you already noticed the particular jack that comes with the NXT. It looks like a telephone jack, but the latch is located in one side, making difficult to connect any other cable.
Taken from http://www.josepino.com
That is not a big problem; filling off the latch from a 6-wires telephone connector (RJ-12) may do the job. Once I was able to connect a telephone cable to the NXT, I started to test the signals. Here is what I found:

lego connector input

Holding the connector as the picture shows.

White wire - Appears to be an Analog input, using a variable resistor connected to ground (BLACK) and ~4.5V (GREEN), the NXT measures the voltage coming from this pin. However, some short pulses comes out of this pin; with a capacitor, it stores more than 5 volts

Black wire - Ground. Connected to NEGATIVE.

Red wire - Appears to be grounded. Looks like is connected to NEGATIVE.

Green Wire - There is approximately 4.5 volts coming from this wire. I believe this voltage is used to provide power for the circuit connected at the Analog input (WHITE). If so, I think the maximum voltage at the pin 1 (WHITE) should not reach or exceed 5 Volts.

Yellow wire - I got pulses from this pin. I believe this is used for serial communication together with the Blue wire. If so, this wire must be I2C SCL.

Blue wire - I believe this is the data signal used for I2C port. If so this is the SDA.

Here is the pinout information that I was able to get from the Output ports of the NXT:

connector output signals White wire - Used with the black wire, this pin provides power to the motor. If this line is set as NEGATIVE and the black wire is set as POSITIVE, the motor will rotate in one direction. Set as POSITIVE and the black wire set as NEGATIVE, the motor will reverse. This port is controlled by PWM to set the power level or speed. When the NXT set the motor as brake, it provides low voltage and low current on both signals

Black wire - Explained on the WHITE wire.

Red wire - Grounded wire or NEGATIVE.

Green Wire - There is approximately 4.5 volts coming from this wire. I believe this voltage is used to provide power for the optical sensor that measures the speed and angle when the motor is running.

Yellow wire - Encoder signal 1. Used with the Blue wire, it provides pulses to the NXT to determine the direction and speed of the motor.

Blue wire - Encoder signal 2. It receives pulses from the encoders located in the motor and used with the yellow pin.

Basically, that's all the information that I was able to get from the NXT. I still trying to figure if this information is correct and it may void the warranty or damage the NXT. This information is for educational purposes only.


< www.grown-furniture.co.uk   Home   Halloween Decorations: Spiders>

Share your comments and experience:
Keep it short, Comments with bad words, spam and non-related will be deleted.

Name:   Location:
Captcha:   <-- This is the Captcha
Your Comments:

Bookmark or Bookmark and Share Suscribe to RSS Feeds

10 most viewed pages:

- How To Make a Speaker
- Hi-fidelity Homemade Loudspeaker.
- Tachometer/RPM II.
- Homemade WiFi Lid Antenna.
- Super Simple Sun Tracker.
- Led Clock
- USB LED Light.
- How To Repair Sony PSP
- Knowing Everything.
- Matrix Led Display.

Articles related:

- ADC without ADC.
- Beakman Motor
- Coin Mechanism for Coin-operated Projects I.
- DIY Coin Mechanism for vending machine II
- DIY Coin Mechanism for Vending Machine III
- Crafts: Bottle Fish.
- Discovering Lego Mindstorms.
- Electric 'LEGO' Motor
- Electric 'LEGO' Motor II
- LEGO Fan.
- Free Energy from the Sea.
- Growing Salt Crystals.
- Hacking the LEGO NXT
- Halloween Decorations: Spiders
- Halloween Decorations: Ghost
- Halloween Decorations: Spiderweb
- Hitachi LCD Displays
- Homemade Gramophone (Phonograph)
- Hi-fidelity Homemade Loudspeaker.
- How To Control Multiple Leds
- How To Repair Sony PSP
- How To Make a Paper Plane.
- How To Repair Dell E172Fbp Display
- How To Make a Barometer.
- How To Make a Paper Cup
- How to Make a Pinwheel.
- How to make a Thermometer
- Homemade WiFi Lid Antenna.
- "Lens Error" on Kodak cameras.
- Make Mexican Paper Decorations.
- Making High Impedance Headphones
- NTX Gramophone / Vinyl Record Player
- One Second Timebase.
- Paperclip ideas
- Paperclip Ideas II
- Reset a frozen iPod.
- Resistors
- Robotic Arm
- Mini-Rocket.
- Rotating Cake Tray with Lego
- Trying to build a "Robot"
- Super Simple Sun Tracker.
- Toothpicks designs.
- Toothpicks with yummy designs.
- A "Walking" Robot
- Walking Robot III.
- Walking Robot IV.
- Walking Robot V
- Wood Gas or Biogas experiment

All categories:

- about
- advertisement
- audio
- automobile
- bad_ones
- best
- circuits
- computer
- discover
- diy
- electronics
- fail
- food
- from_readers
- funny
- furniture
- hacks
- homemade
- how_it_works
- howto
- humor
- interesting
- lego
- light
- microcontroller
- mysql
- opinion
- php
- projects
- readings
- realmeal
- religion
- robots
- science
- scripts
- trips
- videos
- websites
- woodworking


Mr. Counter says: 1121 views.

Search Article

Additional Links:

- Mary's Creations.
- Publicidad Gráfica.
- Todito Yucatán
- Lucina Castillo's Art
- Conoce Amigos en Dalnet
- Narciso González' Alebrijes

Need to contact me?
e-mail address
Please get a good reason before sending me an e-mail.

IE, Firefox, SeaMonkey & Opera tested OK, Some features may not work with Google Chrome. © 2006 - 2009 José Pino - JPC-PHP V5.0
If any information, data, picture or design infringes a copyright material, please send me an e-mail asking to remove it along with the supporting data.