Robot Control Using Bluetooth Xbox Controller

Team Members
- Kevin Dickerson
- Neal Kurande
- Jonah Carlisle
Description
This page gives instructions on how to build a robot capable of being controlled via an Xbox One controller over bluetooth. Both the controller and the mbed robot are connected to the COM ports of a separate computer using bluetooth. A C# program utilizing the DirectInput libraries is then used as a middleman to interpret and relay the inputs from the controller to the robot using RPC commands.
Hardware
Required Parts
| Part Name | Quantity | |
|---|---|---|
![]() | mbed LPC1768 | 1 |
![]() | Hobby DC Gear Motor - 140 rpm | 2 |
![]() | Shadow Robot Chassis | 1 |
![]() | Wheel - 65mm | 2 |
![]() | Smartfun Dual H Bridge | 1 |
![]() | HC05 Bluetooth Module | 1 |
![]() | Battery Holder | 1 |
![]() | Xbox One Controller | 1 |
Pinouts
| Mbed | Dual H-Bridge | DC Motors | Battery |
|---|---|---|---|
| Vin | Vmot | + | |
| Gnd | Gnd | - | |
| Vout | Vcc | ||
| p21 | PWMB | ||
| p22 | BIN2 | ||
| p23 | BIN1 | ||
| p24 | AIN1 | ||
| p25 | AIN2 | ||
| p26 | PWMA | ||
| Vout | /STBY | ||
| A01 | left-red | ||
| A02 | left-blk | ||
| B02 | right-blk | ||
| B01 | right-red |
| Mbed | Hc05 | External 5V |
|---|---|---|
| gnd | gnd | gnd |
| p9 | TX | |
| p10 | RX | |
| Vcc | 5VDC | |
| nc | Key | |
| p11 | State |
Schematic

Software
Mbed Code
Import programRPC_Bluetooth_Bot
Code to control HC05 bluetooth bot
C# Code
Video Demonstration
Please log in to post comments.









