-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The goal of this project is to provide a more or less simple thermal controller for an infrared heating unit. The physical location does not have internet access, so the unit must provide 100% of it’s own network connectivity. This is not difficult: just configure the Raspberry PI to be a stand alone wireless access point.
Also, the building is infrequently used. There is no set schedule. Therefore the device need only turn the heat on for a specific time and turn it off the rest of the time. Therefore there is no repeat requirement.
The same idea could be used for controlling air conditioning. However, the relays used are not capable of handling the load of an AC unit. An additional relay and some AC wiring would be required.
Parts list:
- Raspberry PI model B
- DS18B20 temperature sensor (others may be substituted). This project used SunFounder’s PC board to eliminate the need for a breadboard or other circuit board to hold the DS18B20.
- Jbtek 4 Channel DC 5V Relay module
- Jumper wires
- Case for Raspberry PI, relay and temperature sensor boards. I 3D printed one from ABS. The STL files are posted as part of this project.
- Android smart phone with Android 4.4 or higher
Pin out: for pin ID’s on Raspberry, see: https://elementztechblog.wordpress.com/2014/09/09/controlling-relay-boards-using-raspberrypi/ https://pinout.xyz/pinout/pin19_gpio10#
| Physical pin | BCM/GPIO # | Connected to |
| 1 | DS18b20 temperature: VCC (3.3V) | |
| 2 | Relay board VCC (5V) | |
| 6 | Relay board GND | |
| 7 | GPIO4 | DS18b20 temperature: SIG |
| 9 | DS18b20 temperature: GND | |
| 11 | GPIO17 | Relay board: IN1 |
| 13 | GPIO27 | Relay board: IN2 |
| 15 | GPIO22 | Relay board: IN3 |
| 19 | GPIO10 | Relay board: IN4 |
Old pinout of Raspberry PI:

Quick & dirty how to get the temperature value: http://raspberrywebserver.com/gpio/connecting-a-temperature-sensor-to-gpio.html