NXT Keyboard for Ordering System

PDF24    Send article as PDF   
I’ve been working on an NXT Keyboard for an Ordering System to use with my LEGO Mindstorms NXT Robot Crane with Ball Sorting Conveyor System, in conjunction with my NXT Line Following Dump Truck. The Keyboard uses 6x RCX type Touch switches connected to my RCX-TouchMux Sensor Multiplexer.

Ordering System Keyboard
Ordering System’s Input Keyboard for My Ball Sorting & Delivery Mechanism.

I have one of Mindsensors’ TouchMux’s, but it doesn’t work very well with the legacy RCX style Touch Sensors.  Mindsensors make a very good a RCX Sensor multiplexer for NXT, the RXMux which allows you to connects up to 4 RCX style analogue sensors to your NXT. The RXMux Supports the following Sensors:

  • RCX Touch Sensor
  • RCX Light Sensor
  • RCX Rotation sensor
  • RCX Temperature sensor

As I often use more than 4 Touch Sensors in many of my Robots, I needed to construct the RCX-TouchMux as there is no commercial equivalent to my Knowledge available.

RCX Touch Sensor Mux Unit
NXT 8 Input RCX Touch Sensor Multiplexer Unit

The RCX-TouchMux is a fully compatible, I2C Bus Type Sensor, based on a Philips PCF8574 remote I/O expander. It’s a single integrated circuit that includes eight pins that can be either inputs or outputs. The PCF8574 has eight I/O pins that are labelled P0 to P7. Full Details in a previous Article: NXT – 8 Input RCX Touch Sensor Mux.

Demonstration of the NXT Keyboard for Ordering System

The NXT Keyboard for Ordering System allows you to order any number of four different coloured balls by pressing the corresponding key. The Large ‘Red Key’ cancels the order, while the large ‘White Key’ sends your order (eventually to the loading crane).

The Keyboard will be run from the Port 2 on the NXT Brick that controls the Crane, Ball Sorter and Conveyor system. With the RCXTouchMux being I2C based, if needed I can parallel up  with any other I2C sensor if needed, provided their I2C Address don’t clash. The NXTServo which controls the RC Servo Motors is also on Port 2, leaving Port 4, the RS-485 enabled port. RS-485 is required to drive a Dexter Industries NXTBee Modem which will relay to the delivery truck’s NXTBee, that an order is ready for pick-up.

NXTBee Modem
Dexter Industries NXTBee uses the Digi XBee Radio Modems

The software is written in NXC, and uses custom NXT Sound files to give audible feedback of inputs. Download Keyboard NXC Code, NXT Sound Files, and RCXTouchMux-lib files: KeyboardCode-and-RCXTouchMux-lib.zip (15Kb)

NXT Keyboard NXC Code:

 

RCXTouchMux Library NXC Code:

 

Need-More-Bricks

Previous Post

Line-Following Rotacaster Dump Truck

As promised a week or so ago, “too put the New Rotacaster Omni-Wheels through their paces”. They where just what I need for the Line-following Dump Truck I've build developing ... Read more

Next Post

Mindsensors NXTCam on Linux, with aNXTCam

Love Linux, have a Mindstorms NXT Kit, and your wishing for a Mindsensors NXTCam-v3, that works in Linux! If you are a Linux user and own a Mindsensor NXTCam, you ... Read more

Short URL: http://tinyurl.com/hmk4gzq

Leave a Reply

Your email address will not be published. Required fields are marked *



Do NOT follow this link or you will be banned from the site!
error: Content is protected !!