User Tools

Site Tools


xmas:esp8266

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xmas:esp8266 [2025/11/30 22:52] mlivolsixmas: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,  and then modified it for the NodeMCU. 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,  and then modified it for the NodeMCU.
 +
 There’s a good article about OPC here: There’s a good article about OPC here:
 http://openpixelcontrol.org and it will explain the protocol. http://openpixelcontrol.org and it will explain the protocol.
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)
  
 {{:xmas:xlights1.png?400|}} {{:xmas:xlights1.png?400|}}
Line 102: Line 103:
  
 {{:xmas:xlights2.png?400|}} {{:xmas:xlights2.png?400|}}
-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:infrared.png?400|}}+{{:xmas:infrared.png?200|}}
  
  
xmas/esp8266.1764543135.txt.gz · Last modified: by mlivolsi