Code Monkey home page Code Monkey logo

Comments (13)

mazeemsk avatar mazeemsk commented on July 20, 2024 1

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.

from dimmable-light.

Karshilistic avatar Karshilistic commented on July 20, 2024 1

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 #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!

from dimmable-light.

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024

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

from dimmable-light.

mazeemsk avatar mazeemsk commented on July 20, 2024

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.

from dimmable-light.

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024

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?

from dimmable-light.

mazeemsk avatar mazeemsk commented on July 20, 2024

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....

from dimmable-light.

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024

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.

from dimmable-light.

mazeemsk avatar mazeemsk commented on July 20, 2024

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

from dimmable-light.

RudyFiero avatar RudyFiero commented on July 20, 2024

@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.

from dimmable-light.

Mri007 avatar Mri007 commented on July 20, 2024

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

from dimmable-light.

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024

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?

from dimmable-light.

Mri007 avatar Mri007 commented on July 20, 2024

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.

from dimmable-light.

fabianoriccardi avatar fabianoriccardi commented on July 20, 2024

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

from dimmable-light.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.