Hi! this my first post in the forum!
So I want to dim some halogen lamps depending on a proximity sensor.
I've been reading on this forum that I can dim a led with a transistor using PWM.
I don't really understand how a transistor works.. but I know from the high school days that it has 3 connectors.
So my questions are..
1) how do I connect the transistor to the 5v arduino and to the 12v halogen lamp?
2) will the fast pwm modulation work with an halogen lamp? I've read on other forums that halogen works on the same principle that incadescent. Some people say it will work but it will shorten the life of the bulb... what do you think?
On the coding side of things I'm pretty safe, the only thing that worries me is the electronic side which I know almost nothing about.
Any help is appreciated