xBee Remote Robot

Kevin and Ilya's design project ft. xBee

This project involves controlling one Mbed with another over Series 1 XBee modules. The first mbed broadcasts left and right speed values generated by two Phidget sliders encoded within an 8-bit char.The values are then passed to two independent H-bridge drivers to enable a tank-drive style setup on a Sparkfun Magician Chassis robot.

Photos

/media/uploads/ikhorosh/img_20111013_002344.jpg

/media/uploads/ikhorosh/_scaled_img_20111013_002423.jpg

Parts list

xBee Series 1 http://www.sparkfun.com/products/8664

Sliders/Pots http://www.phidgets.com/products.php?product_id=1112

H-Bridge http://www.pololu.com/catalog/product/706

Instructions

1) Assemble the Magician Chassis (http://www.sparkfun.com/products/10825) robot.

2) Connect the H Bridges to the robot mBed using the schematic below:

Mbed..........H-bridge.............Power supply.............Motor

Vu.............5V (IN)

Gnd.............Gnd

p22.............IN_B

p20.............IN_A

Pull high.......EN_A

Pull high.......EN_B

pwm.............pwm

...............+ motor supply........+ power supply

GND.........- motor supply........Ground of power supply

.............OUT A.............................................Motor wire 1

.............OUT B.............................................Motor wire 2

3) Connect the xBee with the robot mBed

xBee..........mBed

1.............Vout

2.............p10

3.............p9

5.............Rst(p11)

10............Gnd

4) Attach the + power supply to Vin on mBed. Attach the - power supply to Gnd on the mBed

5) Connect the controller mBed to the xBee

xBee..........mBed

1.............Vout

2.............p10

3.............p9

5.............Rst(p11)

10............Gnd

6) Connect the slider to the mBed

Slider............mBed

white............Vcc

red..............p15

black............Gnd

7) Load the mBeds with the code.

Robot code: http://mbed.org/users/ikhorosh/programs/Lab3_Robot/lyyu93

Controller: http://mbed.org/users/ikhorosh/programs/Lab3_Controller/lyzmjr

8) Enjoy!

Video


Report

Please login to post comments.