Skip to main content

8.Birthday Candle

##Case Description The built-in microphone of the Micro:bit can be utilized to simulate the effect of blowing out a candle.

###Key Knowledge Points

  • How to use the Micro:bit microphone
  • How to use the Sugar LED module

##Case Implementation

###Structural Assembly Birthday Candle.pdf

###Circuit Connection

  • Connect the red LED module to the Robotbit P0 terminal block.

  • Connect the green LED module to the Robotbit P1 terminal block.

  • Connect the yellow LED module to the Robotbit P2 terminal block.

###Programming

1、When the blowing force is strong (>800), all three LED modules turn off.

2、When the blowing force is moderate, the LED modules blink.

3、When there is no blowing force, the state remains unchanged.
生日蜡烛.png

Program Source Files