Skip to content

CircuitPython script for publishing humidity, temperature and soil moisture readings every hour to an Adafruit dashboard. If the set thresholds are exceeded, specific preset messages are published either to remind owner to water the plant/carry out additional actions. The script also configures the WiFi and Adafruit connectivity.

Notifications You must be signed in to change notification settings

weixin10/CiaofromLuigi-Smart-Garden-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

CiaofromLuigi-Smart-Garden-

Introduction to the project

Ciao from Luigi is a smart garden as the soil moisture level, humidity and surrounding temperature is continously measured using sensors and displayed on an Adafruit dashboard to allow monitoring by the owner.



Reminders to water Luigi the plant will be emailed to the owner when soil moisture level drops below the set threshold. A 12V DC peristaltic pump that pumps water from the reservoir into the soil is also configured so that it can be switched on and off on the Adafruit dashboard to allow for remote watering. The aim of a manual watering function is such that the owner still maintains a relationship with the plant and does not rely only on automatic watering to keep the plant alive.

A 3 min Youtube video explaining the details of the project can be accessed here.

Details of CircuitPython script

Grove temperature and humidity sensor and Grove moisture sensor are used to monitor environment temperature, humidity and soil moisture levels respectively. The sensors are connected to WiFi-enabled Arduino Nano RP2040 to allow for the readings taken every hour to be published to Adafruit IO and displayed on a dashboard. The circuit design is as shown in the picture below.



The script also publishes specific preset messages to the "message" feed on Adafruit when the plant is under sub-optimal conditions defined by moisture, temperature and humidity thresholds set in the script. The messages remind the owner to water the plant or to perform other necessary actions such as to move the plant into the shade. Additionally, the red LED light turns on when the plant needs water, and conversely, the green LED light turns on when the plant is sufficiently watered. If the plant is not watered, the script will continue sending reminders to water the plant every 10 min until the owner waters the plant, after which a thank you message will be sent. The script also sends the owner a random preset motivational quote every 24 hours. Examples of messages sent are shown below.



Image of plant taken from here.

When a new message is published to the "message" feed on Adafruit (trigger), an applet created using IFTTT emails the message to the owner (output). The published applet can be accessed here. This can be when the plant requires additional actions such as watering or when it has been 24 hrs since the last motivational message.

The code for connecting to WiFi, callback functions and initialising the MQTT Client is adapted from here.

About

CircuitPython script for publishing humidity, temperature and soil moisture readings every hour to an Adafruit dashboard. If the set thresholds are exceeded, specific preset messages are published either to remind owner to water the plant/carry out additional actions. The script also configures the WiFi and Adafruit connectivity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages