Skip to content

clowa/arduino-plant-watering

Repository files navigation

Overview

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.

Getting Started

Prerequisites

  • TinyGo
  • avrdude to flash the project to the Arduino board
  • Optional: go-task to use handy makefile like commands

Flashing the project

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

Lessons Learned

  • 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.

About

Arduino project to automatically water plants

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages