2018年11月2日星期五

One hit to a colorworld, a colorful grapefruit made use of micro:bit

As a trickster for Halloween, how can we lack an ingenious pumpkin lantern as an equipment?
This time we want to use Micro:bit to make a maker grapefruit lamp that can change color through one hit.

Prepare materials
Big grapefruit x1
Needle, utility knife, chopsticks or small wooden stick, scrap wire or wire, wool


1. Open grapefruit on the top and remove the pulp inside.
2. Draw and cut the shape of the monster's eyes and mouth. Then Use a fruit knife to engrave them. Clean it after the grave work is done.
3. Open https://makecode.microbit.org/ 
The first step is to add a light strip function first. The flow of calling instructions is: Advanced ---- add software package --- neopixel. Click neopixel to add the neopixel module.
All programming graphics are distinguished by color. For example, the red module “Set LED to 0” in the figure below is red. You can find the red variable option in the function column on the left. This option will pop up all programming graphics inside this function, select the one that you need.

There are 10 kinds of color of this light strip. You can choose the color according to your preference.

5. After the program is written, connect the micro:bit and the computer with a USB cable, then name it and download it to the micro:bit board.






























6. Link the light strip to port P0, attach the battery, place it in the grapefruit shell, and fix it with tape.




















Fix the upper line on the top of the grapefruit skin and tie the thread to the small wooden stick or chopsticks, and stitch the two parts of the grapefruit skin together with wool or fine wire. An interesting maker grapefruit lamp is ready!

没有评论:

发表评论