Line Tracking Car using Arduino and Huskylens Board
- 01 - 2WD or 4WD car chassis
- 02 - DC motors (3v - 6v)
- 02 - Wheels
- 01 - Arduino UNO
- 01 - L293D Adafruit Motor Shield (v1)
- 02 - 18650 batteries (3.7v - 4.2v)
- 01 - Battery support
This is a Platform IO IDE project coded in C++.
Platform IO is a plugin for Microsoft Virtual Studio Code. It is a more robust IDE compared to official Arduino IDE which makes easy to create our own private libraries and use a better object-oriented design.
The parameters can be customized in the main.cpp
#define DEFAULT_SPEED 150 // Default motor speed for driving
#define PID_PGAIN 200 // PID Proportional
#define PID_IGAIN 0 // PID Integral
#define PID_DGAIN 0 // PID Derivative
#define PID_SERVO false // PID ServoThis project was optimized for a 2WD car chassis. But a 4WD chassis can also be used by changing the motor speed and PID parameters.
https://www.robocore.net/robotica-robocore/plataforma-robotica-falcon-v2
https://www.robocore.net/robotica-robocore/plataforma-robotica-rocket-tank
https://www.aliexpress.us/item/3256801542172576.html
I recommend to use high quality 18650 batteries (3.7v - 4.2v, 2200mAh, at least 2C of discharge rate).
The electronic schematic was created in the Fritzing software and can be downloaded at
