Love Meter - Micro:Bit
by Aidan-Corrales in Circuits > Electronics
2901 Views, 5 Favorites, 0 Comments
Love Meter - Micro:Bit
For this tutorial, you will be creating a "love meter" with the Microbit. This is a fairly easy activity, it only requires a little bit of code and no wiring. Once completed, two people will grab each end of the Microbit and a number between 1 and 10 will display indicating the level of "love" between the two.
Supplies
-Microbit
-Micro USB cable
-Battery
-Alligator Clips
-Computer
Start New Project
From home screen, select New Project and name it "Love Meter".
Add on Pin Pressed Block
From the input category, drag an "on pin pressed" block to the space on the right. Make sure it says "on pin (P0) pressed"
Display Numbers to the Screen
In the basic category, drag the block "show number" into the "on pin pressed" block
Generate Random Number
Under the math category, drag a "pick random" block to the slot within the "show number" block (the slot should show 0 as default). When dragging the pick random block, a red dot should appear, hover it over the slot from show number until a second red dot appears.
Display Words
From the basic category, drag a "show string" into the "on started" block. Inside the slot of the show string, type "Love Meter".
Plug in and Download
Use micro USB cable to connect microbit to the computer. Select Download at the bottom left of the screen and move the downloaded file to the microbit.
Plug in Battery
Attaching Alligator Clips
Attach 2 alligator clips to the 0 and Ground ends of the microbit. With two people, each holding a different end of the alligator clips, touch fingers and a number should display on the screen.
Optional: Text Code
If you would like, you can copy this