Changes

Fireplace controller project

1,876 bytes added, 09:03, 9 March 2018
/* Design Rev. 3.0 */
* Inspired from [http://frederickvandenbosch.be/?p=1365 here]:
[[File:raspi0-box.jpg|400px]]<br clear=both>
=== Hardware ======= OLED color display based on SD1331 ====
* the Oled display which will fit into decora blank [https://www.adafruit.com/products/684 at this link]
* programming the display https://media.readthedocs.org/pdf/luma-oled/latest/luma-oled.pdf
<br clear=both>
[[File:j8header-zero.png|400px|thumb|left|pi4j gpio]][[File:pi-gpio-bcm.png|400px|thumb|BCM GPIO]]<br clear=both>
==== OLED B/W display based on SSD1306 ====
* address 0x7B
* wiring:
[[File:raspberry_pi_RaspberryPi_I2C_bb.png|400px|left]]<br clear=both>
 
==== Relay board ====
* [[File:Schematic-0G-00004539-Mod-Relay-x1-5V.pdf]]
==== Temp Sensor ====
* Type DS18b20
* Amazon [https://www.amazon.com/gp/product/B00KUNKR3M/ link]
 
=== Software ===
* install/enable luma.oled [https://luma-oled.readthedocs.io/en/latest/install.html link] + examples [https://github.com/rm-hull/luma.examples link], make sure examples run
* find font files 'concertone-regular.ttf' and 'fontawesome-webfont.ttf'
* install python oled server, use example scripts for verification
* update node-red from current version on RPi https://nodered.org/docs/hardware/raspberrypi
** check this too -> https://timchooblog.wordpress.com/2016/06/14/configuring-the-johnny-five-robotics-library-to-work-in-node-red/
* add "require:require" to the ''settings.js'' in the .node-red directory
* cd '.node-red'
* 'npm install node-red-contrib-stoptimer'
* 'npm install node-red-contrib-ds18b20-sensor'
* https://github.com/node-red/cookbook.nodered.org/wiki/How-to-backup-flows-and-related-configuration
* node-red flow for fireplace (rename to .js and import) [[:File:node-fireplace-js.doc|node-fireplace.js]]
=== Enclosure ===
# recessed reset button
?
 
== Design Rev. 3.0 ==
[[Image:Sonoff-TH16.jpg|400px|thumb|right]]
[[Image:Sonoff-TH16-back.jpg|400px|thumb|right|backside]]
* Use Sonoff 16TH, install firmware found [https://github.com/arendst/Sonoff-Tasmota at this link]
* '''before this works, need to have emergency/offline action when network not available, otherwise nothing will shut the fireplace down if network is unavailable'''
* Schematic here: [[:File:Sonoff_TH10A(16A)_schmatic.pdf]]
* Find 5V connection for USB power supply on the board
** make sure relay works
* Enclosure:
** Either drill blank Decoray cover and 3d print a mount
** Or 3d print the whole Decora cover including mount
Bureaucrat, administrator
963
edits