Greeting Card Using Micro:bit
by iteachwarriorz in Circuits > Microcontrollers
64 Views, 0 Favorites, 0 Comments
Greeting Card Using Micro:bit
For this project, I designed a greeting card by using a Micro:bit to create a physical computing program. The code used for this project works by sensing light levels to prompt music and the LEDs to display a heart icon. It is highly customizable to show one's care to others.
Downloads
Supplies
- Cardstock
- Foam board with an adhesive backing
- Paint Markers
- Xacto knife
- Tape (optional)
- Micro:bit V2 with battery pack
Code for Micro:bit Controller
Create a micro:bit program on makecode.com to download into your micro:bit. In particular, make use of the forever loop to nest block code, establishing the item variable to “lightlevel.” Then use the if, then, else loop to identify that if the condition of light level is above 175 then a heart icon appears using the LED lights and music plays along with it. If the light is not greater than a desired light level # then the screen clears and sound stops.
Creating Inside Cover Cut Out
Using one cardstock paper of choice, use an Xacto knife to cut a box shape to meet the size of the LEDs on the Micro:bit controller. This is the cardstock that can be painted/decorated to meet the desired occasion.
Creating Back Cover Cut Out for Battery Pack
Using the Micro:bit controller battery pack to place against the back of the foam board, trace the shape of the Micro:bit battery pack. Using the Xacto knife, cut the shape out and insert the battery pack through. To secure the Micro-bit add tape to the back of the battery pack.
Attaching Front Cover to Back Cover
Take off the adhesive backing and secure the regular card stock paper ontop of the foam board aligning the cut out intended to showcase the LEDs.
Folding Into Half & Cutting Excess Material
Fold over the card in half and use the xacto knife in order to cut any excess foam or card stock. Optional to use a ruler to help with cutting a straight line.
Gift :)
Hand to a loved one.