This is a small home arduino project to automatically water my plants. The project is based on an Arduino Uno R3, a soil moisture sensor, a water pump and a electronic switch (MOSFET). The soil moisture sensor is used to measure the moisture level of the soil and the water pump is used to water the plants. The MOSFET is used to control the water pump because the pump runs on another voltage than the board itself.
For wiring and components, see the Wiring.
- TinyGo
- avrdude to flash the project to the Arduino board
- Optional: go-task to use handy
makefile
like commands
To flash the project to the Arduino board, run the following command:
tinygo flash -target arduino .
# Or if you have go-task installed
task flash
- Do not use Pin
D13
on the Arduino Uno R3, for pumps since it's used as system LED which fires on every flash/reset/etc. of the board.