Using Zero-Crossing Circuits. www.bristolwatc... AC Power Control with Arduino • AC Power Control with ...
Пікірлер: 78
@foureyedchick3 жыл бұрын
To make a peak detector, feed the input sine wave into an integrator or differentiator with an RC network and a 741 op amp. The integral or derivative of a sine wave is a 90-deg shifted sine wave. Then the zero-crossings and peaks are interchanged. Feed that sine wave into an optocoupler. The zero-crossing detection becomes peak detection of the original waveform.
@LewisLoflin3 жыл бұрын
This works just fine and construction is easier.
@tocodelray4 жыл бұрын
This is the best video I've found on the subject. Just subscribed. Thanks!
@birendraprasaddas8047 жыл бұрын
It was awesome Mr.Lewis Loflin thank you for such a brief explanation.
@agstechnicalsupport2 жыл бұрын
Thank you Lewis. I enjoyed watching.
@professorvargasp48613 жыл бұрын
Congratulation Sir. Your hardware it's really good. Thank you. Best regards
@cpakditno4n952 жыл бұрын
What about if you do not use the zero-crossing detector, will it randomly trigger the phase angle control?
@LewisLoflin Жыл бұрын
Yes that is the problem.
@muhammadadnankashif55916 жыл бұрын
Awesome circuit and explanation. Good Job More than what i was looking for. Very simplified circuit of the ZCD Thanks!
@gtag1748 жыл бұрын
do you have a diagram to show how the probes of the Oscilloscope are connected to display what you have.
@hectorbarrera94965 жыл бұрын
Hi, congratulation nice video, question how you are connecting the oscilloscope
@prashkd76842 жыл бұрын
Hi Lewis, will the H1AA1 circuit for ZCD work with 220VAC ? Also, can we call this circuit "isolated" from controls circuit given the isolation is only the optocoupler and not a transformers which is the stardard practice ?
@LewisLoflin2 жыл бұрын
Use a larger input resistor.
@LewisLoflin10 жыл бұрын
Main webpage: www.bristolwatch.com/ele2/zero_crossing.htm
@conghaule14024 жыл бұрын
i want speed control not on the resistor on arduino R3 .... but i have written an app to import PWM on it and then send it down to esp8266 .. can i connect esp8266 to arduino via uart .... I'm afraid the UART code is delayed
@lucgondim8 жыл бұрын
Hi Lewis, thank you for sharing this! Is there a way to detect current angle with similar circuit? I am trying a way to calculate the difference between voltage angle and current angle. Thanks!
@idus7 жыл бұрын
If i am firing an independent led optoisolator, it counts the cycles from the main supply going to the SCR's by a separate wire I would connect to the arduino?
@LewisLoflin7 жыл бұрын
Don't know what you mean. Arduino gets the pulses and it fires the SCR.
@idus7 жыл бұрын
Lewis Loflin It took a minute, but I understand now. You explain it perfectly. I was still wrapping my head around the schematic and it clicked finally. Thank you for the videos and great website. Now I need to research how the code works to manipulate it for my application. Andrew
@LewisLoflin7 жыл бұрын
Good luck.
@germas3694 жыл бұрын
thank you for the use case applications! very useful information
@franukito2 ай бұрын
hey , thanks for the knowledge. By the way, I think your tea pot is ready to be served!!! it sure sounds like it!! enjoy it
@gwav1a4 жыл бұрын
This circuit doesn't work because the LED only turns on when about 10mA flows and this is when 24x1.41 sin(wt) =22 and this is for wt around 40 degrees which is well above zero detects. Did you test this circuit?
@LewisLoflin4 жыл бұрын
I built and it works as I made it.
@gwav1a4 жыл бұрын
@@LewisLoflin how about the fact that it needs about 10mA to flow for the opto coupler to turn on. Maybe am doing something wrong-- not sure now.
@LewisLoflin4 жыл бұрын
24VAC has a peak voltage of 1.41 X 24 =~ 36V. - 36 / 2200 = 16mA. Put an oscilloscope on the optocoupler transistor collector and see if you have a pulse then get back to me. The optocoupler is more sensitive than you think. If you have substituted the optocoupler then simply lower the 2.2k to say 1.5k or even 1k. Look at the spec sheet and you will find some can take up to 60mA.
@LewisLoflin4 жыл бұрын
The circuit does work as I illustrated with the oscilloscope.
@gwav1a4 жыл бұрын
I agree I will get a pulse but this won't correspond to the zero crossing time. It will be well after.
@kolinevans91276 жыл бұрын
Good video one question, in the H11AA1 opto {start of video} why are the back to back leds only producing light on the ‘ac’ side when the polarity crosses zero to swap polarity? Should they not be producing light and thus switching the base in the other side continually?
@AnnaVannieuwenhuyse6 ай бұрын
They are, though. They are back to back so that each diode conducts on a half wave cycle. The only time both diodes are off is when the AC voltage drops below the forward voltage of the diodes, which is between -0.6v and +0.6v (around neutral)
@elye37015 жыл бұрын
Instead of adjusting AC power by phase angle, since you have a programmable microcontroller, why not just switch on integral cycles? EG for 33percent power, turn on the triac for one complete cycle and skip the next two. This in gentler on the load and I expect less transients and EMI. For something like 73percent, a hardcoded sequence to distribute the offs and ons evenly will be required but surely no big deal to code. You can do away with the pot and just have two buttons to increment or decrement the power from 0,1,2 until 99,100 percent.
@LewisLoflin5 жыл бұрын
Because that is more complex and the control is poor. Thanks.
@amenbelmont68362 жыл бұрын
please after rectifying the 12v can the optocoupler sees zero volt?
@LewisLoflin2 жыл бұрын
Yes, it is pulsating DC, don't use a filter cap.
@zacsonskaria6 жыл бұрын
Is there any advantage in using a rectifier with single LED optocoupler, compared to the double LED AC optocoupler.
@kolinevans91276 жыл бұрын
I assume the dual reverse alignment is to compensate for both polarity in the ‘ac’ but why are they only in a light functional state at the swap of polarity?
@danilodonascimentosouza88166 жыл бұрын
Hello, Would you have the arduino code for this? Thanks.
@Zhaymoor9 жыл бұрын
THANK YOU ! YOU ARE AWESOME
@eronronnieyusuf93736 жыл бұрын
Sir can u teach how to build an zero crossing detector circuit using arduino and its coding too
@LewisLoflin6 жыл бұрын
Go here: www.bristolwatch.com/ele2/zero_crossing.htm
@DreadLord7868 жыл бұрын
Hey there! Can you somehow detect the zerocross and process it on board so that the arduino has to just send the pwm nothing more?
@LewisLoflin8 жыл бұрын
You don't use PWM with AC you use phase modulation. I think the answer is not you need the pulse detector circuit.
@DreadLord7868 жыл бұрын
Yes obviously. The input is a pwm which is modulated over an ac signal i think. I want to know how the MPDMv4 universal dimmer works. It uses just a pwm input and no zero cross input which is processed internally.
@DreadLord7868 жыл бұрын
And sorry if I am wrong. I am fairly new to this.
@LewisLoflin8 жыл бұрын
No problem. Please ask if not sure.
@DreadLord7868 жыл бұрын
So my question is how can I apply pwm on an moc302x relative to a zerocross with is detected internally?
@sahilgarg69416 жыл бұрын
How to 220v led switch off with use of ac dimmer controller
@LewisLoflin3 жыл бұрын
This is related to Arduino power control here is a video: kzbin.info/www/bejne/nZ_PlIaVrbSjb80 AC Power Control with Arduino
@kaushikx7 жыл бұрын
my blb is not dimming properly. the minimum brightness is about 30-40%. can you help???
@LewisLoflin7 жыл бұрын
Change the time delay. If you are using 220V 50Hz the period is 10mSec. Don't delay past 10mSec.
@kaushikx7 жыл бұрын
still not working properly...
@reneonier6 жыл бұрын
Is it a led bulb? They are known not to work well with triacs.
@jamesmclaughlinprimitivele45877 жыл бұрын
interrupt required?
@LewisLoflin7 жыл бұрын
Yes
@Darieee3 жыл бұрын
awesome! thanks a lot!!
@EarlWallaceNYC9 жыл бұрын
Great video. Thanks. It was very helpful (like all your others). Do you have any thoughts on the following… Soon I will need a system that will detect 10^6 blue photons from a 10 usec pulse of light. I was planning to use a Silicon Photo Multiplier (SiPM), perhaps SensL’s C-30035. Any thoughts, suggestions or insights would be helpful?
@stephanc71925 жыл бұрын
Great video
@bobdoritique73474 жыл бұрын
Merci.
@keepcool59456 жыл бұрын
Thank you,well explained
@chamodbandara57544 жыл бұрын
Thq soomuch ❤
@szabojozsef78734 жыл бұрын
Hello. With zero cross detection AC regulator I would like to control welding transformer, but I saw at the scope that for example at 50% switch the transformer always will get the maximum voltage at turning on. It would be better to turn on at 0V and turn off at some point not vice versa. Can you please help how could I do that?
@LewisLoflin4 жыл бұрын
You are not dealing with DC. An AC voltage is often an average known as RMS - DC equivalent. The longer the voltage is turned on the more power delivered to the load.
@szabojozsef78734 жыл бұрын
@@LewisLoflinWhat are you talking about? I did not mention DC voltage.
@LewisLoflin4 жыл бұрын
@@szabojozsef7873 Do you know what RMS is as it relates to AC?
@szabojozsef78734 жыл бұрын
I am not talking about RMS voltage neither DC voltage or PWM. Vrms=Vpeak/sqrt(2)
@Rov-qc2ti6 жыл бұрын
THANKS!
@mikeharmon87336 жыл бұрын
Code is at the website. www.bristolwatch.com/ele2/zero_crossing.htm
@wolfgangboettcher31263 жыл бұрын
Da geht was
@swapnilhajare93647 жыл бұрын
Sir,can i get your email id please.i have some issues related to my project and i want some solutions from you.