Skip to content

🚜 Large arduino sketch for an autonomous tracked vehicle.

Notifications You must be signed in to change notification settings

RCmags/TrackRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

Autonomous tracked Robot 🚜 🏁

This is a large arduino sketch for a stracked vehicle capable of driving itself to different waypoints. It is composed of multiple header files and a main.ino file. The code is intended for an Arduino MEGA.

How it works

The position of the vehile is estimated using a physical model of the vehicle, an accelerometer that is integrated twice, a gyroscope for heading, and the displacement measured by two optical flow sensors. All of this data is fused to obtain the net displacements relative to an initial position using rectangular coordinates. These position and orientation estimates are used to guide the vehicle to a specified location using two PID loops, one for displacements and one for heading.

The coordinates are stored in a buffer that can be filled in real time via a bluetooth module. Coordinates can be pushed or poped off the buffer. Once the vehicle is within a given radius of a coordinate, the following coodinate is made the target destination. This process will continue indefinitely and the vehicle will follow a closed path with the coordinates as the vertices.

Dependencies

The sketch requires the following libraries:

Example

Below is the small tracked robot built for this sketch:

See this video: functionality and performance of an autonomous tracked robot