To start the interfacing between the Arduino and the PS2 controller. I downloaded Bill Porter's PS2x library. Then I added some code to make it so when the "Select" and "Start" button were pushed they lit up a corresponding LED.
Here you can see when the "Select" button is pushed the bottom LED lights up.
Here you can see when the "Start" button is pushed the top LED lights up.
Here is a setup I created to show that when a certain button on the D-Pad was pushed a corresponding LED would light up. The top red LEDs are for "Select" and "Start" buttons.
Here are some videos of how the buttons on the PS2 controller are going to control motors on the ROV.
Here are the wiring diagrams used to wire the PS2 controller to the Arduino.
No comments:
Post a Comment