The code includes functions for controlling the robot's movements in different directions, speed, angle, lift, and shooting. The robot also has a sensor for detecting magazine, and there is a function for delaying the robot if the magazine is detected for ABU Robot Contest Thailand Championship 2017.
The following hardware is required to run this code:- PIC16F877 Microcontroller
- Joystick
- Four-wheel robot
- Magazine sensor
The robot is controlled using a joystick. The following keys control the robot's movements:
- A: Move forward
- B: Move backward
- C: Move left
- D: Move right
- H: Roll right
- G: Roll left
- K: Shoot
- I: Magazine
- L: Increase speed of the roll and shoot
- J: Decrease speed of the roll and shoot
- E: Lift up
- F: Lift down
- M: Angle up
- N: Angle down
This code is licensed under the MIT License. See the LICENSE file for details.