Compare commits
10 commits
f5e8c546cb
...
2a8f7fbf4a
Author | SHA1 | Date | |
---|---|---|---|
|
2a8f7fbf4a | ||
|
c76438e9c8 | ||
|
78bcbbfee1 | ||
|
67ff6cca56 | ||
|
5816c1a2aa | ||
|
d5014fb5ee | ||
|
f8ace1e093 | ||
|
66873fa735 | ||
|
ec8072a1a6 | ||
|
33906a2930 |
3 changed files with 10 additions and 8 deletions
14
README.md
14
README.md
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)"
|
||||||
|
|
|
@ -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"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue