Hello all this is my first post. please be gentle and kind I have been messing around with arduino a little bit am excited to get more into it.
My project that I am looking to do...Not sure if its even possible. lets start off with I have some very nifty LED lights I installed into the steps of my deck. I picked up a timer for low voltage landscaping lights. Little did I pay attention to the LED's they are 12v DC and the wonderful timer is 12v AC. not going to work together. So my Idea is to take it a bit further and use Arduino to control the LED's. I would like them to be on a timer and be allowed to be dimmed. I would also like them to be able to be controlled by alexa or smart phone app.
So I am looking for any suggestions on what components to use. I have been looking at just 12v timers but not sure if that is the best way to go. Thanks for any suggestions and help.
Please excuse my attempt at a diagram. First time doing one. I did some research and if I am understanding things correct. This is what you mean by using PWM from the arduino to a N-Channel MOSFET. Sorry if this is a bother i am trying to better understand more of how this all works.
Excellent diagram but polarities and some more need to be changed.
An N-channel logic(!) MOSFET needs to handle the low side of the load, the LEDs. The 12 volt GND must be connected to the Arduino power supply GND.
That's much better but remove the ground connection of the rightmost LED! That would make the PWM useless and LEDs shining at full power.
I hope each LED represents a strip containg the neccesary resistors, or other current limiting.
Add a 180 - 220 Ohm resistor between the Arduuino and the transistor!
You alse need to change to another type of MOSFET. You need to use a logic N-channel MOSFET, not a "common" MOSFET! The gate - source voltage needed is too high for the IRF530. You've only got 5 volt there.
A naked little LED must have a resistor that limits the current. That's likely built in in the LEDs You use.
Yes. PWM stands for Pulse Width Modulation. When the controller pulse goes positive the MOSFET will conduct and let the current flow as long as the pulse is positive. When the pulse goes to zero the current is switched off. The normal frequency of the pulses is some 490 Hz. A wide pulse, or HIGH all the time gives full light. Shorter pulses reduces the light. That's the nature of dimming using PWM.
That was the MOSFET the program I used to draw the diagram with had. I did not change the naming of it to what I was going to use. This is the one I was planning on. By the way thank you so much for all you help.
Make a simple Arduino sketch that verifies PWM and the LEDs! Then go ahead and work with BT, Wifi or whatever You're thinking off! Don't smash all if it toghether and then start coding! Thai's a recepee for quadrupled trouble.