I am new to the forum. I am looking for assistance in a Solar Hot Water Heater Controller build. My goal for this project is to use 3 temperature sensors (hot water holding tank, solar panel, and outside temperature) and 1 KY-019 relay board. Power will come in from line and be converted via a HLK-PM1. I will write a python script to monitor tank temperature, outside temperature and solar panel temperature. The pump relay will only be engaged when a certain set of criteria are met. All of this data will be posted to a web gui that will show the status of the pump, and associated temperature data. Ideally, I would like to have some prototype boards that could be used for multiple relay purposes to control various things based on temperature (brewery, greenhouse, ect.). In this case the 1-wire sensor seems to be the most ideal solution.
My plan was to use three 1-wire DS18B20 sensors wired in series with a single 4.7K Ohm Resister between 3.3V power and the Data cable (GPIO PIN4). My cable run is about 6 meters. I reviewed the information here, https://www.maximintegrated.com/en/app- ... /CMP/ELK5/ and discovered that my resistor may be slightly high and that I needed to supply 5 volts to the sensor and 3V3 down the jumped data line with the sensor. I tested this only to have intermittent problems reading temperatures (sensors would disappear). Also initially with the standard 4.7K resistor setup, it would not even read at that length of cable.
After much digging, I have discovered that the 1-wire sensor setup on the Pi Zero is good for testing but not so good for long term use and can suffer from inconsistent temperature readings. Since my solar hot water heater project is temperature dependent and cannot be running in freezing temps, I am thinking that the I2C to 1-Wire option is a better fit.
I live in the US. I am having one heck of a time locating any I2C to 1 wire breakout boards. Anywhere. Or the DS2482. I see ABElectronics UK has a 1-wire Pi Zero board but I am impatient and do not want to wait to get my board. Not to mention price.
Am I completely off my rocker for thinking of using these DS18B20 1-wire sensors or is their a better option for my application? Is their any built in I2C control on the pi zero for 1-wire sensors like the DS18B20?
Also, I am not opposed to running CAT6 to these outside sensors and running wires the entire way from the board. My end goal is to have an addressable sensor that is reliable and with higher precision of accuracy. I also don't want to break the bank.
Any advice here is greatly appreciated!