You rarely have to water your little plant, but you can't forget to do so. With your micro:bit, you can monitor the water level and trigger an alarm if it is too low.
You use the property of water to conduct electricity, so if you create a circuit from the 3V power supply to pin 0, which runs through the water, a higher voltage will be measured at pin 0 than when the circuit is open. You only need two cables with crocodile clips and two pieces of wire or other metal that you insert into the flower pot as probes.
Connect one cable to pin 0 and the other to 3V.
Das eine Kabel verbindest du mit Pin0, das andere mit 3V. |