Deutsch English |
YOU LEARN HERE... |
how you can use the micro:bit to monitor systems and trigger an alarm if necessary. |
MONITOR THE WATER LEVEL |
|
|
Program: from microbit import * while True: v = pin0.read_analog() print(v) sleep(500) Supplement your system with a visual alarm indicator on the LED display. If you want to trigger an acoustic alarm, you can use a buzzer. However, you cannot control this directly with the micro:bit as it requires too much power. The easiest way is to build a small transistor amplifier. You can also use this to switch other devices on and off with the micro:bit, for example a relay or a switch on your model railroad. |
REMEMBER YOU... |
You can easily build simple alarm systems with the micro:bit as an embedded system if you combine your manual skills with some knowledge of electronics and programming. |
TO SOLVE BY YOURSELF |
|