How to build junkbots: Old toysIn a previous blog entry the idea of using drinks can and an unbalanced motor was discussed. but what else have the projects participants t...How to build junkbots: Drinks can, unbalanced motorThe junkbots project has now being running for 18 months in Northamptonshire, UK. But how have the junkbots being built? A video produced by...How to build junkbots: Wheels don’t always work wellBack to the main approach, simplest way and probably the quickest:- A body (drinks can and drinks bottles usually) and an unbalanced motor -...Huxlow Pt 2: Lego Robots The second half (programming lego robots) on the junkbots project has been carried out at Huxlow Science College on 28th February 2011. ...Toys from trashArvind Gupta has produced a lot of work on turning junk into toys that aim to demonstrate the engineering ideas in an very interesting (wel...Brooke Weston EventStudents at Brooke Weston School, Corby have been working with the University of N…
What is a Junkbot?For this project, it is a moving ‘bot’ made from waste materials, combined with an electric motor and a programmable device (in this case a Micro:Bit) to control (or try) it. An example is shown above. More details on junk…
I In an earlier post, I showed how you could build a Micro:Bit controlled Junkbot. In this post I want to show a modification to it, to use one Micro:Bit to control the junkbot controlled by another Micro:Bit. A nice feature of the Micro:Bit using micropython, is it can send and receive simple messages via radio - so here is my take on it.
The first problem is the Python editor available on https://www.microbit.co.uk/ does not seem to work with the radio API. One solution to this is to change to the mu editor.
Two pieces of code are needed.
Sending Code for the 'remote' control: Essentially it is set up to send two messages, via the built-in radio module, spinl or spinr depending on which button is pressed.
import radio from microbit import button_a, button_b
while True: if button_a.is_pressed(): radio.send('spinl') if button_b.is_pressed():