Introduction: Simple PS3 Arduino Project
Hello to everyone.Let's introduce myself.My name is dimitris and i am from Greece.I love very much Arduino becasuse it's smart board.I will try to describe as best as i can this instructable in order to make by anyone.So let's start.
Step 1: Materials
I use these materials:
Arduino Uno
Arduino USB Host Sheild
2A Dual Motor Controller
Chassis from ebay
Jumper Wires F/M
Jumper Wires M/M
PS3 Controller
USB Bluetooth
Battery Holder(for 6 AA batteries)
Some screws
Links
http://www.ebay.com.au/itm/NEW-2016-Arduino-UNO-R3...
http://www.ebay.co.uk/itm/Arduino-USB-Host-Shield-...
http://www.dfrobot.com/index.php?route=product/pro...
http://www.ebay.co.uk/itm/Smart-Robot-Car-Chassis-...
http://www.ebay.co.uk/itm/40-pcs-10cm-Dupont-Jumpe...
http://www.ebay.co.uk/itm/BLUETOOTH-DUALSHOCK-3-SI...
Step 2: Chassis
Every robot needs a chassis.I buy my chassis from ebay and i am very pleased because the materials fits perfectly.If you want you can make your own chassis.You will need 20x20 plywood or plastic.Place the Arduino and usb host shield on the chassis with screws.Also, plug the usb bluetooth on USB host shield.
Step 3: Wiring Scheme
Follow this diagram to make the connections.E1 and E2 are the pwm of motor controller and have to be connected in pwm of arduino.E1 goes on pwm 3 of Arduino,M1 goes on digital pin 2 of arduino.E2 goes on pwm 5 of Arduino,M2 goes on digital pin 4 of Arduino.Connect the VS from the motor controller to vin pin of Arduino.The GND from motor Controller to GND of Arduino.Connect motor A and motor B as the image show and then place the motor controller with a screw near to the Arduino and usb host shield.Finally, place the 9V battery on the chassis and you are almost ready to go.
Step 4: How to Connect a PS3 Controller to an Arduino
The connection between Arduino and PS3 Controller is piece of cake.The only thing you have to do is to follow this video.
Step 5: Arduino Code
After you have paired your arduino with PS3 Controller you have to upload the sketch that i make.When you press X the two motors drive forward and when press Δ the motors drive backwards.When you press the right arrow the right motor drive forward and the other backward.When you press the left arrow the left motor drive backward and the other forward.When you upload the sktech disconnect the cable from pc and put 6 AA batteries on your Arduino power jack and you are ready.
Attachments
Step 6: Images From the Complete Project
That's it my PS3 project.Have fun
21 Comments
5 years ago
hi dimitrakis
the vehicle goes back, left and right. but it does not go forward what could be the reason?
6 years ago
Hello, ı am from turkey.I like very well your project.I make a robot with yours.I make to connect bluetooth dongle and ps3 but ı did not drive my robot because disconnected
Reply 6 years ago
Hello sir.Please follow the steps carefully and your robot will work.Have a nice day :)
6 years ago
Awesome tutorial! Seems easy to follow- thanks for making the video!
Will this work with Mbot?
Reply 6 years ago
Hello my friend yes it is very easy to make the project.Thank you for your support.i think that with some modifications will work with the mbot :)
6 years ago
What if you add a camera to the existing project. Would it work and how?
Reply 6 years ago
Hello my friend.There is an app on google play called ip webcam.
Download the app
https://play.google.com/store/apps/details?id=com....
and then follow this video
How to use IP Webcam ( Android) (HD 720p - 3D)
7 years ago
Quick question: Did you use a DUALSHOCK 3 controller or a SIXAXIS controller?
Reply 7 years ago
Hello.I used the original controller of PS3.
Reply 6 years ago
Thanks!
Reply 6 years ago
I am glad that i help you.Good luck with your project ;)
Reply 7 years ago
in my controller says dualshock 3 sixaxis.i hope that i help you :)
7 years ago
regardd
you have changed the baud rate of the interfacing code as 9600.
but the baud rate of your code was 115200. will that work. with different baud rates or we need to change that?
Reply 7 years ago
just follow my instructables and you do not have any problem :)
Reply 7 years ago
the braud rate should be 115200.i figure out that with 9600 the robot didn`t move at all.
7 years ago
can you please reply to me asap sir, as my project deadline is nearing.
7 years ago
hi sir, i have to control the robot car project. Where the rear wheels in the form of a dc motor is controlled with flex sensors and front wheels in the form of a servo motor controlled by the accelerometer sensor. Robot controller with a car connected with nrf24l01. if one of the sensors to control I can. but if it combines both to control I can not. Both sensors transmit data simultaneously . dc motors and servo motors confused receive data so that its movement is chaotic. How should I fix this? can you help me.? Can I send my program to you and you see.? Please. My email: rema_adhe@yahoo.com
Reply 7 years ago
Hello sir.Give me more details about your project like wiring connection,code and materials that you use.
Reply 7 years ago
I use : 2 Arduino uno, 2 flex sensor, L298 Dual H Bridge motor driver, 360 degree continuous servo motor, 2 motor dc, 2 NRF2401, Battery 110mah, MPU 6050.
Flex sensor control motor dc, which one controls for forward and the other controls the moving backward. MPU 6050 controls the servo motors to move the left and to the right serves as navigation or stir.So flex sensors and mpu are in the same board and the controlling dc motors and servo motors with wireless communication. My car robot robotic three-wheeled car, which dc motors and servo motors that material. I have to send the data from both flex sensors and mpu 6050 to control the robot car. If the one sensors used I can control it with one command but when three sensor and they combine all three types of commands to control it I cant. May I have your email to send my program code ?or please contact me back via email :rema_adhe@yahoo.com
7 years ago
Cool robot!