The Kitronik BBC micro:bit controlled Line Following Buggy uses two LDRs (light dependant resistors) as sensors to control a line following board on the bottom of the chassis to 'follow' black lines.
Two LEDs shine light from underneath the buggy down onto the floor and a pair of LDRs measure how much light is reflected. When the sensor is moved over a black line the level of reflected light decreases and the sensor sends a signal to the BBC micro:bit through the motor driver board. The BBC micro:bit then uses that information to steer back toward the line. It does this by switching off either the left motor to turn left or the right motor to turn right.
Code for the line following function is available below. The buggy can easily be customised and to help you get started we have also supplied code for Bump 'n' Spin functionality using the BBC micro:bit's on-board accelerometer. Save the code to your account and get customising!
Note: This kit requires assembly. BBC micro:bit NOT included. If you also require a BBC micro:bit, you can order one here.
- Simple to build buggy.
- BBC micro:bit controlled.
- Automatic line following.
- 2 x Right Angle Hobby Geared Motor and wheel
- 1 x Motor Driver Board V2 for the BBC micro:bit
- 1 x Buggy Chassis
- 2 x M3 30mm Pozi Pan Machine Screw
- 8 x M3 6mm Machine Screw
- 2 x M3 Full Width Nut
- 4 x M3 20mm Plastic Spacer
- 1 x 8mm x 12mm x 25mm Foam Pad
- 1 x 15cm Length Black Wire
- 1 x 15cm Length White Wire
- 1 x 15cm Length Green Wire
- 1 x 15cm Length Blue Wire
- 1 x Metal Ball Caster
- 1 x 4xAA Battery Box with Switch
- 1 x Line Following Board Kit
- 4 x AA Batteries
- A small flat head screwdriver
- Wire strippers
- A soldering iron and some solder
- A Needle Nose Pliers
- A Phillips screwdriver
- A computer with a spare USB port and internet access
- A USB to micro USB cable
- Black insulation tape
- 1x BBC micro:bit