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](/proxy/?url=https://content.instructables.com/FA1/HSA6/IKMV6DHY/FA1HSA6IKMV6DHY.jpg&filename=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](/proxy/?url=https://content.instructables.com/FK7/ROCN/IKMV6DI8/FK7ROCNIKMV6DI8.jpg&filename=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](/proxy/?url=https://content.instructables.com/FFX/90IO/IKMV6DLX/FFX90IOIKMV6DLX.jpg&filename=20160214_162623[1].jpg)
https://github.com/felis/USB_Host_Shield_2.0
Use the PS3 library only
Add the Motor Code Too the PS3 Code
https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library
USB Debugging on PS3 BT
![unnamed.png](/proxy/?url=https://content.instructables.com/F7A/EL70/IKMV6DJ6/F7AEL70IKMV6DJ6.png&filename=unnamed.png)
![unnamed (1).png](/proxy/?url=https://content.instructables.com/FQP/DA32/IKMV6DJ7/FQPDA32IKMV6DJ7.png&filename=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.