are there any links or tutorials anyone can show me to wire up catnip’s ruggedised chirp product to a rasp pi. there are 4 wires which can be connected but it is not clear what is what is the unit is covered in waterproof top. fingers crossed.
1 Like
Hi @alhaigthomas and welcome to our forum.
If you want to connect Rugged Soil Moisture Sensor to a Raspberry Pi, manufacturer recommends using RS485 version:
They suggest using USB to RS485 dongle to connect this sensor to RPi.
A python library is available via pip. Type pip install chirp_modbus
to install it. Check the source code for documentation. Usage example:
from chirp_modbus import SoilMoistureSensor
s = SoilMoistureSensor(1, ‘/dev/ttyUSB5’)
print(s.getTemperature())
print(s.getMoisture())
Also check out this tutorial.
I hope this helps. Feel free to ask anything else.