Project Goal
This project will provide a website via WiFi that will show current temperatures and pump status around a hot water cylinder.
Components and Online Support
I will use:
1) a Raspberry Pi Model B Revision 1.0 with a WiFi USB stuck (later to be replaced by a Raspberry Pi Zero W),
2) 4 heat sensors (AM2302 aka DHT22)
3) 3 current sensors (KEYES ACS712 30A) to do this.
4) A RasPiO Analog Zero to provide analogue GPIO inputs
DHT22 hardware and software data available at:
https://learn.adafruit.com/dht
and a video here:
https://www.youtube.com/watch?v=DPvxsHoD7kc
http://www.circuitbasics.com/how-to-set-up-the-dht11-humidity-sensor-on-the-raspberry-pi/
KEYES ACS712 30A info at:
https://www.fasttech.com/product/5068900-keyes-acs712-30a-range-current-sensor-module-for
System Diagram
Below shows a diagram of where the four temperature and three pump (current) sensors will be placed in the hot press containing the hot water cylinder and pump controls.
T1 - cold into bottom of cylinder
T2 - hot out of top of cylinder
T3 - hot into cylinder from burner
T4 - hot into cylinder from stove
P1 - stove pump
P2 - top of house central heating pump
P3 - bottom of house central heating pump
Code
This is all available on line and just needs to be integrated.
I used the dht.c program from:
http://www.uugear.com/portfolio/read-dht1122-temperature-humidity-sensor-from-raspberry-pi/
But changed the #define for DHT_PIN from 3 to 7.
I then extended it to handle 4 sensors rather than one.
And then to only return good values when quizzed by an HTTP GET command.
XXX
YYY
ZZZ
Testing
I thermometer will be used to compare against the reported values and the pumps will be turned on and off to check their status is reported correctly.
Above is the initial prototype testing
Above is a single DHT22 on a breadboard connected to GPIO pin 7 (GPIO 7)
And finally above is the dht program output.
Above extended to 4 temperature sensors wired to GPIO header: GPIO 7 (pin 7), GPIO 0 (pin 11), GPIO 2 (pin 13) and GPIO 3 (pin 15)
And above is the dht program output
Next to add the KEYES ACS712 30A current sensors!
Documentation
Can be found at this cloud link:
xxxxx
This project will provide a website via WiFi that will show current temperatures and pump status around a hot water cylinder.
Components and Online Support
I will use:
1) a Raspberry Pi Model B Revision 1.0 with a WiFi USB stuck (later to be replaced by a Raspberry Pi Zero W),
2) 4 heat sensors (AM2302 aka DHT22)
3) 3 current sensors (KEYES ACS712 30A) to do this.
4) A RasPiO Analog Zero to provide analogue GPIO inputs
DHT22 hardware and software data available at:
https://learn.adafruit.com/dht
and a video here:
https://www.youtube.com/watch?v=DPvxsHoD7kc
http://www.circuitbasics.com/how-to-set-up-the-dht11-humidity-sensor-on-the-raspberry-pi/
KEYES ACS712 30A info at:
https://www.fasttech.com/product/5068900-keyes-acs712-30a-range-current-sensor-module-for
System Diagram
Below shows a diagram of where the four temperature and three pump (current) sensors will be placed in the hot press containing the hot water cylinder and pump controls.
T1 - cold into bottom of cylinder
T2 - hot out of top of cylinder
T3 - hot into cylinder from burner
T4 - hot into cylinder from stove
P1 - stove pump
P2 - top of house central heating pump
P3 - bottom of house central heating pump
P4 - burner on
P5 - immersion heater on
P5 - immersion heater on
Code
This is all available on line and just needs to be integrated.
I used the dht.c program from:
http://www.uugear.com/portfolio/read-dht1122-temperature-humidity-sensor-from-raspberry-pi/
But changed the #define for DHT_PIN from 3 to 7.
I then extended it to handle 4 sensors rather than one.
And then to only return good values when quizzed by an HTTP GET command.
XXX
YYY
ZZZ
Testing
I thermometer will be used to compare against the reported values and the pumps will be turned on and off to check their status is reported correctly.
Above is the initial prototype testing
Above is a single DHT22 on a breadboard connected to GPIO pin 7 (GPIO 7)
And finally above is the dht program output.
Above extended to 4 temperature sensors wired to GPIO header: GPIO 7 (pin 7), GPIO 0 (pin 11), GPIO 2 (pin 13) and GPIO 3 (pin 15)
And above is the dht program output
Next to add the KEYES ACS712 30A current sensors!
Documentation
Can be found at this cloud link:
xxxxx
No comments:
Post a Comment