Driving Anastasia's Kitronik motor controller via radio
Anastasia with the controller This is the fourth in a series of articles about Anastasia - a home-brew robot based on the micro:bit. In my previous post I shared the micropython code that runs on Anastasia's remote micro:bit controller. The controller can send one of five commands to Anastasia : stop applies a brake to the motors. left spins the robot anti-clockwise. right spins the robot clockwise. forward ( you guessed it1) drives the robot forwards. backward also does what you'd expect. In this post I'll step through the code than implements these commands on Anastasia. The code looks for incoming radio messages. It translates those messages into methods on a Driver class. These methods then send control signals to the Kitronik motor controller. Here's Anastasia's code The code starts with the necessary imports, and then begins the definition of the Driver class. from microbit import * import radio class Driver: "...