Explore the world of programming, circuit design, logic building and algorithm design by doing the microbit compatible MoonGarden project.
The project requires following item.
Microbit Breakout Board | Soil Moisture Sensor | |
3.3v | VCC | |
GND | GND | |
P0 | AO | |
Microbit Breakout Board | LED Pole | |
P13 | R | |
P14 | Y | |
P15 | G | |
GND | GND |
The code monitors the presence of moisture in soil and turns on the appropriate LED to indicate the level. It also utilizes the LED matrix display of microbit to show different facial expressions according to the moisture level.
NOTE: The values (900, 950) used for comparison in code depends on for which level of soil moisture an alert is required. These should be changed accordingly.