Difference between revisions of "Spike Prime - Line Following Car - Jakub Vojtek"

From RoboWiki
Jump to: navigation, search
m
 
(One intermediate revision by the same user not shown)
Line 29: Line 29:
  
 
*[[Line Following Car - Code|Line Following Car - Code]]
 
*[[Line Following Car - Code|Line Following Car - Code]]
*[[Color Picker - Code|Color Sorter - Code]]
+
*[[Color Picker - Code|Color Picker - Code]]
  
 
== Ideas for improvement  ==
 
== Ideas for improvement  ==
Line 44: Line 44:
  
 
* [[Spike Prime - Line Following Car - Teacher Resources|Line Following Car - Teacher Resources]]
 
* [[Spike Prime - Line Following Car - Teacher Resources|Line Following Car - Teacher Resources]]
 +
 +
== Links ==
 +
 +
* Inspiration: https://www.instructables.com/OpenCV-Based-Line-Following-Robot/
  
 
__notoc__
 
__notoc__

Latest revision as of 10:05, 8 June 2024

Back to: List of projects of Spike up Prime Interest in Science and Technology with Raspberry Pi Build Hat

About the project

This project is a line-following robot, designed to autonomously navigate along a pre-defined path. The robot uses camera to detect and follow a line, typically a contrasting strip of color on the ground. By continuously adjusting its steering to stay on the line, the robot can move accurately along complex routes.

BuildHat linefollower model.png BuildHat linefollower fotka.jpg

Video

Build a robot

  • Be careful with the wires while building so they don't get stuck in wheels.

Building instructions:

Get the robot ready

  • Pick the desired color range in HSV (Hue, Saturation, Value) from color_picker script.
  • Edit wheels speed to work for your project (faster for smaller turn angles, slower for bigger turn angles).
  • Place your robot on the start of the line.

Raspberry Python Code:

Ideas for improvement

  • Make the robot speed up if the line is straight and slow down before the turn.
  • Try to make the robot make as sharp turn as you can.

Evaluate your performance

  • Think about how you approached the problem and about how else could it be solved.
  • Evaluate yourself on how you adapted when something didn't work as you hoped it would.


Teacher Resources

Links