1
\$\begingroup\$

I'm trying to build an AC dimmer using Arduino Uno microcontroller.
I tested a few options and came up with the circuit below which works perfectly fine:

AC PWM Dimmer with Arduino Uno

The only problem with this circuit is the placement of the light. The light bulb turns ON even when Arduino Uno is off and then, after connecting Arduino, the dimmer works fine and the light turns on and off as it should.
I'm trying to find a way to make sure that the light won't be turned on until the microcontroller is plugged in and ready to work, but I'm not quite sure how to do so.
I tried to put a switch between the light and the drain of IRF630 MOSFET, but it does not provide much control over the dimming process.

I will appreciate any help with this problem.

asked Nov 19, 2021 at 19:57
\$\endgroup\$

1 Answer 1

4
\$\begingroup\$

When it is activated, the optocoupler turns off the MOSFET, otherwise it is turned on via the 100k pullup resistor.

Therefore when the arduino is off, then the optocoupler is off, and the MOSFET will turn on, and the light will turn on.

If you want it the other way around, you have to design it so that when the arduino turns on the optocoupler, that turns on the MOSFET.

Something like that, maybe adjust R11 to get a proper 15V on the cap when the FET is fully on.

enter image description here

answered Nov 19, 2021 at 21:38
\$\endgroup\$
1
  • \$\begingroup\$ Thanks for your help. Appreciate it. \$\endgroup\$ Commented Nov 21, 2021 at 16:01

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.