This is the actually useful version of Bikey McBikeface! Build a rear bike light that signals turning and stopping, and displays a custom emoji the rest of the time.
The micro:bit on the front acts as a user interface. Between signals, it turns off the LEDs to save power. Push the A button to signal LEFT, B for RIGHT, and both buttons for STOP. When you do, it sends a radio signal to the back of the bike.
The module on the back (in a cute little guy housing) responds by displaying everything to the people behind you!
Both of them have 3D-printed enclosures.
Physical setupMount each micro:bit with a 5V rechargeable battery pack and some Velcro.
The round bar clip goes on the front, and the little guy dangles from the back. The "eye" holes double as attachment points for small zip-ties or wire.
The front stand is modified from a holder I found on Thingiverse, reshaped to fit on a ~35mm bike bar.
In order to use the radios, you currently need to program in MicroPython. Just download the Mu editor and paste in the code for each :bit, then plug in each module and hit "flash". (Only plug in one micro:bit at a time!) If your computer can't find the module, wait a few seconds and try again – or swap out your USB cable, since some of them only do power, not data.
Scroll down and copy the code below for each one.
The front bit has a bunch of extra timing stuff, in order to make the STOP sign go when both buttons are pressed simultaneously, without accidentally triggering an arrow at the start or end.
The back bit just listens for radio commands and responds with pictures. Each one displays for at least half a second. Check out the list of available "emoji" images!
Comments