Skip to content

About

An Arduino and Raspberry Pi project to detect whether my plants are dry

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

Arduino Soil Moisture Transmitter and Receiver

This is a personal project of mine to determine whether or not my house plants needed to be watered. For this project, I attached a capacitive soil sensor to an Atmega328 and recorded the wetness of the soil every 4 hours. That data is transmitted using 433mhz radio attached to the Atmega with a receiver attached to a raspberry pi. The raspberry pi then uploads that data to Google Firebase where I have a cloud function which reads the value of the soil sensor and triggers an alert through FCM to my android app.

Arduino Code

All of the code for the Atmega328 is located in the 433mhz_transmitter folder.

Receiver Code

receiver.py is the python code which runs on the Raspberry Pi.

Systemd Service

I also created a service called soil_moisture.service which is executed by systemd on the raspberry pi. This makes sure that my receiver code is always running. The service calls the start_soil_service.sh after the pigpiod.service is called. Make sure that pigpiod is installed on your Raspberry Pi before using this.

Google Cloud Code

You can find the function code for Google Cloud in this repo.

Android code

You can find the Android code in this repo

Schematics

Schematics and Gerber files are located in the schematic_pcb_gerber_files folder.

Soil Sensor Schematic

Related Repos

Google Cloud Function: https://github.com/DaveBben/fcm_soil_notification_function

Android Notification App: https://github.com/DaveBben/Soil_Moisture_Notify_App

About

An Arduino and Raspberry Pi project to detect whether my plants are dry

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages