Pages: [1]   Go Down
Author Topic: Arduino dying when starting speed controllers  (Read 752 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 31
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, World:

I am building a quadrotor, and I have an Arduino Mega 2560 with a sensor shield on it.  I am controlling the four motors via four speed controllers (these controllers use the same control pulses as do servos) using the Servo.h file included with the Arduino 022 software.  I have cut the positive wire going from the speed controllers to the Arduino because of the BEC.  I am powering the Arduino by its own battery.  When I rev the motors up (signal at about 1200us), the result is good.  The motors spin fine, but do not give enough torque to lift the quadrotor off the ground.  However, when I increase the signal to about 1400us, the Arduino dies after about 1.5 seconds.  I have no idea what's going wrong.  Any answers?

Keep in mind I only have the negative and signal wires running to the Arduino.  Everything is self-powered.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well that's a strange one isn't it? What do you mean by it dies, is it destroyed forever and you go buy another board? Possibly if you post your code maybe something will pop up. It sounds like you have the wiring correct.

Lefty

Logged

Offline Offline
Full Member
***
Karma: 8
Posts: 147
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My bet would be the supply voltage is dipping too low, if what you mean by "dies" is it shuts off and restarts.
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 5519
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My bet would be the supply voltage is dipping too low, if what you mean by "dies" is it shuts off and restarts.

Except he states he has separate batteries for the supply to the motors and to the Arduino.

My guess is that some kind of issue is happenning on the ground lines (voltage spike or sag?), causing a similar "restart" (once again, though, if that is what is meant by "dies")...
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 514
Posts: 31543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

My guess (we are all having them) is that increased interference from the motors is causing the arduino to crash / reset. In my usual style I would recommend more decoupling of the supplies of the two systems. Also try putting some small caps across the motors.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16548
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe he is using a LED without a series resistor.  smiley-grin


Someone has to keep the save the leds cause alive!

Lefty
Logged

0
Offline Offline
Tesla Member
***
Karma: 118
Posts: 8962
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
when I increase the signal to about 1400us, the Arduino dies after about 1.5 seconds.

Perhaps your BEC is not set properly for the 1400us pulses.
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: