probonopd / ESP8266HueEmulator

Emulate a Philips Hue bridge running on an ESP8266 using the Arduino IDE.
MIT License
411 stars 93 forks source link

It is Possible to control a RGB/White LED/LED-Strip via ESP's built-in PWM generators ? #73

Open calkoe opened 7 years ago

calkoe commented 7 years ago

My attempt to control a RGB or White LED via your awesome HueEmulator failed badly... i don't know where to implement the analogWrites() in the Sketch.

It is Possible that you will implement a Feature to control every (RGB & White) LED via ESP's built-in PWM generators via the HueEmulator ?

That would be awesome!

gordonthree commented 6 years ago

@calkoe Can you share what you have so far? I have an esp married to a Philips rgbw led driver that handles the pen, saving the esp CPU for network and interface. Using this driver, the calls would likely go the same place as the neopixel calls.

mariusmotea commented 6 years ago

Don't try PWM with default Arduino library, you will face flickering and other stability issues. I use this reworked library that work much better. https://github.com/StefanBruens/ESP8266_new_pwm

MarianoAmado commented 6 years ago

Hi, i'm facing the same problem (i guess), I just want to control an RGB led instead of a neopixel and I don't know how to modify the code; maybe you could make another .ino file? Also that would provide more flexibiliity for different kinds of applications. Great work tho. :)