Maker Pro
Maker Pro

Arduino restarting while controlling a mosfet with PWM.

As the title says, im having an issue with my arduino restarting whenever theres a big load attached to the mosfet. The mosfet is being controlled by the D3 pin with PWM. An LED works fine, but if i want to attach my 10x1W LED array or a motor to the drain of the mosfet, the arduino just restarts.

Ill post the code when someone requests it.
 
Last edited:
Your load takes to much power.
You need led driver to control led power,then you connect motor that takes more amps from that current and the mosfet dot have enough power.you need more amp power supply
 
Post whatever you have including circuit diagram( not fritzing) so everyone can see what you can see.

I'm guessing seperate power required.
 
In the case of the motor, do you have a reverse biased diode across the terminals the suppress the voltage spike whenever the motor is turned off?

Also, the physical wiring can have an effect. The wiring from the supply to the the microcontroller should be separate from that to the load. If they are the same, the inductance of wiring to the load and the sudden change in current causes a voltage drop that the microcontroller will see possibly causing it to restart. This applies to both ground and power.


Bob
 
Top