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

LED Flickering (9600rate) #2

Closed
dinomaskot opened this issue Jan 21, 2019 · 13 comments
Closed

LED Flickering (9600rate) #2

dinomaskot opened this issue Jan 21, 2019 · 13 comments

Comments

@dinomaskot
Copy link

Hi,

I've just tried your example with one light using robotdyn AC dimmer and esp8266 and I'm getting a lot of flickering.

Could it be because my board baud rate is 9600 instead of 115200?

Thank you.

@fabianoriccardi
Copy link
Owner

Have you tried with 115200? I don't think the serial is the problem source...
Which pins are you using to control the dimmer?

@mazeemsk
Copy link

Hi, I have the same problem "using robotdyn AC dimmer and NodeMCU and I'm getting a lot of flickering." Frequency is 50HZ. Please Help me.

@mazeemsk
Copy link

Hi, my problem is I'm getting a lot of flickering. My frequency is 50HZ. Why is there flickering and how can I get rid of that.

@fabianoriccardi
Copy link
Owner

fabianoriccardi commented Mar 20, 2019

A couple of question:

  1. what is the circuit? Which voltage do you apply for Signal and Vcc pins?
  2. Do you always get flickering or only for specific brightness values?

@mazeemsk
Copy link

1- using this circuit http://arduinotehniq.blogspot.com/2014/10/ac-light-dimmer-with-arduino.html with nodemcu..... D6 for zero cross and D7 for signal....VCC for the circuit is 5V feed from nodemcu..
2-I always get flickering for all values....

@fabianoriccardi
Copy link
Owner

Could you try with Vcc=3,3V? However that's weird, I'm planning to insert some lines of code to better understand your problem.

@mazeemsk
Copy link

VCC is as per circuit design ... so in my opinion it should not be the problem.

@RudyFiero
Copy link

@dinomaskot Can you try it with an incandescent lamp in parallel with the led light? Triac dimmers do not always work properly with led lights. Often there is flicker in some of the range.

@Mri007
Copy link

Mri007 commented Jun 12, 2019

Zc pin GP4
Triac pin GP16
50hz freq
flicker noticable with incandescent lamp while dimming level less than 200.

@fabianoriccardi
Copy link
Owner

Sorry for the long delay, but in that period I was really busy. Recently, I get some time to look back and improve at this library.

Had you finally solved the problem?

@Mri007
Copy link

Mri007 commented Nov 6, 2019

Ohh thanks for reinvesting your time. I didnt manage to solve the flickering issue no matter how hard i bang my head on the wall >.<
Any help will appreciate.

@Karshilistic
Copy link

Karshilistic commented Nov 6, 2019

I would suggest the following sanity checks

  1. Check that you're using the latest release of the library. 1.2.0 and earlier were causing flickering for me.
  2. Check different light bulbs, including incandescent and dimmable LEDs. I found that some light bulbs behave differently and could flicker, when others do not.
  3. Try changingstatic const uint16_t startMargin = 200; and static const uint16_t endMargin = 500; in Thyristor.cpp. I played around these values in an earlier version and that seemed to help a little.
  4. Check issue Flickering and odd behaviour #12 and @fabiuz7's response there. They seem to be using a similar board to yours.

Good luck.

EDIT: I just realized you did in fact try 2 already. Sorry about that. I'd also try 4 before 3 .. 👍

EDIT 2: I just checked the linked circuit, and it seems to use a Zero Crossing optocoupler, the MOC3040, which makes absolutely no sense. Can you confirm what optocoupler is used? It's a bit peculiar that yours is actually dimming at all if that is the case. What you need is a Random Phase Optocoupler (aka optoisolator). The MOC302# is one such optocoupler.

EDIT 3: My god so many edits .. sorry! I checked the link again, and in the photos, not the schematic, a MOC3020 is actually used, not the MOC3040 referenced in the schematic. That is some crappy work on his part, to be honest. Anyway, I hope this is actually the issue and nothing more complicated. Let us know!

@fabianoriccardi
Copy link
Owner

@Karshilistic thanks for the detailed troubleshooting, but after many years without any activity and many versions later, I'm closing this issue.

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