Skip to content

vitorccs/huskylens-line-tracking-car

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huskylens Line Tracking Car

Line Tracking Car using Arduino and Huskylens Board

Schematics

huskylens-line-tracking-car_bb

Components

  • 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

About PlatformIO IDE

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.

About the code

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 Servo

About Car Chassis

This project was optimized for a 2WD car chassis. But a 4WD chassis can also be used by changing the motor speed and PID parameters.

Reference 1 (Brazil):

https://www.robocore.net/robotica-robocore/plataforma-robotica-falcon-v2

Reference 2 (Brazil):

https://www.robocore.net/robotica-robocore/plataforma-robotica-rocket-tank

Reference 3 (International):

https://www.aliexpress.us/item/3256801542172576.html

About the Power Supply

I recommend to use high quality 18650 batteries (3.7v - 4.2v, 2200mAh, at least 2C of discharge rate).

Fritzing file

The electronic schematic was created in the Fritzing software and can be downloaded at

About

Line Tracking Car using Arduino and Huskylens board

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages