Raspberry Pi Zero WH, with GrovePi Zero. Checks ground moisture.
If moisture readings are "Dry" for x consecutive intervals, the waterpump will activate. Data is saved to moisture.csv
.
- Raspberry Pi Zero WH
- Adapter
- 8GB SD Card
- GrovePi Zero
- 3-6V Waterpump
- Aquarium tubing
- Watercontainer (bottle, bucket.....)
- 2 female to female jumper wires
- Download and burn Raspbian to SD card.
- Do initial Raspbian setup, make sure to setup an internet connection.
- Update Raspbian:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
- Attach GrovePi Zero To Raspberry Pi Zero and run:
$ sudo curl -kL dexterindustries.com/update_grovepi | bash -s -- --bypass-gui-installation
$ sudo reboot
- After reboot run:
$ sudo i2cdetect -y 1
- If the install was succesfull, you should see "04" in the output.
- See GrovePi Setup if unsuccesfull.
- Connect waterpump to Mini Fan board:
- Carefully take off the plastic shell of both the jumperwires, on one end.
- Pull the waterpump wires through the small holes of the shells.
- Put the waterpump wires in the stripped opening of the jumperwires and attach them with some plyers
- Pull back the shells.
- Attach the other end of the jumperwires to the Mini Fan board, where the Mini Fan plug normaly goes.
- Attach aquarium tubing and put in watercontainer.
- Connect sensors to the GrovePi ports:
Module/Sensor | Port |
---|---|
Moisture Sensor | A0 |
Light Sensor | A1 |
Mini Fan board (waterpump) | D3 |
Feel free to use different ports, just be sure to change them in growpi_zero.py
.
- Launch growPi:
$ python growpi_zero.py
- The waterpump in this setup produces about 5ml/second. Make sure to test how much your setup produces, results may vary.