Line Following

    One of the challenges in PiWars 2024 is 'Lava Palava' which is an autonomous challenge.

    The aim of the challenge is to drive from one end of the course to the other as fast as possible, outrunning the lava flows from a volcanic eruption. We are doing this by following the white line on the course.


This is how our code works:

  1. initialises the camera at a size of 84*64 pixels
  2. takes a photo
  3. turns the photo greyscale
  4. splits the photo into 10 segments
  5. turns the robot towards the average brightest segment
When we first tested this, it worked well with minimal tweaking.




However, when we swapped out the old motors for more powerful ones, we found the the robot was turning much too fast, though this was easily fixed, despite the mad dashes for escape!






Comments

Popular posts from this blog

The Beginnings of a Robot

Artistic Design

Autonomous Barrel Collecting