Compare commits
No commits in common. "2a8f7fbf4a814ecfbb4d5b542eb25a23661c0bc5" and "f5e8c546cb9eb017497ceb5e2a55019d700a33b7" have entirely different histories.
2a8f7fbf4a
...
f5e8c546cb
3 changed files with 8 additions and 10 deletions
14
README.md
14
README.md
|
@ -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:
|
||||
|
||||
| |ch1|ch2|ch3|ch4||
|
||||
|--|--|--|--|--|--|
|
||||
|LED color|blue|warm white|purple|white & red & green|/|
|
||||
|Wire colors|blue (B)|black (S)|red (R)|white (W)|green (G)|
|
||||
|Color wire connection to Load PWM boards|1|2|3|4|+24V|
|
||||
|Arduino pin to PWM boards|D1|D2|D7|D5|/|
|
||||
|Arduino GPIO pin numbers|5|4|13|14|/|
|
||||
| |ch1|ch2|ch3|ch4|
|
||||
|--|--|--|--|--|
|
||||
|LED color|blue|warm white|purple|white & red & green|
|
||||
|Wire color|blue|black|red|white|
|
||||
|Arduino pin names|D1|D2|D7|D5|
|
||||
|GPIO|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").
|
||||
|
||||
|
@ -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](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)
|
||||
|
||||
|
|
|
@ -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 DEVELOPMENT
|
||||
#define DEVELOPMENT
|
||||
|
||||
#define LIGHT_NAME "Lumini/Lominie Pixie30/P30 light control" // default light name
|
||||
#define LIGHT_NAME_DEV_POSTFIX " (DEV)"
|
||||
|
|
|
@ -26,7 +26,7 @@ void init_webserver()
|
|||
|
||||
// -------------------- //
|
||||
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);
|
||||
DeserializationError error = deserializeJson(root, server.arg("plain"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue