Micro:bit Electronic Candles

Hello, when we hold birthday parties, the lighting candles come to our mind for best wishes! If we have a micro:bit by hand, is that possible to make an electronic candle device with it? Here comes the case of blowing off the candle “fires” by sound.
The functions we need to achieve:
When the analog value of sound level is less than 80, the onboard led screen displays number "1", indicating that the sound is small and the loudness is level 1. Otherwise, when the analog value of sound level is bigger than 80, the screen displays the number "2", Which means the sound is louder, and the loudness is level 2.
Programming
If you want to make an electronic candle, you need to know the microphone placed on the micro:bit V2. The microphone could receive our voice, whether it is loud or small (using the loudness level on the micro:bit to identify), through the level of the sound, we can control the board.
Electronic candles program
Program on MakeCode to achieve the function of controlling the on/off status of the LEDs and download the program to micro:bit V2 board, blowing into the microphone to turn off the LEDs while the sound level reaches at a certain loudness.
Before blowing (making sound), the LEDs are on; when air is blown, the LEDs light off. When the microphone analog value is less than the set value of 80, the LEDs will remain on. On the contrary, when the sound intensity is bigger than 80, the LEDs will remain off for 10 seconds.
Program: https://makecode.microbit.org/_U7zAd8i7oKRK
If you have any ideas or opinions, please feel free to contact us via services@elecfreaks.com.
Share this post
About the Author

ELECFREAKS focuses on microbit and publishes interesting articles
Related Posts
Introduction to the history of the BBC micro:bit
New BBC micro:bit-micro:bit V2
How to make a meme with micro:bit ?
Topics
- Curriculum
- Course
- Micro bit supplier
- Wholesale Suppliers
- Micro bit tutorial
- Micro bit classroom pack
- Mcorbit Environment Monitoring
- Temperature-controlled
- Motor
- Fan
- TPBot car
- TPBot
- Micro:bit car
- AI Lens
- Micor:bit AI Lens
- Micro:bit LEDs
- BBC micro:bit
- Micro:bit Manipulator
- Wukong board
- Cutebot
- Micro:bit Motorcycle
- Nezha breakout
- Micro:bit DIY
- 360° servos
- AI Lens
- Retro Arcade
- Ecode
- PlanetX
- Microbit programming
- Your:bit
- Do your:bit
- IoT:bit
- Octopus
- Rainbow LED Ring
- Joystick:bit
- Wonder Building Kit
- Sensor:bit
- Downie
- Wenjie
- Laser Engraver Tutorial
Tags
Comments