Introduction
Our LEGO Ferris Wheel is now even more awesome thanks to the addition of a micro:bit to light it up and spin the wheel.
Video Overview
Featured Document
-
-
The LEGO Ferris Wheel kit we have is large, standing nearly two feet tall! Ours already had a LEGO motor attached to it that could run from a 9 volt battery, but we wanted to have it controlled by a micro:bit, and we figured we should add some fancy lights as well.
-
-
-
Our circuit for this project may look complex, but we'll break it down step-by-step.
-
We definitely used some long runs of Maker Tape to connect everything, and there are three different power sources, but seeing the Ferris Wheel spin and light up made it all worth it!
-
Like all of our Crazy Circuits projects, we'll be building our circuit "board" onto a LEGO baseplate. Luckily the Ferris Wheel had plenty of open space to allow us to build directly onto it, so no additional plate was needed.
-
-
-
Once we've determined where our Bit Board will go, we can add the button. It needs to be connected to Pin 9 on one side, and to GND (Ground) on the other.
-
We ran our button all the way to the front of the Ferris Wheel, but you can put it wherever you want.
-
-
-
We used a LEGO motor to spin our Ferris Wheel around. We modified it by cutting and stripping the wires so we could connect it to a 9 volt battery.
-
Since we wanted the micro:bit to be able to turn the motor on and off, we took advantage of the built-in relay on the Bit Board. We just ran the positive wire from the battery to a screw terminal than then connected with Maker Tape to the two connection points for the relay.
-
-
-
NeoPixels are pretty awesome. They are available in many forms, and for our Ferris Wheel we used NeoPixel strips, which can be cut to any length.
-
NeoPixels are controlled by a single "data line" which means one wire connects to the Bit Board for the micro:bit to do its thing.
-
NeoPixels need to be powered separately from the Bit Board, so we added a 4.5v battery pack with 3 AA batteries. Positive from the battery pack goes directly to the NeoPixel strip, and negative from the battery pack goes to the NeoPixel strip and to the GND connector on the Bit Board.
-
-
-
We added a second strip of NeoPixels so we could light up both sides of our Ferris Wheel.
-
Our second strip is connected in parallel to our first strip. This means that the number of "pixels" in our strip (as you will see in the code) is still the same, and the two strips will display the same colors at the same time.
-
-
-
For some projects we just power the micro:bit by plugging in a USB cable, but for this one we're using a 2 AAA battery pack to provide 3 volts to the Bit Board which will then power the micro:bit.
-
-
-
Connect a USB cable to the micro:bit and then plug it into your computer.
-
We'll be using makecode.microbit.org to program our board. It uses a simple drag and drop block interface.
-
We're going to load the following code for our Ferris Wheel program: https://makecode.microbit.org/_8vi6s2e37...
-
When we press the button it will cause the motor to run and the lights to turn on for approximately 30 seconds. You can change this by altering the repeat and pause values in the forever section.
-
-
-
Once you've got your micro:bit programmed, and have everything connected and all power turned on, press that button!
-
If everything is in place the Ferris Wheel should start rotating and the NeoPixel strips should light up.
-
Enjoy your micro:bit powered Ferris Wheel!
-
Cancel: I did not complete this guide.
One other person completed this guide.