Robotic Car by PS2 Wireless Remote
This project is said to basic steps in artificial intelligence world. you may learn to assemble a 4WD robotic automobile kit, putting hardware thereon and dominant it with a wireless PS2 remote. This project is said to basic steps in artificial intelligence. Robotic automobile chassis for this project, solely you would like to create a touch ever-changing in hardware and program in step with your chassis.
Hardware Components :
-
Arduino UNO
-
L298N Motor Driver
-
PS2 Wireless Remote and Receiver
-
18650 Rechargeable 3.7 V Cellsx 2
-
Battery/Cell Holder
-
Jumper Wires
For Battery Charging/Protection Purpose you may add extra components
Hardware Connections
we are using 6 pins from the PS2 receiver (DATA, COMMAND, +3.3V, GND, ATTENTION, CLOCK).
Arduino Pin----------------------PS2 Receiver Pin
DATA----------------------------------Pin 12
COMMAND--------------------------Pin 11
+3.3V----------------------------------3.3V pin of Arduino
GND-----------------------------------GND
ATTENTION-------------------------Pin 10
CLOCK--------------------------------Pin 9
Programming half
Add the hooked up PS2 controller library in your Arduino IDE package, then transfer the code in your Arduino Board. you'll be able to use each joysticks on PS2 remote to regulate the automobile, press L1 to use left joystick, and R1 to use right joystick.
Debugging
• As way as dominant robots goes, manufacturers nowadays area unit spoilt for selection. {wifi|wireless local area unita network|WLAN|wireless fidelity|WiFi|local area network|LAN} and Bluetooth enabled microcontrollers are a dime a dozen, and integration with smartphone app
• Make certain the 2 right facet motors area unit running in same direction and left facet motors additionally runs in same direction. amendment the polarity of anyone motor from a facet if each motors don't run in same direction. If you pushed the joystick forward and automobile goes reverse, alter the polarity of motors, or just amendment the Arduino pins.
• The motors area unit controlled by associate degree L298N H-bridge board, with power courtesy of a trio of 18650 batteries. associate degree Arduino Uno acts because the brains of the operation. management is via a Playstation two controller, during this case a two.4 rate third party version. this enables the automaton to be controlled wireless.
• Use PS2 Libraries in arduino #include <PS2X_lib.h> #include<SoftwareSerial.h>
Without these library not going to compile.