I am doing a project to control 4 DC motors (24V) with Atmega 644P. I used LM2596 for 5V (for MCU) and 24V (for relays) power supply. all motors are connected to the DC power of 5 and 24 V power supply I mean motor power and input of LMs are same. the problem is when I connect transformer to convert 220Vac to 24Vdc ( including full diode bridge and 2 capacitors 4700uF 50V) the micro controller reset during 2 motors movement but when I use switching power supply instead of transformer MCU works without any problems
all Vcc pins of MCU are connected to ferrit and grounded by 100nf capacitor. outputs of microcontroller are connected to uln2803 .
the mcu works fine to drive each motor separately or even two motors in different direction but when I want to move two motors in same direction (up) the mcu reset but after try it it works!!!! this problem doesn't occur when I use 220Vac to 24Vdc 10A switching power supply.
I added two 1000uF capacitor close to the MCU power pin and every thing works fine without reset it!!!! the transformer is 250VA and motors are 4A!!! I used GSIB2060 diode bridge!!!
all Vcc pins of MCU are connected to ferrit and grounded by 100nf capacitor. outputs of microcontroller are connected to uln2803 .
the mcu works fine to drive each motor separately or even two motors in different direction but when I want to move two motors in same direction (up) the mcu reset but after try it it works!!!! this problem doesn't occur when I use 220Vac to 24Vdc 10A switching power supply.
I added two 1000uF capacitor close to the MCU power pin and every thing works fine without reset it!!!! the transformer is 250VA and motors are 4A!!! I used GSIB2060 diode bridge!!!