It's the Stupid Shit No One Needs and Terrible Ideas Hackathon! (caution: NSFW)
Y'know how you're on your bike, or in your car, and all you can really do is use your horn, bell, or finger to give feedback to other drivers? What if there was a better way?
This is not a better way.
* See this project for a better way
SetupThis project uses one Micro:bit (mounted on your handlebars) to display a random emotion on another Micro:bit (mounted on the back of your vehicle). It's modded from some awesome example radio code.
In order to use the radios, you currently need to program in MicroPython using the Mu editor. Just scroll down and copy the code, paste it into Mu, plug in your :bit, and hit Flash!
Do this with both boards, tape them to your bike with a power-supply each, and you're ready to hit the town.
The Code- The code imports a bunch of useful libraries with functions we can use.
- Then it creates a database of different faces/images to display.
- It turns the radio on so the two modules can communicate.
- Then it starts an infinite loop that will run as long as the Micro:bit has power. When the button on Board 1 is pressed, it will display a random face and send a signal to the other board. When Board 2 receives the message, it will display a different random face.
You're welcome.
Presentation video, thanks to Mitch Altman:
Comments