Lego® Power Functions IR Sender For Micro:bit
Control your Lego® Power Functions motors using your micro:bit, an infrared LED and MakeCode. THINGS USED IN THIS PROJECT Hardware components: BBC micro:bit board Infrared LED LEGO® 8884 - Power Function IR Receiver Software apps and online services: Microsoft MakeCode pxt-powerfunctions MakeCode Project STORY LEGO® is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this project. The Challenge We experimented with visual programming languages, and we love colorful interlocking plastic bricks. The desire to control a LEGO® train using a web-based, visual development environment was born. Our Journey We started with a Scratch and Arduino based solution. We had a working prototype that proved to be error-prone and complicated in the setup. In our second approach, we used the German sibling of the micro:bit. The Calliope board comes with a motor driver which reduced the required hardware to the board ...