PS3 Controlled Nomad 4 Wheel Drive Truck

by Chaitanya Sanghadia in Circuits > Arduino

1385 Views, 13 Favorites, 0 Comments

PS3 Controlled Nomad 4 Wheel Drive Truck

20160214_160816[1].jpg

PS3 Controlled Truck

Build Nomad 4 Wheel Drive Truck

https://www.servocity.com/html/nomad_4wd_off-road_chassis.html#.VsEDnfIrK00

Add an Arduino UNO, USB Host Controller, and Motor Shield

20160214_155825[1].jpg

https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/overview

Connect the Motors, and Bluetooth Dongle

Connect the 4 motors to the motor shield( use the Monster Moto shield from sparkfun). Then connect the Bluetooth dongle to the USB host shield

Check PS3 Bluetooth Connectivity

20160214_162623[1].jpg

Add the Motor Code Too the PS3 Code

https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library

USB Debugging on PS3 BT

unnamed.png
unnamed (1).png

Enabling debugging

Step 1: Open setting.h from the USB Host Shield Library

Step 2: Enable debugging by changing 0 to 1

Coding

Map the up and down movements(Y) on the PS3 joystick(only one of them) to forward speed and backward speed

Map the left and right movements(X) on the PS3 joystick(the other one) to left and right turns( they will both turn on and off the differnt motors respectively.

Start Playing!