Using a triac (like BTA12 ot BTA08)

I have a silly question.
I want to control a 220V resistive load from arduino.
I ampify arduino pin output with a BC639, I pass the signal through opto isolator MOC3021 and I try to use a BTA12 for the load.
I failed.
I have seen a similar schematic which is:
DC_Control_for_Triacs_Circuit_Diagram-1366342665

I have made a mistake in the PCB and the connection is:
alternative

Is this my problem?

I think that you posted the same circuit twice.

I'd connect the opto isolator with current limiting resistor directly to the digital output.

Hi
They are different.

Triac

Hi @nefen1965

  1. In your description you say you are using a
    MOC3021 and the schematic shows a MOC3041.
    These two ICs are different.
    The MOC3041 has a ZeroCross circuit internally and the
    the MOC3021 does not have this circuit.

  2. The MOC3021 needs approximately 15 mA to trigger the
    internal diac and consequently trigger the triac.
    As the resistor in the LED of the MOC, (R1), is 1K2 and the voltage is 12V,
    even if the transistor is saturated, the current will be only
    10 mA. which will not be enough to trigger the diac.

Thank you for your reply.

In my circuit, ic is moc3021, but resistor is 220ohm at 5vdc.

Hi
What arduino are you using?
Are you using the transistor too?

A mini pro I use a bc639 transistor.

As much as I can check, transistor works OK.
I

Hi
please post "your" circuit with the components you are using and how they are wired.

Both circuits are complete nonsense, but for different reasons.

In the second, the opto-triac connects gate to MT1. There is no way to develop any voltage to actually fire the Triac.

Both circuits show a PNP transistor with emitter to 12 V and the base through a 2k2 resistor to the Arduino control pin. Since the Arduino control pin switches between 5 V and ground, the resistor sees either 7 V or 12 V and the transistor is always turned on.

If the MOC requires only 10 mA to trigger (as suggested by the 1k2 resistor "R1"), then driving it directly from an Arduino pin with a 330 Ohm resistor will work just fine. There is absolutely no need for the 12 V supply or transistor. :roll_eyes:

Well, OK, a 220 Ohm resistor. :grin:

Isn't that an NPN transistor?
Please show your complete circuit diagram.

And tell me why you cannot connect the optocoupler directly to a 5V digital pin - see my #2.

If your Arduino is attempting to drive one end of R4, it will never turn the PNP off.

The Arduino's max output is 5V, whcih will always be biasing T1 ON.

I didn't get as far as looking at the remainder of the circuit. :wink:

image

Sorry for the confusion.

It is just an ON-OFF circuit.

The designed circuit is shown on the upper side of the attached image.
I ordered a sample PCB that came as the lower one.

Is any of them correct?
Bottom does not fire the TRIAC.
BC639 is a NPN.

Sorry for the confusion. I found a similar circuit in the net and I attached it , just to focus on the TRIAC connection differences. Thank you all for your replies!

Correct. Top circuit is right.

Thanks.

I manually rewired and TRIAC fired!

I thank also @ruilviana and @Paul_B for their assistance!

But why are you adding an unnecessary BC639? :astonished:

The Pro Min at 5 V is more than capable of directly controlling the MOC with the 220 Ohm resistor.

Steve, did you read #9?

I do not know!

It was a proposal of a friend of mine and I found it as a reasonable safety.

You are correct. the 22mA drawn by the 220Ohms resistor is a low figure easily handled by arduino.

That is of course, the purpose of the MOC! :grin:

1 Like

Steve, did you read #9?... Obviously not LOL

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.