Pi Supply Bit:Buggy car is a DIY smart car based around the BBC micro:bit. Bit:Buggy has 3 extended GPIO ports - two for driving servos and one for any other stuff! The basic version of the Bit:Buggy can perform functions such as line following, remote control and others. By adding some different sensors and modules you can extend the functionality to enable things like light following, obstacle avoidance, drawing and more.
This software is forked from the ElecFreaks Ring:bit Car package which was developed by ElecFreaks with minor assistance from Tinkercademy.
Example 1
basic.forever(() => {
BitBuggy.forward()
basic.pause(1000)
BitBuggy.turnleft()
basic.pause(1000)
BitBuggy.turnleft()
basic.pause(1000)
BitBuggy.back()
basic.pause(2000)
})
Example 2
let strip: neopixel.Strip = null
BitBuggy.init_wheel(AnalogPin.P1, AnalogPin.P2)
strip = neopixel.create(DigitalPin.P0, 24, NeoPixelMode.RGB)
strip.showRainbow(1, 360)
basic.showIcon(IconNames.Heart)
basic.forever(function () {
strip.rotate(1)
basic.pause(100)
strip.show()
})
basic.forever(function () {
BitBuggy.freestyle(30, 90)
basic.pause(1500)
BitBuggy.freestyle(90, 30)
basic.pause(1500)
})
MIT
for PXT/microbit (The metadata above is needed for package search.)