Compare commits

..

No commits in common. "2a8f7fbf4a814ecfbb4d5b542eb25a23661c0bc5" and "f5e8c546cb9eb017497ceb5e2a55019d700a33b7" have entirely different histories.

3 changed files with 8 additions and 10 deletions

View file

@ -14,13 +14,12 @@ The input of the 7805 is connected to the 24V of the DC power plug.
NodeMCU pin connections to the cable wires: NodeMCU pin connections to the cable wires:
| |ch1|ch2|ch3|ch4|| | |ch1|ch2|ch3|ch4|
|--|--|--|--|--|--| |--|--|--|--|--|
|LED color|blue|warm white|purple|white & red & green|/| |LED color|blue|warm white|purple|white & red & green|
|Wire colors|blue (B)|black (S)|red (R)|white (W)|green (G)| |Wire color|blue|black|red|white|
|Color wire connection to Load PWM boards|1|2|3|4|+24V| |Arduino pin names|D1|D2|D7|D5|
|Arduino pin to PWM boards|D1|D2|D7|D5|/| |GPIO|5|4|13|14|
|Arduino GPIO pin numbers|5|4|13|14|/|
The HTML content is pushed to the NodeMCU separetely by using the ESP8266 Sketch Data Upload plugin of the old Arduino IDE (not "Arduino IDE"). The HTML content is pushed to the NodeMCU separetely by using the ESP8266 Sketch Data Upload plugin of the old Arduino IDE (not "Arduino IDE").
@ -43,7 +42,6 @@ The IP address is set to dynamic (DHCP) after initial flash of the NodeMCU.
Sample schematics (no NodeMCU pins defined in there) Sample schematics (no NodeMCU pins defined in there)
![Sample schematics](pic/schematics.png) ![Sample schematics](pic/schematics.png)
Please note the letters "R" "G" "B" "W" "S" are also documented in the table above. These are the german shorts of the colors red green blue white black (schwarz).
![Prototype](pic/prototype.jpeg) ![Prototype](pic/prototype.jpeg)

View file

@ -7,7 +7,7 @@
#define LOCAL_TIMEZONE_STRING "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00" // Berlin, Germany - https://sites.google.com/a/usapiens.com/opnode/time-zones #define LOCAL_TIMEZONE_STRING "CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00" // Berlin, Germany - https://sites.google.com/a/usapiens.com/opnode/time-zones
//#define DEVELOPMENT #define DEVELOPMENT
#define LIGHT_NAME "Lumini/Lominie Pixie30/P30 light control" // default light name #define LIGHT_NAME "Lumini/Lominie Pixie30/P30 light control" // default light name
#define LIGHT_NAME_DEV_POSTFIX " (DEV)" #define LIGHT_NAME_DEV_POSTFIX " (DEV)"

View file

@ -26,7 +26,7 @@ void init_webserver()
// -------------------- // // -------------------- //
server.on("/state", HTTP_PUT, []() server.on("/state", HTTP_PUT, []()
{ // HTTP PUT request used to set a new light state { // HTTP PUT request used to set a new light state
DynamicJsonDocument root(512); DynamicJsonDocument root(512);
DeserializationError error = deserializeJson(root, server.arg("plain")); DeserializationError error = deserializeJson(root, server.arg("plain"));