First post here, so as an introduction I'll just say that I'm very new to Arduino and while I'm quite comfortable with the coding side of it, the hardware/electronics part is what I'll have to learn the most.
After doing some PWM tests on the breadboard, I was immediately thinking "hey, this would be cool to do with my home lights", so I started reading a bit and it got to the point where I figured asking somebody "in the know" would be a lot more productive and/or less conducive to blowing stuff up ![]()
So, what I'd like to do is confirm a few things I think I learned and ask about a couple of things that still confuse, so here it goes ![]()
a) If you want to control anything "big" (i.e. plugged in on mains electricity), Arduino is ok doing that, but you need a relay in between. For simple on/off stuff (turning on a light, etc.) I've seen plenty of examples and I'm confident I could do that without that many issues.
b) You can do PWM "through" a relay, but that requires the relay to switch fast enough and also SSRs would be better for this as mechanical relays might make noise and/or have their life shortened by the quick switching.
c) All LED "replacement" light bulbs (i.e. the ones you can just plug in where you used to have a normal incandescent one) have a transformer inside them which brings mains (220v here in Uruguay) to 12v DC.
So assuming those are "right", that brings me to the actual question:
d) Can i build a circuit where an Arduino PWMs an SSR "into" one of those 220v replacement LEDs to dim it or would that fail horribly? Or in a more general way, can you PWM the input of a transformer and expect the output to mimic the PWM, or does it get filtered by the transformer?
Thank you very in much in advance for any pointers/stuff to read/recommendations/comments ![]()