Zero Crossing Circu...
 
Notifications
Clear all

Zero Crossing Circuit

8 Posts
4 Users
0 Reactions
3,832 Views
JCook
Posts: 1003
Topic starter
(@jcook)
Noble Member
Joined: 13 years ago
[#55631]

Triac Circuit

I am really struggling to get this circuit to work.

This is a zero crossing circuit to drive EL Wire using a Triac Driver optocoupler and aTriac. I just cannot get it to work.

It will control the LED on the control side but it will not power the EL Wire. When I measure the voltage at pin 6 I get 160VAC, at pin 4 is only outputs 20VAC

This circuit is designed by Sparkfun. Found here
Here is the circuit for one channel

Screenshot 2022 02 21 161741

Here is may breadboard setup.

2022 02 26 11.33.25

Here is an example someone else did the same thing

breadboard example2

7 Replies
MartinMueller2003
Posts: 7615
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

That is not a zero cross detector circuit. That is a Triac Driver circuit. Most times the circuit is wired with what you have marked as EL_G directly to VCC (Normally 5V) and use a signal that goes low (zero volts wrt VCC) to turn on the triac via pin 2. This low = on is usually done because most driver devices (GPIO output stage) can sink (active low) far more current than they can source (Active high). Across pins 4/6 you should only see about 20VAC max. Across pins 1/4 you should only see about 1.5 - 2VDC, known as vForward across the internal LED. The current through the LED should be limited to 20ma.If your intent is dimming, then you will need to feed in a PWM signal that is synchronized to the AC line. That synchronization is done at the controller.


Reply
Posts: 226
(@thomasled)
Estimable Member
Joined: 5 years ago

Just a couple observations:

1. From what I can see in your photo, red EL is incorrectly connected to the SCR's Gate. The correct location for the red EL connection is the SCR's A1 lead.

If it has been powered in this state then you may need to replace the SCR.

2. There's also a mystery component between the Opto Pin-4 and the SCR gate. Your schematic shows that this should be a direct connection.

- Thomas


Reply
JCook
Posts: 1003
Topic starter
(@jcook)
Noble Member
Joined: 13 years ago
MartinMueller2003 wrote:That is not a zero cross detector circuit. That is a Triac Driver circuit. Most times the circuit is wired with what you have marked as EL_G directly to VCC (Normally 5V) and use a signal that goes low (zero volts wrt VCC) to turn on the triac via pin 2. This low = on is usually done because most driver devices (GPIO output stage) can sink (active low) far more current than they can source (Active high). Across pins 4/6 you should only see about 20VAC max. Across pins 1/4 you should only see about 1.5 - 2VDC, known as vForward across the internal LED. The current through the LED should be limited to 20ma.If your intent is dimming, then you will need to feed in a PWM signal that is synchronized to the AC line. That synchronization is done at the controller.

No dimming, just on/off

The schematic is for the same shield i used before and the outputs were turned on with a HIGH logic. If you look at the full schematic HERE, you'll see.

Also, looking at my old code I used the HIGH to turn them on, this shouldn't be any different.

 digitalWrite(output_1, (e131.data[0] > 127) ? HIGH : LOW);

Also I'm currently running code to make it blink, so wouldn't it still blink bust just inverted?


Reply
JCook
Posts: 1003
Topic starter
(@jcook)
Noble Member
Joined: 13 years ago

Re: Triac Circuit

ThomasLED wrote:Just a couple observations:
1. From what I can see in your photo, red EL is incorrectly connected to the SCR's Gate. The correct location for the red EL connection is the SCR's A1 lead.

oops i drew the red line incorrectly, it was connected to A1 lead, not the gate. I removed the wire as I was trying to get the best picture so I drew it in.

If it has been powered in this state then you may need to replace the SCR.

2. There's also a mystery component between the Opto Pin-4 and the SCR gate. Your schematic shows that this should be a direct connection.

if you mean the green looking component, that is just a jumper with a green insulation.


Reply
JCook
Posts: 1003
Topic starter
(@jcook)
Noble Member
Joined: 13 years ago
MartinMueller2003 wrote:That is not a zero cross detector circuit. That is a Triac Driver circuit. Most times the circuit is wired with what you have marked as EL_G directly to VCC (Normally 5V) and use a signal that goes low (zero volts wrt VCC) to turn on the triac via pin 2. This low = on is usually done because most driver devices (GPIO output stage) can sink (active low) far more current than they can source (Active high). Across pins 4/6 you should only see about 20VAC max. Across pins 1/4 you should only see about 1.5 - 2VDC, known as vForward across the internal LED. The current through the LED should be limited to 20ma.If your intent is dimming, then you will need to feed in a PWM signal that is synchronized to the AC line. That synchronization is done at the controller.

My issues was self inflicted....

You got me to think about the LED which I added as I saw it in one of the examples.... I removed it and now t works. I guess it was drawing too much current? it had a 390 ohm resistor on it.


Reply
Posts: 147
(@blickensderfer)
Estimable Member
Joined: 19 years ago

If you are putting the led and octo in series. the 390 ohm resister may be too large depending on the supply voltage. If you need to run the numbers, here is a quick online calc for leds. 😉 https://ledcalculator.net/


Reply
MartinMueller2003
Posts: 7615
(@martinmueller2003)
Illustrious Member
Joined: 14 years ago

Putting them in series is a bad idea. It delays when the triack gets triggered.


Reply
Share: