ATtiny Soil Sensor : A Partnership for Happy Plants and holidays
Have you ever worried about your balcony plants when you're away? This project was born out of the need for a reliable solution to keep your plants hydrated, even when you're on vacation. We scoured the internet for options but found that our deep pots required a different approach.
As is often the case, this project was born from the need to solve a problem:
I wanted to be able to be away from home for a fortnight in the summer without having to ask someone to come and water the plants on my balcony.
I scoured the internet to explore the proposed solutions. There are several types of sensors with multiple parameters to consider, such as soil quality and soil temperature.
However, the pots I use, ranging from 5L to 25L, are too deep to use the simple PCB pot sensor found at a modest.
Document is in French and English.
Simple Demo
I wanted to be able to be away from home for a fortnight in the summer without having to ask someone to come and water the plants on my balcony.
I scoured the internet to explore the proposed solutions. There are several types of sensors with multiple parameters to consider, such as soil quality and soil temperature.
However, the pots I use, ranging from 5L to 25L, are too deep to use the simple PCB pot sensor found at a modest.
Document is in French and English.
- Variable length, allowing it to adapt to different types of pots and plants.
- Three LED for visual indications (red, orange, green).
- Have an active output allowing you to control a solenoid valve (multi-probe mode) or a pump (single probe).
- The object must be reprogrammable by ISP to adjust parameters according to specific needs.
- SEE READ ME French or English, document, diagram, code.
Simple Demo
Updates from the author
Arduino47 1 year ago
I provide you with an example of watering management with several pot probes (three in the example, more possible)
An ATtiny85 is watching, it’s the management system.
Depending on the authorization (via brightness, or a clock... or other choice...) we activate the Power On relay which allows power supply to the pot probes.
The probes measure the ground, and, depending on the need, activate their output (+Sensor Vout)
The outputs are connected to each other via a diode which makes it possible not to activate all the solenoid valves on a single request.
The common output after diode, informs the ATtiny of water request (request from soil sensor)
The ATtiny authorizes activation of the pump (which supplies the +12v line of the solenoid valves) if the water level is OK.
If the water level is low, the request from sensor is not taken into account, the relevant pot solenoid valve does not activate just like the water pump.
This example is provided for your information only.
I leave it to you to write a little code for the ATtiny, my version is undoubtedly not compatible with your needs.
I will describe the connection to the ATtiny as I made it.
The relays are defined for information (they were recovered during card recycling), you can use a model of your choice.
//FR
De retour, pour ceux qui suivent.
Je vous fourni un exemple de gestion d'arrosage avec plusieurs sondes de pot (trois dans l'exemple, possibles plus)
Un ATtiny85 veille, c'est le système management.
Suivant l'autorisation (via la luminosité, ou une horloge... ou autre choix...) on active le relais Power On qui permet l'alimentation des sondes de pots.
Les sondes mesures le sol, et, suivant le besoin, active leur sortie (+Vout de sensor)
Les sortie sont connectées entres elles via une diode qui permet de ne pas activer l'ensemble des éléctrovannes sur une demande unique.
La sortie commune après diode, informe l'ATtiny de demande d'eau (request from soil sensor)
L'ATtiny, autorise l'activation de la pompe (qui alimente la ligne +12v des électrovannes) si le niveau d'eau est OK.
Si le niveau d'eau est bas, la demande request from sensor n'est pas prise en compte, l'élecrovanne de pot concernée se s'active pas tout comme la pompe à eau.
Cet exemple vous est fourni à titre d'information.
Je vous laisse le soin de rédiger un petit code pour l'ATtiny, ma version n'étant sans doutes pas compatible avec vos besoin.
Je vous décrit le raccordement au niveau de l'ATtiny tel que je l'ai réalisé.
Les relais sont défini pour info (ils ont été récupérés lors de recyclage de cartes), vous pouvez utiliser un modèle de votre choix.
Arduino47 1 year ago
I provide you with a basic example, using
a vehicle windshield washer tank equipped with its pump.
a 12v (2.5A) power supply as basic power supply.
on a hole plate, a 5v to220 regulator to power the relay probe and other components (see diagram)
the set for the houseplant in my lab.
//FR
Pour utiliser une sonde, mode mono sonde, il faut évidemment, pour les plus averti(e)s, interposer un relais entre la sortie de la sonde (qui n'est autre que la sortie de l'ATtiny85), et l'objet à piloter. (pome, électrovanne..)
je vous fourni un exemple de base, utilisant
un réservoir de lave glace de véhicule équipé de sa pompe.
un bloc secteur 12v (2.5A) en alimentation de base.
sur une plaque à trou, un régulateur 5v to220 pour alimenter la sonde relais et autres composants (voir schéma)
l'ensemble pour la plante d'intérieur de mon labo.
Arduino47 1 year ago
Sur le plan de construction de la sonde, l'espace entre les tiges filetées est de 3,7cm (et non 3.7mm)
Arduino47 1 year ago
See note ::Simple-debug-Soil-Sensor_EN
Use the code provided: SIMPLE_SENSOR_DEBUGG_UNO.ino
zip : Simple_Sensor
//FRA
Créez un Capteur de Débogage Simplifié avec un Arduino Uno
Voir notice ::Simple-debug-Soil-Sensor_FR
Utiliser le code fourni : SIMPLE_SENSOR_DEBUGG_UNO.ino
zip : Simple_Sensor
Arduino47 1 year ago
Calibrating_Soil_Sensors_with_ATtiny85_lcd_i2c
Schéma_soil_sensor on-LCD-with-ATtiny85
Using the sensor and an LCD, we will read the values obtained from different pot measurements which will allow us to define the offsets of the range corresponding to the pot being measured.
//FRA
l'aide du capteur et d'un LCD, nous lirons les valeurs obtenues à partir de différentes mesures de pot ce qui nous permettra de définir les offsets de la plage correspondant au pot mesuré.