Break through! Today, we made large strides in our Robo Car project. For one, we got the code to recognize the PS2 wireless controller. The issue last time may have stemmed from the disconnecting wires. This was easily solved with some electrical tape. Once we pressed all the buttons to make sure the code recognized them all, we began adding some servo code to it. Since we didn't remember all the servo code for Arduino, we refreshed our knowledge with the GitHub servo code for Arduino. We first tried to connect up the servo through the servo motor driver. However, none of us could remember how to connect it up to the Arduino, so we simply connected the servo directly to the Arduino. We will figure out how to connect up the servo motor driver to the Arduino later on. Since we only had one servo to test with the code, we wrote in that the servo would move to position 100 when the left button was pushed and to position 30 when the right button was pushed. We got servo to move!!! During the build, the PS2 wireless controller died. Since we replaced the batteries last time, we realized that we were leaving the controller on for an extended period of time. In turn, we started to turn off the controller when we did not need to use it to get output data.
Next time:
- Connecting Arduino up to Donkey Car
- Connect up the servo motor driver so we can have more servos connected
- Connect up Arduino to Donkey Car motors
- Research about integrating code with Donkey Car
- Convert C++ to Python?
- Design and 3D print camera mount
- Controlling Donkey Car with the PS2 controller