Real Life Mario Block
by lebiosphere56 in Circuits > Microcontrollers
463 Views, 1 Favorites, 0 Comments
Real Life Mario Block
![F7EKMXYKUE3EV4B.png](/proxy/?url=https://content.instructables.com/FV0/ZMRK/KUE3EV4I/FV0ZMRKKUE3EV4I.png&filename=F7EKMXYKUE3EV4B.png)
Me and my students (9th grade) are transforming our middle school corridor into a real life Mario Bros Parkour thanks to radio connected Micro:bits.
Supplies
![Capture d’écran 2021-10-05 224926.png](/proxy/?url=https://content.instructables.com/F1D/YUIH/KUE3EVHP/F1DYUIHKUE3EVHP.png&filename=Capture d’écran 2021-10-05 224926.png)
![Capture d’écran 2021-10-05 225105.png](/proxy/?url=https://content.instructables.com/F4J/CAXL/KUE3EVI9/F4JCAXLKUE3EVI9.png&filename=Capture d’écran 2021-10-05 225105.png)
![Capture d’écran 2021-10-05 225334.png](/proxy/?url=https://content.instructables.com/FZJ/31NX/KUE3EVLP/FZJ31NXKUE3EVLP.png&filename=Capture d’écran 2021-10-05 225334.png)
![Capture d’écran 2021-10-05 225319.png](/proxy/?url=https://content.instructables.com/F9Y/JEMH/KUE3EVLQ/F9YJEMHKUE3EVLQ.png&filename=Capture d’écran 2021-10-05 225319.png)
For each light block, you will need :
- A cube of your choice,
- A Micro:bit
- A Micro:bit Grove Sheild
- A Grove LED strip
Micro:bit to PC
![Capture d’écran 2021-10-05 230038.png](/proxy/?url=https://content.instructables.com/FI9/YOX6/KUE3EWBK/FI9YOX6KUE3EWBK.png&filename=Capture d’écran 2021-10-05 230038.png)
Plug your first Micro:bit to your PC with the USB connector.
Vittascience
![vittascience-logo.png](/proxy/?url=https://content.instructables.com/FNW/3AD4/KUE3EWR8/FNW3AD4KUE3EWR8.png&filename=vittascience-logo.png)
![microsoft-makecode.png](/proxy/?url=https://content.instructables.com/FLZ/LOFV/KV58W2R8/FLZLOFVKV58W2R8.png&filename=microsoft-makecode.png)
![extension.PNG](/proxy/?url=https://content.instructables.com/FFJ/2HX7/KV58W30R/FFJ2HX7KV58W30R.png&filename=extension.PNG)
In France, we use the Vittascience web interface to program Micro:bit. On Vittascience, all the libraries are already installed.
If you use Microsoft MakeCode instead, you must add the "Neopixel" library.
- Select "+Extension" (1) in the vertical functions list.
- Then select "Neopixel" (2)
Now, you can code.
![Capture d’écran 2021-10-06 150301.png](/proxy/?url=https://content.instructables.com/F7T/9DOU/KUE3FTC9/F7T9DOUKUE3FTC9.png&filename=Capture d’écran 2021-10-06 150301.png)
![makecode_version.PNG](/proxy/?url=https://content.instructables.com/FF4/U4MG/KV58W395/FF4U4MGKV58W395.png&filename=makecode_version.PNG)
Upload that code into your first Micro:bit by pressing "Télécharger"
You can go to the link to find the source on :
https://fr.vittascience.com/microbit/?link=615cbe84639f9&mode=blocks&simu=1
The algorithm is simple :
- Initialise radio channel
- Switch of the light.
- Wait for a signal to switch on the light ("A" pressed or "step1" radio message)
- Wait for checking to switch of the light and send the "step2" radio message to the next block.
- GOTO 3
If you prefer the MakeCode version, you'd better use this link :
Downloads
Plug the Light
![grove10.jpg](/proxy/?url=https://content.instructables.com/FJ1/PYLH/KUE3EZO0/FJ1PYLHKUE3EZO0.jpg&filename=grove10.jpg)
Fit the Micro:bit into the Grove shield.
Plug the Neopixel strip to the P0 output.
Then plug the batteries
Put Every Thing in the Cube
Put your electronic stuff in the first block cube.
Then suspend it to the corridor ceiling.
Do It Again
![Capture d’écran 2021-10-06 150349.png](/proxy/?url=https://content.instructables.com/FSZ/Z991/KUE3FTCU/FSZZ991KUE3FTCU.png&filename=Capture d’écran 2021-10-06 150349.png)
![step.PNG](/proxy/?url=https://content.instructables.com/FL1/H15C/KV58W3DQ/FL1H15CKV58W3DQ.png&filename=step.PNG)
From step 1 to step 5, do it again with the other blocks.
But you must change the radio messages in order to see your parkour enlight in the correct order.
- For the second block, replace A by "step2" and B by "step3".
- For the third block, replace A by "step3" and B by "step4".
- For the fourth block, replace A by "step4" and B by "step5".
And so on.
Until the last block where you will replace B by "step1" in order to enlight the first block again.
Run
![panneau-picto-texte-paysage-interdiction-de-courir-dans-les-escaliers-et-les-couloirs.jpg](/proxy/?url=https://content.instructables.com/FOD/PUM2/KUE3F47Q/FODPUM2KUE3F47Q.jpg&filename=panneau-picto-texte-paysage-interdiction-de-courir-dans-les-escaliers-et-les-couloirs.jpg)
![Projet de Parkour Mario](/proxy/?url=https://content.instructables.com/FGY/9BPP/KV58WUKH/FGY9BPPKV58WUKH.jpg&filename=Projet de Parkour Mario)
Press the "A" button on the first block to start the game.
Now put a red cap, run in your middle school corridor and hurt the blocks as they enlight.