Note: This buggy has been improved and is now available here.
Our 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!
- This kit requires assembly. BBC micro:bit NOT included. If you also require a BBC micro:bit, you can order one here.
- We have recently released a V2 of this line following buggy that features a new and much-improved line following board. The V2 buggy can be found here.
- Simple to build buggy.
- BBC micro:bit controlled.
- Automatic line following.
- 2 x Right Angle Hobby Geared Motor.
- 2 x Wheel for Hobby Motor.
- 1 x Motor Driver Board V2 for the BBC micro:bit.
- 1 x Buggy Chassis.
- 2 x M3 12mm Pozi Pan Machine Screw.
- 8 x M3 6mm Machine Screw.
- 4 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 Steel Ball Caster 16mm Metal Ball.
- 1 x 4xAA Battery Box with Switch.
- 1 x Line Following Board Kit.
Same Day Dispatch
- Orders placed online before 3:00pm Monday - Friday (excluding public holidays and our Christmas shutdown period) are always dispatched the same day provided the goods are in stock. If the goods are not in stock we will endeavour to contact you as soon as possible to discuss a dispatch date.
- If you live on the UK mainland and don't have any large materials or lithium batteries in your order it will cost £3.95 (£4.74 including VAT) if you spend less than £40 (£48 including VAT).
- If you spend between £40 and £200 (£48 - £240.00 including VAT, excluding large materials or lithium batteries) delivery is free to most locations, £12 (£14.40 including VAT, excluding large materials or lithium batteries) to Northern Ireland and £15 (£18.00 including VAT, excluding large materials or lithium batteries) to UK remote locations. For a list of postcodes that will be charged the remote location rate: remote area list.
- If you spend over £200 (£240.00 including VAT, excluding large materials or lithium batteries) delivery is free within the UK.
Rest of the world
- These orders are sent via UPS, and the cost is dependant on the service you choose at checkout. Alternatively you can choose the free collection option and have your own courier collect it from us. International orders can only be shipped to the registered card address. Please note: International orders may be charged import duty dependant on local import laws and duty rates. These charges are usually billed to you directly from UPS.
- Delivery times vary for international orders depending on the service selected and the destination. You can see the delivery time and cost at the shipping stage, or by using the shipping estimator from within the shipping basket.
- If you would like to collect your order, or use your own courier then there is an option you can select during checkout. We do not charge a packaging or handling fee for this service, and you will receive an email when your order has been processed, you can collect half an hour after receipt of this email.
- For information about all of the delivery options we offer see full delivery details.
A wide range of BBC micro:bit resources, what it is, the editors and using the micro:bit
A wide range of BBC micro:bit resources, what it is, the editors and using the micro:bit
In January we were one of the three partners of the BBC showcasing the BBC microbit at the BETT Show 2016. Our BBC microbit controlled line following buggy was a...
In January we were one of the three partners of the BBC showcasing the BBC microbit at the BETT Show 2016. Our BBC microbit controlled...
Thank you for your question, we offer a guarantee on all our products that we will repair or replace damage within a year.
We would cover you if the "defect has not been caused by normal wear and tear, wilful damage, negligence, misuse, neglect, method of storage, faulty installation, faulty handling, testing or repair (without Kitronik approval), using the Goods in a manner which could not reasonably be expected during normal use or outside of the manufacturer's operating instructions."
If you want the full details on the guarantee we have the details on the link below section 5.
First, do you sell this kit with your new board (the one with all the pins connections at the front?
Second, do the microbit really connect with Bluetooth and could this kit be controlled by another microbit rather than light?
PS, is there a discount for 10 kits?
Hi Vincent, The motor driver board which is being supplied with the kits is the new version and as such has the pin breakout section. It is also possible to control the buggy via another micro:bit by using the ‘on radio’ function within the MakeCode editor, we will be doing a blog about this in the next couple of weeks. With regards to a price break, unfortunately currently we are unable to offer a price break on the product and we will continue to review this to see if it is possible in the future.
Hi Chris, I’m sorry to hear that you are having some issues with the line following code, especially as this code has been tested and used multiple times on the buggies we have built here. It is possible that there could be a solder issue on the line following board or an issue elsewhere in the built. If you go to page 8 of the following document it provides some areas to check 5604_Line_Following_Buggy_for_the_BBC_microbit_V1_0.pdf. If you are still having difficulties after this please email our support email.
Hi Anthony, I apologise that the link didn’t appear to work, I believe this was an issue with the website which has now been fixed. As such the link you stated should work, alternatively this link will direct you to the correct page, bbc-microbit-line-following-buggy
As the line follower board connects to the bottom of the buggy base, it could be left off and the inputs used for other items such as micro switches or range sensors and so on. You would of course need to make your own holes for fixing anything different on to the base.
I am afraid we do not currently have any pre written python code for this kit.
Hi Will, You could always add some additional Perspex your 3D printed parts to create a pen holder. Alternatively we are in the process of bringing out a new buggy which already has the option to hold a pen. This should be available in the summer, a demo of the buggy can be seen here, https://twitter.com/Kitronik/status/860034717978066944.
Here is what I did:
It is a manual on for a few milliseconds then off for a few milliseconds. Do we have access to the enable line of the H-bridge or have any way to make a PWM output? Thanks!
Hi David, With regards to using PWM with the buggy it is possible to analogue write to any of the pins, however you can only analogue write to a maximum of three at a time. As such you would alter the code so that you write the value between 0 (stopped) and 1023 (full speed) to two of the four pins depending on which direction you want to move in, and then the remaining two pins would be set to zero via a digital write. This would mean you could remove the block of code ‘blockingPWMtrick’.
Hi Pete, Unfortunately it isn’t possible to send just the plate, this forms part of the kit and as such would need to be supplied as part of the kit.
Hi Andy, Currently we are awaiting a part used within the buggy to be received from our supplier, we current expect this to received early next week. As such dispatch should take place early to mid-next week.
Hi Rosie, The mechanical parts of the buggy could be dismantled and rebuilt. However it wouldn’t be recommended to keep desoldering and resolding the line following PCB as eventually the PCB might become damaged. As such this item isn’t designed to be built multiple times.
Hi Matt, The black chassis is approximately 14.5x11mm and is 3mm thick. Each motor driver board can only drive 2 motor’s, however if you had a second motor driver board and turned the BBC micro:bit round so the edge pins were activated you could use one micro:bit to power both boards.
Hi Shirley, Yes the buggy is now supplied with the new motor driver, I will let our web team now about the link. Thank you for letting us know.
Hi Andrew, The screws that should be used for the caster are 6mm M3 Machine Screws. There are 2 M3 30mm Pozi Pan Machine Screw which should be used for securing the motors into place.
The most likely cause of this will be the fitting of the spacers that are supplied with the ball roller. These are not required in this application as they lift the end of the buggy up and as a result the opposite end with the line follower PCB is tipped in to the surface it is running on.
Please let me know if this is not the issue and we can have another look at it.
We don’t have a circuit diagram for the buggy, however we do have a datasheet for the motor driver board. This explains what pins drive the motor forward and backwards, 5602_bbc_microbit_motor_driver_v1.1.pdf
The caster that is used in this kit is ½ inch in size.
Ask a question about this product
Payment & Security
Your payment information is processed securely. We do not store credit card details nor have access to your credit card information.