Main Content

ATtiny13A Resistive Soil Sensor for Duck Lovers

Moisture-Duck helps you keep track of your plants’ soil moisture and alerts you if they need watering. It utilizes the resistance measurement technique to gauge soil moisture levels. Two probes, in combination with the substrate, constitute a variable resistor. Greater soil moisture translates to improved conductivity and decreased electrical resistance. With the addition of a 12k fixed resistor, the system creates a voltage divider. The microcontroller’s ADC measures this voltage. The design is inspired by the SparkFun Soil Moisture Sensor.

The Moisture Duck is a device that measures soil moisture and emits an acoustic and optical signal if the soil is too dry. The device is based on ATtiny13, which spends most of its time in sleep mode and wakes up every eight seconds to take measurements. It can also be activated by pressing the TEST button, and the correct threshold value can be set by turning the potentiometer. To calibrate the device, it should be placed in dry soil and the potentiometer should be adjusted until the alarm is triggered. The device is compiled using MicroCore and default settings should be left unchanged. Arduino core functions and libraries are not used, and the makefile can be used for compilation without Arduino IDE. The fuse settings are -U lfuse:w:0x3b:m -U hfuse:w:0xff:m.”

Link to article