I want to control brightness of lights (230V) with the Arduino, and I know that relays will just switch the lights on/off. If you have the circuit or any idea about which transistor to use and how to use then please reply.
(Sorry for my English.)
I want to control brightness of lights (230V) with the Arduino, and I know that relays will just switch the lights on/off. If you have the circuit or any idea about which transistor to use and how to use then please reply.
(Sorry for my English.)
Although being quite simple, this circuit is not for begginers. It is connected directly to mains! If not properly designed, dangerous voltages can reach your Arduino and PC.
You will need an optocoupler for proper isolation. Also you will not be using a transistor, you'll need a triac.
Check this schematic from wiki.dxarts.washington.edu
It is using MOC3020M which contains an optoisolator and triac driver.
Similar schematic can also be found on Arduino Playground.
Do not build a circuit without proper isolation!
Do not replace MOC3020 with other parts (optocoupler and transistor/diac) unless you know what you are doing!