xmas:esp8266
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| xmas:esp8266 [2025/11/30 22:52] – mlivolsi | xmas:esp8266 [2025/11/30 22:54] (current) – mlivolsi | ||
|---|---|---|---|
| Line 82: | Line 82: | ||
| Before writing the program above, ChatGPT gave me an example program to run on Linux as an OPC server. I took that code, tested it with Xlights, | Before writing the program above, ChatGPT gave me an example program to run on Linux as an OPC server. I took that code, tested it with Xlights, | ||
| + | |||
| There’s a good article about OPC here: | There’s a good article about OPC here: | ||
| http:// | http:// | ||
| Line 95: | Line 96: | ||
| The Arduino script gave me the IP address, but you can also check your router for the IP address (dhcp). | The Arduino script gave me the IP address, but you can also check your router for the IP address (dhcp). | ||
| - | NOTE: The message data size is 12, but I only configured 2 models, so I’m only sending 6 bytes in the message (see OPC protocol above) | + | **NOTE:** The message data size is 12, but I only configured 2 models, so I’m only sending 6 bytes in the message (see OPC protocol above) |
| {{: | {{: | ||
| Line 102: | Line 103: | ||
| {{: | {{: | ||
| - | Sequencing: | + | |
| + | ==== Sequencing:==== | ||
| In Xlights, I start the channel with a value of ‘1’ using the fade tool with a color of RED. This instructs the code to run the LED command to power on the floodlights | In Xlights, I start the channel with a value of ‘1’ using the fade tool with a color of RED. This instructs the code to run the LED command to power on the floodlights | ||
| I end with a value of ‘1’ for color blue, which instructs the code to send an “off” command to the floodlights. | I end with a value of ‘1’ for color blue, which instructs the code to send an “off” command to the floodlights. | ||
| Line 112: | Line 115: | ||
| I created these tamponish looking devices to transmit to the RGB floodlights. I split the signal in two to control two flood lights (and that way, they’ll always be synched). | I created these tamponish looking devices to transmit to the RGB floodlights. I split the signal in two to control two flood lights (and that way, they’ll always be synched). | ||
| - | {{: | + | {{: |
xmas/esp8266.1764543135.txt.gz · Last modified: by mlivolsi
