Introduction: In life, sometimes there will be no electricity. At this time, if there is a small electric light, it will be much more convenient. Today, I will tell you how to make a simple small electric light.
Materials required:
Sensor:bit expansion board x 1
Male to female Dupont line x 1
AAA Battery x 2
Connection step diagram
Step 1: Insert the microbit into the sensor:bit extension first, remember not to insert it in the wrong direction
Step 2: Insert the male to bus bar into the light ring
Step 3: Insert the light ring into P2 on the sensor:bit expansion board, and insert the battery box into the microbit interface
program:https://makecode.microbit.org/_2WXFFsfyuLwH
After downloading the program, this simple small electric light is completed. When the power goes out, you can take out this electric light for simple lighting, and you can switch the two colors of the light through the AB button of the microbitd.