Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with WS2812 5050 RGB 12-LED Ring #63

Open
jdschuitemaker opened this issue Feb 17, 2017 · 19 comments
Open

Need help with WS2812 5050 RGB 12-LED Ring #63

jdschuitemaker opened this issue Feb 17, 2017 · 19 comments

Comments

@jdschuitemaker
Copy link

I have a WS2812 5050 RGB LED Ring with 12 leds. It is connected to pin D4 (GPIO2) on a WEMOS D1 Mini Pro that is configured as bridge. The HUE app on my iPad finds the HUE bridge emulator and reports 6 Hue Light Strips.

I am not sure how to modify the ESP8266HueEmulator.INO so that it works with this led ring. I have found the NUM_PIXELS_PER_LIGHT and PixelCount defines in the INO, but whatever I set it doesn't change anything on the led ring.

Any suggestions?

@probonopd
Copy link
Owner

How did you connect + and - of the LED ring?

@jdschuitemaker
Copy link
Author

jdschuitemaker commented Feb 17, 2017

plus and minus are connected to a breadboard power supply.

@probonopd
Copy link
Owner

5V?

@jdschuitemaker
Copy link
Author

Yes, 5V

@probonopd
Copy link
Owner

probonopd commented Feb 17, 2017

You might need a level shifter for the data line, although it always worked for me without one. Check the description of the NeoPixelBus library for more information how to configure the library for different types of LEDs.

@jdschuitemaker
Copy link
Author

Okay, thank you. Going to look into that!

@DGxInfinitY
Copy link

Same deal here, I am having problems with a generic WS2812B strip with 8 leds the app glitches a lot and I am seeming to have severe disconnect problems, so most changes I make don't get set and the biggest problem is that the LED's literally don't show any other color than this orange color, the Adafruit library would have been better as I have tested it on the esp8266 and it works a treat, everything changes color and it looks very smooth(not choppy). The Led's will only turn on and off and won't dim.

@probonopd
Copy link
Owner

Try to treat more than 1 pixel as logical pixels. Possibly this reduces the load?

@DGxInfinitY
Copy link

Nope nothing working so far, it get detected fine by the app but I've tried everything. I am using a Nodemcu with the esp12e module. It should have enough power to run the ws2812b leds and a webserver. Let me try overclocking real quick and see if I can solve this.

@DGxInfinitY
Copy link

2 amp power supply and overclock to 160mhz did not help. Weird connection issues, a lot a garbage in serial monitor and no color change. It is either white or off. brightness doesn't work either.These are just like neopixels but just not made by adafruit. They have worked fine for a long time but only tested with the adafruit library. Is there any way we could try using this library? Like a code rework? I could try and help.

@BobbyDD
Copy link

BobbyDD commented Mar 10, 2017

Hi i have the same issue. I can select a LED strip, i can change the light level but i cant change the color.
I use a NodeMCU and a Neopixel WS2812b LED strip and i use the official Philips App on android.
I hope you can help.
Thx
Bobby

@mariusmotea
Copy link
Contributor

Same issue for me, cannot change colors with ESP-12E. With Wemos D1 mini pro i can even turn the lights on, i only see led blinking test that confirm the wifi connection, so is not a wiring issue. I have tried to power the leds with 4.2v to be sure the issue is not with the lack of level shifter. I have tried another project that use adafruit library and there where no issues to control the leds on both boards.

@BobbyDD
Copy link

BobbyDD commented Mar 11, 2017

Hi,

i use the latest github version from the ESP8266HueEmulator and the App version is Philips Hue 2.8.0 (129).

I can select the 6 strips an i can dim the light, but when i change the color it does nothing. its only white color.

On start from the NODEMCU i can see the red light on all stips and when the wifi is connected it will change to green.
I hope this helps

Thanks
Bobby

@mariusmotea
Copy link
Contributor

@BobbyDD from what store did you buy your leds? I buy multiple strips from aliexpress, store name is "BTF-LIGHTING Official Store", i also test with multiple ESP-12E, ESP-12F boards, same issue like you. If this code is working for all except us i start to believe the problem is with our leds. Still strange that other projects based on Adafruit library are working fine. Maybe a timing issue?

@mariusmotea
Copy link
Contributor

I believe i found the issue. If i compile the sketch from my Kubuntu laptop, then i'm able to change the colors. From Windows7 desktop PC i found that when i change the colors hue value from getHsb function is always 0. Not sure is this is 100% the fix as there is a big difference from color selected on application and led output, can someone confirm this?

@probonopd
Copy link
Owner

Interesting @mariusmotea, I have never used Windows for this.

@mariusmotea
Copy link
Contributor

BTW applying krulkip PR to enable DMA mode will work also with Wemos D1 mini pro.

@DGxInfinitY
Copy link

I have the issue compiling with Ubuntu 16.04 and elementaryOS

@PRO2XY
Copy link

PRO2XY commented Jun 11, 2017

I was having the same issue. The WS2812 LEDs didnt light up at all. Not even for the infoLight animations.
I merged the changes as found in the pull request from krulkip, and the LEDs started working. I did have to change the pin to GPIO3 though (which is the UART RX).

https://github.com/probonopd/ESP8266HueEmulator/pull/46/files#diff-0346a027e5c6e72cf3edfe1e2e7876b4

Also, I must mention that I changed the NeoPixelbus strip declaration line to the following to get rid of flicker. NeoPixelBus<NeoGrbFeature, NeoEsp8266Dma800KbpsMethod> strip(pixelCount);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants