exomic
Member
Hello,
First I wish to all of you a great year for 2021 (it can only gets better... right?... right???).
I trying to build a simple circuit wish involve a arduino mega to control LEDs using MOSFET and a 12v power supply (to avoid drawing current from the limited arduino's pins). I want to be able to switch the LEDs on and off using only the 5V from the Arduino IO pin without drawing the current from the arduino. To accomplish that I used N-Mosfets and it seems to work fine the simulation (I never used Mosfets before so maybe you will find something wrong in my circuit). I also wanted to use one arduino pin to DIM all the LEDs. That's where I know I messed up but I can't figure out a cleaner way to do it while keeping the circuit clean and simple.
IO1-2-3 represents the Arduino pins.
The project can be tested here
The issue with the dimming is that the resistance is fixed at 2k in series with all the LED box so depending on how many led are turned on it will change the dimming.
Also I'm scared about the 12V going into the Arduino IO Pins in this circuit (blowing the Arduino with the 12v power supply). Could I use diodes after the 10k pulldown resistor to avoid flow towards the Arduino? What about the MOSFET could it flows there too and blow the Arduino?
Thanks guys!
First I wish to all of you a great year for 2021 (it can only gets better... right?... right???).
I trying to build a simple circuit wish involve a arduino mega to control LEDs using MOSFET and a 12v power supply (to avoid drawing current from the limited arduino's pins). I want to be able to switch the LEDs on and off using only the 5V from the Arduino IO pin without drawing the current from the arduino. To accomplish that I used N-Mosfets and it seems to work fine the simulation (I never used Mosfets before so maybe you will find something wrong in my circuit). I also wanted to use one arduino pin to DIM all the LEDs. That's where I know I messed up but I can't figure out a cleaner way to do it while keeping the circuit clean and simple.
IO1-2-3 represents the Arduino pins.
The project can be tested here
The issue with the dimming is that the resistance is fixed at 2k in series with all the LED box so depending on how many led are turned on it will change the dimming.
Also I'm scared about the 12V going into the Arduino IO Pins in this circuit (blowing the Arduino with the 12v power supply). Could I use diodes after the 10k pulldown resistor to avoid flow towards the Arduino? What about the MOSFET could it flows there too and blow the Arduino?
Thanks guys!
Attachments
Last edited: