Pages: [1]   Go Down
Author Topic: Arduino restarts when DC motors are turned on  (Read 702 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
...a figment of your imagination
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello!

My robot's various circuits (sensor arrays, motor controller, indicators+LCD, Arduino, ..) are powered form the single supply point via dedicated voltage regulators -78xx (with decoupling capacitors). When I make Arduino turn on the DC motors, it restarts. (If the Arduino is powered from USB -no problem).

Arduino model: Mega2560
Power supply: 7.5V from a power regulator (Imax > 2A)

Motor controller circuit
IC: L298
V. regulator: L7809CV (Imax = 1.5A)
Decoupling capacitors: 0.47uF & 3.3uF at IN and 0.1uF at OUT
Motors: 2 x DC 9V cassette motors
 
I think the fairly large current draw from motors at start up makes the Arduino's supply go wonky. Will it help if I added ..maybe a 220uF cap at IN of Motor controller's regulator? Or is it something else?

Thanks.
Logged

I think. I think I am. Therefore I am... I think.

BHZ, MG, Brazil
Offline Offline
Sr. Member
****
Karma: 10
Posts: 346
Android developer; Arduino enthusiast
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try starting them using PWM on the EN pins of the L298.

I do this with my L293D: instead of simply setting EN to high when I want to turn on the motors, I use PWM on the EN pin (that's why I had the L293D EN1 and EN2 pins connected to PWM pins on the Arduino).

Logged

Learn to live: Live to learn.
Showing off my work: http://arduino.cc/forum/index.php/topic,126197.0.html

Offline Offline
Newbie
*
Karma: 0
Posts: 8
...a figment of your imagination
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I AM using PWM to drive the motors.
Logged

I think. I think I am. Therefore I am... I think.

Quebec
Offline Offline
Jr. Member
**
Karma: 3
Posts: 78
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes try a big capacitor on the motor supply rail.
You say your supply is 7.5V but you use a 7809 regulator, do you have a DC/DC converter somewhere to convert the 7.5V to something greater than 9V to feed the regulator?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
...a figment of your imagination
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks you for the reply! smiley
What value of cap would you suggest?

No actually, I temporarily lowered voltage down to 7.5V because a couple of 7805s (in different sections) started heating up rather rapidly (@12V and to a lesser extent @9V) and I don't have decent heat-sinks to fit inside the cramped space of the chassis. Could this be the cause of my problem?
 
Logged

I think. I think I am. Therefore I am... I think.

Quebec
Offline Offline
Jr. Member
**
Karma: 3
Posts: 78
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

try 100 or 220 uF

Well you've got a problem because the 7809 is supposed to regulate a voltage higher than 11V to 9V but you're feeding it 7.5V, you could remove it completely since it's just in the way.

And I dont't think the L298 has flywheel diodes, did you add some?
« Last Edit: May 15, 2013, 02:10:57 pm by semicolo » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
...a figment of your imagination
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm going to change the supply back to 9V or 12V once I can find heat-sinks that will fit inside the chassis and have decent cooling properties.

Yes, a bunch of 4148s.
Logged

I think. I think I am. Therefore I am... I think.

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 1926
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, you may also be getting other types of EMI (Electro Magnetic Interference)

There are some hints on the http://ArduinoInfo.Info WIKI here: http://arduino-info.wikispaces.com/RelayIsolation
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

0
Offline Offline
Shannon Member
****
Karma: 215
Posts: 12525
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Its likely the motor start-up current spike is pulling the supply down to about 0V briefly.

Simplest solution: use a separate supply for the motor(s).
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 8
...a figment of your imagination
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I still haven't got around to fixing it.  smiley-razz
If adding a cap doesn't work, I'll focus on further reducing EMI. Using two sources though is out of the question.

Thank you for the suggestions!
Logged

I think. I think I am. Therefore I am... I think.

0
Offline Offline
Tesla Member
***
Karma: 145
Posts: 9698
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If adding a cap doesn't work, I'll focus on further reducing EMI. Using two sources though is out of the question.

I doubt that the above will fix your problem. You might consider getting two UBECs on ebay for powering the arduino and motors from the same power source. I use the below setup to prevent the servos from causing a low voltage drop out of the servo chip when the servo motors start. 

Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: