Skip to main content

Remote Control micro:bot


Using SparkFun’s micro:bot kit and their gamer:bit breakout board, I programmed the micro:bot to be controlled by a second micro:bit microcontroller. The two micro:bits transfer data packets over low-energy Bluetooth antennae. The micro:bot can also be programmed to follow a line using its three line sensors and has the capability to control a couple of servos that come with the kit.

The SparkFun moto:bit, also in the kit, breaks out the 21 pins on the micro:bit and sets it up to control DC motors and servos. Additional power is provided through a barrel power jack and four AA batteries nicely secured on the lower level of the micro:bot. The entire bot takes about 30 minutes to assemble. Programming it can take as long as you want…

A moto:bit package can be added to Microsoft’s MakeCode micro:bit code editor. I used this package to control the micro:bot’s motors. If you have the gamer:bit, micro:bot, and a couple of micro:bits lying around, feel free to download my program to start driving your bot. It uses the gamer:bit and moto:bit packages.

Code


Comments

Popular posts from this blog

Tippe Top Design

The physics behind the tippe top toy have been the subject of studies by scientists for years - dating back to the early 1890s. The tippe top is spun just like any other top, but pulls a surprise stunt. The top flips over and spins on its stem when given a strong twist. Why does the tippe top flip over? What does this mean for anyone planning to make one on a 3D printer? Nobel Prize winners, Wolfgang Pauli and Niels Bohr, take a break with a tippe top at the 1954 inauguration of the Institute of Physics in Lund, Sweden. Early Top Patents The first patent for the top, listed as “Wendekreisel”, was filed in Germany by Helene Sperl in 1891. While the patent seems to describe the top’s inversion property, reproductions of the top have proved unsuccessful. The patent expired after one year because the fee wasn’t paid. During a trip to South America, Danish engineer Werner Østberg noticed kids spinning a small, round fruit. While spinning, the fruit would flip over (or...

micro:bit Fireworks with Python

I used the MicroPython editor to program a fireworks animation that controls the brightness of the LEDs as the firework explodes on the LED display. For young computer science students, this is a great introduction to text-based programming, arrays, and animating LEDs. Code # Display message and show pacman with firework option from microbit import * firework1 = Image("00000:00000:00000:00000:00200") firework2 = Image("00000:00000:00000:00200:00100") firework3 = Image("00000:00000:00200:00100:00000") firework4 = Image("00000:00000:00900:00000:00000") firework5 = Image("00000:07870:08580:07870:00000") firework6 = Image("60706:01210:72127:01210:60706") firework7 = Image("30503:00000:50005:00000:30503") firework8 = Image("10201:00000:20002:00000:10201") all_firework = [firework1, firework2, firework3, firework4, firework5, firework6, firework7, firework8] while True: if button_a.is_pressed(): ...