Using Zero-Crossing Circuits. www.bristolwatc... AC Power Control with Arduino • AC Power Control with ...
Пікірлер: 77
@foureyedchick2 жыл бұрын
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.
@LewisLoflin2 жыл бұрын
This works just fine and construction is easier.
@birendraprasaddas8047 жыл бұрын
It was awesome Mr.Lewis Loflin thank you for such a brief explanation.
@tocodelray3 жыл бұрын
This is the best video I've found on the subject. Just subscribed. Thanks!
@agstechnicalsupport Жыл бұрын
Thank you Lewis. I enjoyed watching.
@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.
@muhammadadnankashif55916 жыл бұрын
Awesome circuit and explanation. Good Job More than what i was looking for. Very simplified circuit of the ZCD Thanks!
@germas3693 жыл бұрын
thank you for the use case applications! very useful information
@professorvargasp48613 жыл бұрын
Congratulation Sir. Your hardware it's really good. Thank you. Best regards
@gtag1747 жыл бұрын
do you have a diagram to show how the probes of the Oscilloscope are connected to display what you have.
@conghaule14023 жыл бұрын
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
@Zhaymoor8 жыл бұрын
THANK YOU ! YOU ARE AWESOME
@lucgondim7 жыл бұрын
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!
@hectorbarrera94965 жыл бұрын
Hi, congratulation nice video, question how you are connecting the oscilloscope
@Darieee2 жыл бұрын
awesome! thanks a lot!!
@cpakditno4n95 Жыл бұрын
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.
@stephanc71924 жыл бұрын
Great video
@amenbelmont6836 Жыл бұрын
please after rectifying the 12v can the optocoupler sees zero volt?
@LewisLoflin Жыл бұрын
Yes, it is pulsating DC, don't use a filter cap.
@keepcool59456 жыл бұрын
Thank you,well explained
@sahilgarg69415 жыл бұрын
How to 220v led switch off with use of ac dimmer controller
@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.
@kolinevans91275 жыл бұрын
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?
@AnnaVannieuwenhuyse28 күн бұрын
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)
@zacsonskaria6 жыл бұрын
Is there any advantage in using a rectifier with single LED optocoupler, compared to the double LED AC optocoupler.
@kolinevans91275 жыл бұрын
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?
@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.
@Rov-qc2ti6 жыл бұрын
THANKS!
@danilodonascimentosouza88166 жыл бұрын
Hello, Would you have the arduino code for this? Thanks.
@gwav1a3 жыл бұрын
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?
@LewisLoflin3 жыл бұрын
I built and it works as I made it.
@gwav1a3 жыл бұрын
@@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.
@LewisLoflin3 жыл бұрын
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.
@LewisLoflin3 жыл бұрын
The circuit does work as I illustrated with the oscilloscope.
@gwav1a3 жыл бұрын
I agree I will get a pulse but this won't correspond to the zero crossing time. It will be well after.
@EarlWallaceNYC8 жыл бұрын
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?
@bobdoritique73474 жыл бұрын
Merci.
@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
@chamodbandara57543 жыл бұрын
Thq soomuch ❤
@mikeharmon87336 жыл бұрын
Code is at the website. www.bristolwatch.com/ele2/zero_crossing.htm
@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
@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?
@wolfgangboettcher31263 жыл бұрын
Da geht was
@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)
@LewisLoflin3 жыл бұрын
This is related to Arduino power control here is a video: kzbin.info/www/bejne/nZ_PlIaVrbSjb80 AC Power Control with Arduino
@swapnilhajare93647 жыл бұрын
Sir,can i get your email id please.i have some issues related to my project and i want some solutions from you.
@LewisLoflin7 жыл бұрын
lewis@bvu.net
@LewisLoflin9 жыл бұрын
Main webpage: www.bristolwatch.com/ele2/zero_crossing.htm