natcl / Artnet

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

ESP32sync + SK6812 flickering random colors #32

Closed Heljick closed 5 years ago

Heljick commented 6 years ago

Hi, got random colors and flickering with my ESP32 and SK6812 using ArtnetNeoPixelESPSync. I am sending effects from Touchdesigner and it's working great but I still have random flickering (first led is most of the time green) any idea ? Power is enough and got GND connected to the ESP board, tried add a delay after leds.show(); but doesn't help, tried without my Adafruit OLED FeatherWing screen but doesn't help neither.

Working on wondows 10 and Feather HUZZAH32 by Adafruit, Arduino SDK 1.8.5 Also included those .h

include

include

include

include

include

Thanks for your work and for helping !

natcl commented 6 years ago

Does TouchDesigner support Art-Net 4 / artsync ?

Heljick commented 6 years ago

yes I am guessing it's Artnet 4 and ArtSync is working aswell

natcl commented 6 years ago

How many LEDs are you controlling? Does the flicker happen with basic examples from the Neopixel library?

-- lecaude.com studioimaginaire.com

Le 3 avr. 2018 à 09:19, Heljick notifications@github.com a écrit :

yes I am guessing it's Artnet 4 and ArtSync is working aswell

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Heljick commented 6 years ago

Nope, didn't found any Adafruit demo for ESP32 :/ But I can tell it's not a Touchdesigner issue as my effects are working with the good colors. If that can help after initTest() finish I have random LED on instead of all being off. Seen on the web that can be ESP32 related issue which is not working exactly as ESP8622 with leds. Need to foundan other PSU to be sure it's not related but never had issue with thissetup using FadeCandy. Actually driving 128 leds on one universe.

natcl commented 6 years ago

Is your data line sending to the leds 5V or 3.3V ?

Heljick commented 6 years ago

The data line is only sending Data, led strip is connected to 5v. I missed a parameter to move from RGB to RGBW, doesn't solve the problem but now after initTest() I always have led 23 on when others are off.

Heljick commented 6 years ago

Ok so I changed the PSU and redo all the connections, same issue here, seems ESP32 related for me. Has this already been test by one of you guys ?

natcl commented 6 years ago

Yes but the data line is an electrical signal. These LEDs are designed to run at 5V on the data line and the ESP32 is probably 3.3v which can cause issues. https://learn.adafruit.com/neopixel-levelshifter/shifting-levels

Heljick commented 6 years ago

Oh yea didn't seen that coming as I was always working with 5v boards before ! Thanks will have a look and let you know how works ;) thanks

Heljick commented 6 years ago

So I bought a txb0108 and the issue is still the same :/ I can see that the input data is about 7.5mV and the output data 43mv but the result is the same. LED 23 light up after boot test and flickering during process. Any other idea ?

natcl commented 6 years ago

Do you have another strip to test?

Heljick commented 6 years ago

I got some WS2812B, will try it later. Do you know any simple free software to test outside touchdesigner ? Can't found good stuff :/

natcl commented 6 years ago

The demos of madmapper and resolume should work

2018-04-06 10:20 GMT-04:00 Heljick notifications@github.com:

I got some WS2812B, will try it later. Do you know any simple free software to test outside touchdesigner ? Can't found good stuff :/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/natcl/Artnet/issues/32#issuecomment-379268073, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEu9PU5ML7_EucwyiwsUGOCOOm7yWMnks5tl3migaJpZM4TFAsp .

Heljick commented 6 years ago

Just tried Madmapper demo and got the same glitch. I let know when I will have time to test the WS2812B ;)

Heljick commented 6 years ago

So with WS2812B and an other power supply I have the same issue, as the first led being green. Colors are ok when static color is asked but glitch appear when colors are moving. Will try some code later to see how it performs. Maybe an issue with the Feather ESP32 but will be wierd :/ As well with WS2812B it's working better without the TXB0108, there is no change on SK6812.

natcl commented 6 years ago

Would be nice if you could test with only the Neopixel library to see if it's an issue with the network.

Heljick commented 6 years ago

image https://github.com/adafruit/Adafruit_NeoPixel/issues/139 Seems I am not the only one getting this issue, so I guess It's the board having somthing special which need extra code or modification to run properly.

Heljick commented 6 years ago

So after some talk with Scott from the other thread this is coming from the wifi connection on the Feather HUZZAH SP32 and works well on ESP8266 only !