2023-05-05 22:59:42 +02:00
This project is based on: https://github.com/mariusmotea/diyHue/tree/master/Lights/Arduino/Generic_Dimmable_Light
2023-05-15 19:24:29 +02:00
So this firmware is also able to be used the same way like a diyHue.com device.
2023-05-15 11:53:41 +02:00
Reef2Reef forum thread: https://www.reef2reef.com/threads/for-lumini-lominie-pixie-30-p30-hers-how-to-add-ramp-up-down-and-timer-with-memory-quite-cheaply.935409/
Most of the code was generated by ChatGPT and adapted by myself.
2023-04-24 20:26:49 +02:00
2023-05-02 14:58:02 +02:00
The controller I use is a old NodeMCU v1.0, which is connected to 4x D4184 MOS breakout boards. See NodeMCU pins table beyond.
The cable I use is a https://amzn.eu/d/0jigRCh. I cut it in half and attached it to the MOS boards.
2023-04-24 20:26:49 +02:00
2023-05-15 11:53:41 +02:00
The NodeMCU‘ s power supply is a 7805, it‘ s output is connected to the Vin pin of the NodeMCU.
2023-05-02 14:58:02 +02:00
The input of the 7805 is connected to the 24V of the DC power plug.
2023-05-15 11:53:41 +02:00
NodeMCU pin connections to the cable wires:
2023-05-02 14:58:02 +02:00
2023-06-29 13:33:17 +02:00
| |ch1|ch2|ch3|ch4||
|--|--|--|--|--|--|
2023-06-29 13:34:56 +02:00
|LED color|blue|warm white|purple|white & red & green|/|
2023-07-04 12:00:13 +02:00
|Wire colors|blue (B)|black (S)|red (R)|white (W)|green (G)|
2023-07-04 13:50:51 +02:00
|Color wire connection to Load PWM boards|1|2|3|4|+24V|
2023-06-29 13:36:30 +02:00
|Arduino pin to PWM boards|D1|D2|D7|D5|/|
2023-06-29 13:33:17 +02:00
|Arduino GPIO pin numbers|5|4|13|14|/|
2023-05-02 14:58:02 +02:00
2023-10-09 13:56:10 +02:00
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"), after the firmware is written the first time to the NodeMCU.
2023-05-15 11:53:41 +02:00
In case there is no data folder available in the firmware folder create it.
Open a unix style commandline with a bash and step unto the data folder. Run the script
$ bash ../../tools/html_gen_files.sh
This generates all of the required files and places them into the data folder.
2023-10-09 13:56:10 +02:00
The EEPROM's content will be set to default values after the first start default (except of the timing data block). Make sure that the EEPROM was erased during the firmware flashing.
2023-05-02 14:58:02 +02:00
2023-10-09 13:56:10 +02:00
You have to click at the link "reset timing control data" in the webinterface.
This will set the timing control block the a initial default setting.
2023-04-24 20:26:49 +02:00
2023-05-15 11:53:41 +02:00
The IP address is set to dynamic (DHCP) after initial flash of the NodeMCU.
2023-10-09 13:56:10 +02:00
Sample schematics (no NodeMCU pins are shown in there)
2023-05-07 16:30:42 +02:00
![Sample schematics ](pic/schematics.png )
2023-07-04 11:53:34 +02:00
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).
2023-05-10 15:24:07 +02:00
![Prototype ](pic/prototype.jpeg )
![3D printed case ](pic/case/IMG_3410.JPG )
![3D printed case ](pic/case/IMG_3411.JPG )