Robot Control Using Bluetooth Xbox Controller

Robot and 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 NameQuantity
Mbedmbed LPC17681
DC MotorsHobby DC Gear Motor - 140 rpm2
Robot ChassisShadow Robot Chassis1
WheelsWheel - 65mm2
Dual H BridgeSmartfun Dual H Bridge1
HC05HC05 Bluetooth Module1
Battery HolderBattery Holder1
Xbox One ControllerXbox One Controller1

Pinouts

MbedDual H-BridgeDC MotorsBattery
VinVmot+
GndGnd-
VoutVcc
p21PWMB
p22BIN2
p23BIN1
p24AIN1
p25AIN2
p26PWMA
Vout/STBY
A01left-red
A02left-blk
B02right-blk
B01right-red
MbedHc05External 5V
gndgndgnd
p9TX
p10RX
Vcc5VDC
ncKey
p11State

Schematic

Schematic


Software

Mbed Code

Import programRPC_Bluetooth_Bot

Code to control HC05 bluetooth bot

C# Code

Github Page


Video Demonstration


Please log in to post comments.