From Hentschel
(→OLED color display based on SD1331) |
(→OLED color display based on SD1331) |
||
Line 48: | Line 48: | ||
* programming the display https://media.readthedocs.org/pdf/luma-oled/latest/luma-oled.pdf | * programming the display https://media.readthedocs.org/pdf/luma-oled/latest/luma-oled.pdf | ||
[[File:lcds___displays_684_LRG.jpg|400px|thumb|left]]<br clear=both> | [[File:lcds___displays_684_LRG.jpg|400px|thumb|left]]<br clear=both> | ||
+ | [[Image:Oled-RPi-wiring.png|thumb|700px|right]] | ||
* Rudimentary bit-banging Python driver: [https://gist.github.com/HentschelT/5fa11f13832cca6e7408886f4e89d05e Gist at Github] | * Rudimentary bit-banging Python driver: [https://gist.github.com/HentschelT/5fa11f13832cca6e7408886f4e89d05e Gist at Github] | ||
* Native driver package [https://github.com/rm-hull/luma.oled at Github] | * Native driver package [https://github.com/rm-hull/luma.oled at Github] | ||
* Hooking up the display via SPI https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/wiring | * Hooking up the display via SPI https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/wiring | ||
− | |||
** Connect display ground to Raspberry Pi ground (black wire). | ** Connect display ground to Raspberry Pi ground (black wire). | ||
** Connect display VIN to Raspberry Pi 3.3 volt (red wire). | ** Connect display VIN to Raspberry Pi 3.3 volt (red wire). |
Revision as of 17:18, 26 November 2017
Contents
Basics
- getting nodes http://thomas:xxxxx@isy.home.hentschel.net/rest/nodes/
- get thermostat node http://thomas:xxxxx@isy.home.hentschel.net/rest/nodes/14%2023%20AC%201
- setting temp to 70F via REST http://thomas:xxxxx@isy.home.hentschel.net/rest/nodes/14%2023%20AC%201/set/CLISPH/140
Fan control off:
<node flag='0'> <address>14 23 AC 4</address> <name>Thermostat - Fan Control</name> ... <property id='ST' value='0' formatted='Off' uom='%/on/off'/> </node>
Fan control on
<node flag='0'> <address>14 23 AC 4</address> <name>Thermostat - Fan Control</name> ... <property id='ST' value='255' formatted='On' uom='%/on/off'/> </node>
Thermostat manuals
Design
- Use insteon 2450 to switch fireplace low-voltage control
- Control Insteon 2450 via Thermostat - Heat Control (insteon address: 14 23 AC 3) via ISY program
- Rewire house heater to use the 2nd stage heater control on the thermostat
- Sense fire place heater via 2450 input
- Engage house heater fan via ISY program
Design Rev 2.0
- create fireplace controller with raspberry pi zero + OLED display that fits into single gang box with decora faceplate
- Inspired from here:
OLED color display based on SD1331
- the Oled display which will fit into decora blank at this link
- programming the display https://media.readthedocs.org/pdf/luma-oled/latest/luma-oled.pdf
- Rudimentary bit-banging Python driver: Gist at Github
- Native driver package at Github
- Hooking up the display via SPI https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/wiring
- Connect display ground to Raspberry Pi ground (black wire).
- Connect display VIN to Raspberry Pi 3.3 volt (red wire).
- Connect display CS to Raspberry Pi CE0 (yellow wire).
- Connect display RST to Raspberry Pi GPIO 24 (blue wire). You can alternatively use any free digital GPIO pin for the reset pin.
- Connect display DC to Raspberry Pi GPIO 23 (cyan wire). You can alternatively use any free digital GPIO pin for the DC pin.
- Connect display CLK to Raspberry Pi SCLK (orange wire).
- Connect display Data to Raspberry Pi MOSI (purple wire).
OLED B/W display based on SSD1306
- address 0x7B
- wiring:
Enclosure
- the 3d-printable decora cover: at thingiverse
- Dimensions:
- Device 6.66 x 3.30 cm
- Hole in trim plate 6.68 x 3.32 cm
- 2 mm ( 0.20 cm) radius on the corners.
- Buttons are at amazon.
Design questions
How many buttons to control?
- ESCAPE/BACK
- UP
- DOWN
- SELECT/ENTER
- recessed reset button
?