I have this project from my school and I don't really know how to do that in arduino (I've already done it without it, only using basic connections)
The ones i've used are the following:
1 Triag 13A
1 Diac
1 Potentiometer 10k
1 Capacitor 250V
1 Light Bulb from 220W
I'm really a newbie into this, but, how can I fade in & out the light bulb using those components? Do I need another components?
Sorry for any inconvenient, and thank you for your attention!
I have this project from my school and I don't really know how to do that in arduino (I've already done it without it, only using basic connections)
The ones i've used are the following:
1 Triag 13A
1 Diac
1 Potentiometer 10k
1 Capacitor 250V
1 Light Bulb from 220W
I'm really a newbie into this, but, how can I fade in & out the light bulb using those components? Do I need another components?
Sorry for any inconvenient, and thank you for your attention!
You need to isolate the Arduino from the power line. That's for your safety, the safety of the Arduino, and the safety of your computer in case you connect the USB.
There are special opto-isolators for driving TRIACs such as the [u]MOC2030[/u]. You also need phase-detection/zero-crossing detection and of course that also needs to be isolated. That can be optical-isolation or transformer-isolation. (When I made a microcontroller dimmer a long time ago, I also built its power supply and I tapped-into the transformer secondary to get the phase detection.)
Also the 1st time I did this, I tested it with 12VAC (from a transformer) and a 12V light bulb before connecting it to the power line.
What is it with beginners that want to play with mains potential..?
There are millions of projects that will give experience and operate from low voltage dc or ac without the obvious dangers involved with mains voltage.