Compare commits

...

10 commits

Author SHA1 Message Date
Kai Lauterbach
2a8f7fbf4a Typo fixed 2023-07-04 13:50:51 +02:00
Kai Lauterbach
c76438e9c8 Added RGBWS letters to the description table. 2023-07-04 12:00:13 +02:00
Kai Lauterbach
78bcbbfee1 Added a comment with a description of the letters RGBWS 2023-07-04 11:53:34 +02:00
Kai Lauterbach
67ff6cca56 Typo fixed 2023-06-29 13:37:38 +02:00
Kai Lauterbach
5816c1a2aa Typo fixed 2023-06-29 13:36:30 +02:00
Kai Lauterbach
d5014fb5ee Fixed typo 2023-06-29 13:34:56 +02:00
Kai Lauterbach
f8ace1e093 Added some more details about the connections. 2023-06-29 13:33:17 +02:00
Kai Lauterbach
66873fa735 Merge branch 'develop' 2023-06-17 08:33:37 +02:00
Kai Lauterbach
ec8072a1a6 Merge branch 'develop' 2023-05-20 12:49:49 +02:00
Kai Lauterbach
33906a2930 Disabled DEVELOPMENT flag for main branch again 2023-05-19 11:09:05 +02:00
3 changed files with 10 additions and 8 deletions

View file

@ -14,12 +14,13 @@ 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 color|blue|black|red|white| |Wire colors|blue (B)|black (S)|red (R)|white (W)|green (G)|
|Arduino pin names|D1|D2|D7|D5| |Color wire connection to Load PWM boards|1|2|3|4|+24V|
|GPIO|5|4|13|14| |Arduino pin to PWM boards|D1|D2|D7|D5|/|
|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").
@ -42,6 +43,7 @@ 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"));