natcl / Artnet

An Art-Net library for Teensy, Arduino and ESP boards
Other
340 stars 92 forks source link

Art-Net with single RGB chip #37

Closed ymatahen closed 5 years ago

ymatahen commented 6 years ago

Hi, Im pretty new to this so im not sure how the coding of this should work. I am trying to implement Art-Net onto a PAR style light over wifi with an esp8266. The light is a single RGB setup (no pixels), and i would like the esp to act as the receiver and light the rgb via the pwm pins. Any idea how the sketch might look? Thanks.

cpvalente commented 6 years ago

Hey! If I understand you correctly you want to have the data from art net sent out straight to your PWM pins. That is not too far from the ESP Artnet receive example. You would need to give an art net address to each of the your PARs, and when looping through the data (either in loop() or inside the callback) Just send the respective data to the PWM pins with digitalWrite or PORT manipulations

I made a small gist from the example I mentioned, hopefully it helps.

ymatahen commented 6 years ago

Yup. Im looking for a way to control and have each of the pwm pins control either red green or blue. Ch 1-3. Im new to using art-net, as well as programming. Still need to figure out how to program the esp for a particular universe, channels, broadcast, etc... The link to the gist for some reason does not work. Thanks

cpvalente commented 6 years ago

Fixed the link Feel free to get in touch if you need a hand with any specific questions