Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
roomauto:deckenlichter.md [2017-01-05 07:27]
xro
roomauto:deckenlichter.md [2017-02-15 14:19] (current)
xro
Line 53: Line 53:
 * if raspberryPi1 dies or has problems, light can not be switched * if raspberryPi1 dies or has problems, light can not be switched
 * teensy Firmware logic for gpios LOW == ON needs to be changed * teensy Firmware logic for gpios LOW == ON needs to be changed
-* switching ceiling light power on/off is probably ​incompatible with planned ​change of installing ​[ESP8266 based H801](https://​www.aliexpress.com/​item/​RGBWW-Strip-WiFi-Controller-1-Port-Control-200-Lights-Communicate-with-Android-Phone-Via-WLAN-to/​32502007408.html) ​for each light+* switching ceiling light power on/off is probably ​not as quick or nice-to-look-at as having ​planned [ESP8266 based H801](https://​www.aliexpress.com/​item/​RGBWW-Strip-WiFi-Controller-1-Port-Control-200-Lights-Communicate-with-Android-Phone-Via-WLAN-to/​32502007408.html) ​do it
  
-Project ​CeilingLight on Steroids+Project ​FancyLights
 -------------------------------- --------------------------------
  
 **Working on it:**  [xro](doku.php?​id=xro:​xro) **Working on it:**  [xro](doku.php?​id=xro:​xro)
  
-Plan is to install ​2.5m RGB+CoolWhite and 3m WarmWhite LED Strip in each ceiling ​light and control them with a [ESP8266 based H801](https://​www.aliexpress.com/​item/​RGBWW-Strip-WiFi-Controller-1-Port-Control-200-Lights-Communicate-with-Android-Phone-Via-WLAN-to/​32502007408.html) for each light. Thus we can choose colour and white-colour-temp for each light.+**Plan** is to replace all the power-sucking neon-ceiling-lights with LED strip lights. Furthermore white-light color-temperature should be adjustable. For party and effect purposes the ceiling lights should be dialable to any colour. To accomplish this, 2 LED strips will be installed in each ceiling light. ​2.5m [RGB+CoolWhite](https://​www.aliexpress.com/​item/​5m-4-color-in-1-Led-Chips-RGBW-RGBWW-5050-SMD-Led-Strip-DC12V-Waterproof-Non/​32699614057.html) ​and 3m [WarmWhite LED Strip](https://​www.aliexpress.com/​item/​50m-5m-roll-led-smd-waterproof-5050-60leds-m-dc12v-14-4w-m-flexible-led-strip/​1562140605.html) for each light. They will be controled ​with a [ESP8266 based H801](https://​www.aliexpress.com/​item/​RGBWW-Strip-WiFi-Controller-1-Port-Control-200-Lights-Communicate-with-Android-Phone-Via-WLAN-to/​32502007408.html) for each light. Thus we can choose colour and white-colour-temp for each light. 
 + 
 +![ThePlan](/​wiki/​lib/​exe/​fetch.php?​w=600&​tok=48085b&​media=roomauto:​ceilinglights_great_again.jpg) 
  
 **Status**: All materials bought, H801 deilvered, awaiting delivery of LEDs and power supplies **Status**: All materials bought, H801 deilvered, awaiting delivery of LEDs and power supplies
Line 66: Line 69:
 **TODO** **TODO**
  
-1. connect 2.5m RGB-CW and 3m WW LEDs to H801 and test with default firmware +1. (done) verify H801 can be flashed with Sming firmware 
-2. test WIFI reception of H801 in ceiling light without installing it permanently. Test various possibly installation locations to improve WIFI reception. e.g. put H801 outside light-metal-casing and under gypsum-ceiling plates or outside light-metal-casing and visible next to light. +1. (skipped) ​connect 2.5m RGB-CW and 3m WW LEDs to H801 and test with default firmware 
-3. reflash and write new trusted firmware for H801, so that it can be controlled via MQTT and remembers a default light-setting +2. (done) Measure power consumption of LED-Driver 
-  * possibly ​use NodeMCU and LUA or µPython +  * power consumption in soft-off (H801 stays powered): ~0.36W 
-  * on power-on default-light setting is used +  * power consumption in all-on: 62.4W 
-  * MQTT commands +  * 10m ColdWhite, max duty: 29.1W 
-     * action/ceilinglightN/light {r:int, g:int, b:int, cw:int, ww:​int, ​ts:int} +  * 10m Blue, max duty: 28.7W 
-     * action/ceilinglightN/setdefault ​{r:int, g:int, b:int, cw:int, ww:​int, ​ts:int} +  * 10m Red, max duty: 35.6W 
-  * provide backup interface. e.g. telnet+  * 10m Green, max duty: 25W 
 +  * 10m RGB, max duty: 59.8W 
 +  * 10m RGB+CW, max duty, 5m each on a 74W Powersupply:​ 66.6W  (Netzteile am Anschlag) 
 +  * 10m WarmWhite, max duty, 5m each on a74W Powersupply:​ 61.4W (Netzteile am Anschlag) 
 +  * 10m RGB+CW+WW, Strip1+2,​max duty, 5m each on a 74W Powersupply:​ 124W  (Netzteile am Anschlag) 
 +  * 5m RGB on Powersupply1 + 5m CW on Powersupply2:​ 74W 
 +  * 5m RGB on Powersupply1 (74W) + 5m CW+WW on Powersupply2 (74W): 44.4W 
 +  * 5m RG+WW on Powersupply1 (74W) + 5m B+CW on Powersupply2 (74W): 76W 
 +  * --> RGB+CW Strip1 pro Meter: max(44.4/​5,​66.6/​10)=max(8.88,​6.66) = 8.88W/m 
 +  * --> WW Strip2 pro Meter: 61.4W/10 = 6.1W/m 
 +  * RGB+CW Strip1 60LED/m laut Verkäufer: 11.52W/m 
 +  * WW Strip2 60LED/m laut Verkäufer: 14.4w/m 
 +2. (done)test WIFI reception of H801 in ceiling light without installing it permanently. Test various possibly installation locations to improve WIFI reception. e.g. put H801 outside light-metal-casing and under gypsum-ceiling plates or outside light-metal-casing and visible next to light. 
 +  * tested in Leinwand/​Mitgliederregal Ceiling Light, which is known to have worst WiFi reception from years ago TP-link Test.   
 +Works Flawlessly :) 
 +3. (done) ​reflash and write new trusted firmware for H801, so that it can be controlled via MQTT and remembers a default light-setting 
 +  * see [HackADay-Artikle](http://​hackaday.com/​2015/​08/​25/​esp8266-in-commercial-products/​) 
 +  * see [OpenSource Firmware for H801](https://​github.com/​4ndreas/​WiFI-RGBWW-module) 
 +  * see [esp8266 Forum](http://​www.esp8266.com/​viewtopic.php?​f=13&​t=7409&​p=59978&​hilit=RGBWW#​p59978) 
 +  * see [Protocol Documentation](http://​domoticz.com/​forum/​viewtopic.php?​f=51&​t=7957) 
 +  * see [Ready Made MQTT Firmware](https://​github.com/​open-homeautomation/​h801/​blob/​master/​basic/​basic.ino) 
 +  * (check) ​use [Sming](https://​github.com/​SmingHub/​Sming/​) 
 +  * (check) use [Sming new PWM Lib](https://​github.com/​StefanBruens/​ESP8266_new_pwm) with compile flag 
 +  * (done) ​on power-on default-light setting is used 
 +  * (done) ​MQTT commands 
 +     * action/ceilingN/light {"r":int, "g":int, "b":int, "cw":int, "ww":int}  | N={1..6,​All}, int={0..1000} 
 +       * optional: "​flash":​True ​ or "​flash":​{"​repetitions":​x,​ "​cc":​[topic2,​ topic3, ...]} 
 +       * optional: "​fade":​True ​ or "​fade":​{"​duration":​ms,​ "​cc":​[topic2,​ topic3, ...]} 
 +       * specifiyng cc will forward the json message to the next topic in the list after the effect has finished or was interrupted 
 +     * action/ceilingN/defaultlight  ​{"r":int, "g":int, "b":int, "cw":int, "ww":int}  | N={1..6,​All}, int={0..1000
 +  * (done) ​provide backup interface. e.g. telnet 
 +  * (done) backup telnet interface
  
 +4. (done) test in dry state
 +  * startup behaviour: PWM pins start in INPUT direction, all channels except R- light up for 700ms \\ --> prefer solution where H801 soft-disables the LEDs and itself stays powered versus being powered on/off constantly
 +  * startup behaviour: configured default light state apply'​s really fast after about y1.4s (not after blinking due to INPUT direction though)
 +  * WIFI connection (with DHCP) works really fast. takes about <=6s
 +  * MQTT works really well
 +  * Telnet configuration works really well
 +  * spiffs flash-time pre-configuration works really well
 +4.(done) test in indirect ceiling illumination configuration
 +  * Strip1 (RGB+CW) width: 12mm
 +  * Strip2 (WW) width: 9.5mm
 +  * all in all not bright enough for that and not diffuse enough
 +4. (done) test in ceiling light enclosure
 +  * WIFI works really well, surprisingly no problem
 +4. (done) Testinstall one in ceiling light
 +  * installed in middle-membeshelp light. Splice power from Lasercutter CeilingLight
 +  * 3m Warm White (6 individul strips)
 +  * 2.5m RGB+Coldwhite (6 individual strips)
 +  * Things learned
 +    * prefer splice WarmWhite from VCC, not from V+ where it passes the PCB
 +    * Red and Green is switched on RGB+CW Strip
 +    * vor-Auflegen funktioniert nicht gut -> aufzeichnen
 +    * use 12mm 5pin clip-connectors for 12mm wide 5pin RGBW Led strip (not 10mm) -> ordered 12mm
 +    * some connector cables are too short -> need to be extended --> ordered longer ones
 +    * use extra double sided tape at ends
 +    * cut closer to 55cm than 60cm, keep away from edges light wise
 +    * keep switching power supplies away from WiFi H801
 +    * WarmWhite Strip needs to split. Looses brightness after 1.5m -> T-Connectors ordered
 +    * arrange power supply in corner of edges, where they don't cast shadow if possible
 +    * arrange H801 in center when possible
 +5. (almost done) change golightctrl so it can control H801
 +6. (1/6 done) install in ceiling lights
 +7. put CW-LEDs currently in one ceiling lights into MaSha  ​
 +WW-LEDs in all Ceiling lights as Simple-Light
 +RGB+CW+WW-Fancy-Lights int all Ceiling lights
 +8. modify 20W RGB+WW Flodding Lights with H801 and indirectly illuminate ceiling
  
-4. test thoroughly +Project ​BasicLights
-5. change golightctrl so it can control H801 +
-6. install in ceiling lights +
- +
-Project ​Switches as Robust Fallback+
 ----------------------------------- -----------------------------------
  
-**Working on it:**  [xro](doku.php?​id=xro:xro)+**Plan:** separate lights which work really really reliably 
 + 
 +**Working on it:**  [equinox](doku.php?​id=equinox:equinox)
  
-**Status**: ​Concept+**Status**: ​WIP
  
 **TODO** **TODO**
  
-1. connect Relay directly to Teensy µC +1. (1/6 done) install Tanbaby LED Lights in Ceiling Lights 
-2. change ​firmware ​to switch LOW for light-on +2. (presumably done) write firmware for Teensy2.0 
-3. change firmware to have 2 Modes +3. (almost done) create enclosure with Teensy2.0 and buttons 
-  * Direct-Mode:​ µC directly switches ceiling lights on button-presses ​and reports current state to golightctrl +4. install ​and connect power 
-  * Indirect-Mode:​ µC only reports button presses, does not directly ​switch ​ceiling ​lights, golightctrl tells µC which ceiling light to switch +5. interface with RasperryPi in a way that 
-4. have firmware automatically switch back to Direct-Mode +  * Raspberry can switch lights 
-  * if ttyACM gets closed +  * Teensy2.0 does not depend on Raspberry power 
-  * golightctrl fails to send SwitchToDirectMode-Cmd after 60s +  * Raspberry and Teensy2.0 can be disconnected from each other / from power in case of error on each
-5change golightctrl to +
- * periodically send SwitchToDirectMode-Cmd +
- * switch ​power of ceiling lights via µC +
- * know ceiling light state from µC +
- * send MQTT cmd to H801 to switch ceiling light off instead of cutting power (because faster and less weird when switching ​on again) +
- * only cut power to ceiling lights when presence==false or people hit off-switch/​webbutton multiple times or H801 MQTT keepalive times out or MQTT msg could not be delivered+
realraum Graz, Brockmanngasse 15, 8010 Graz, realraum - Verein für Technik in Kultur und Gesellschaft
  • /var/lib/dokuwiki/data/attic/roomauto/deckenlichter.md.1483597627.txt.gz
  • Last modified: 2017-01-05 07:27
  • by xro