This is some programming for the arudino robot car found at this link. Although you can find code for this robot in the manual, the code in the manual has several things wrong with it that often produce an unnecessary amount of troubleshooting. Some problems with the code in the manual include:
- Programming Errors (eg. missing brackets or semicolons)
- Very bad codesmanship (eg. disorganized code, missing line indentations, inconsistent spacing, misplaced spaces, and more)
- The use of libraries that are difficult to install and not needed (eg SR04.h)
- Overcomplication of code by lack of function usage
- Incorrect pin numbers for components based on robot wiring instructions (eg. Middle and left blackline sensors, servo motor, right motors pwm, and more)
- Low program quality (eg. robot moves very slow on blackline when it could move so much faster, or robot stops when it goes off the edge of blackline)
Because there are so many errors in this code, I decided to write completely different code for the robot. You can access that code in this repository. If you have any questions or comments, please post them in the repository discussion. I hope that you will find this code to be useful for your programming and your learning.