-
1Step 1
Pi:
First, you want to setup your raspberry pi with Raspbian. You may need to configure settings like wifi connection settings and power management settings to prevent the pi from disconnecting.
Clone the code here:
-
2Step 2
X10 (optional):
If you want to use X10, connect your CM19A to the USB port on the raspberry pi. Plug in the wireless controller module to your outlet.
Download mochad and run it to start the server that sends commands to the X10 modules.
https://sourceforge.net/projects/mochad/
At this point, you should be able to run something like:
echo "rf a1 on" | nc localhost 1099
To turn on A1. This will prove that your X10 connectivity is good.
Configure and add your garden devices.
-
3Step 3
K30 CO2 sensor (optional):
The CO2 sensor is very simple, and works over TTL serial. Hook up the K30 (no extra components needed), making sure to cross rx and tx wires.
Test out your CO2 sensor by running the k30.py in the code to take a CO2 sample.
Make sure to run raspi-config and enable the serial port.
-
4Step 4
SHT31 temp / humidity sensor (optional):
The SHT31 is a very simple sensor, requiring no extra components if you are using the adafruit breakout board. Hook up those lines directly to the i2c lines on the raspberry pi breakout.
Make sure to run raspi-config and enable i2c.
-
5Step 5
1-wire network (optional):
Use your resistors and capacitors to build the circuit for the 1-wire network. Match the 1-wire bus, ground, and +5V to 3 wires on CAT5 cable.
Crimp on an RJ11 end onto the cable, which will allow you to use RJ11 junction box equipment.
For each sensor:
Add a 100 Ohm resistor inline near the jack end of the cable. Solder the DS18B20 leads to the CAT5 cables.
Beware: some RJ11 junction boxes crossover certain wires (pins 1 & 4, pins 2 & 3). The pinout referenced in the circuit schematic prevents VCC and GND from being swapped, which usually destroys a poor DS18B20. Keep the 5V lines to the inner pins, and GND on the outer pins.
-
6Step 6
Software configuration:
Go to the web UI, and give your sensors friendly names. This will allow the garden squid to log the values to a set of CSV files on the pi. At this point you should be able to graph the data in the web UI.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.