Some power questions...

So, I upload the "sweep" program to Arduino.

Then I connect a 9V battery to the power-jack on the Arduino (Duemillanove). Then I connect the servo to VIN and GND and 9 pins. BUT the 'power LED' is flashing, just like the Arduino is constantly powering on and off, and the servo behaves strange...

What am I doing wrong? When I power it via the USB, everything is OK...
Maybe only regulated power goes to the power-jack, not a 9V battery?
If so, where do I connect the battery to then?

Are you certain the 9V battery is capable of powering an Arduino and a servo?

What am I doing wrong?

Using a small 9v battery. Also you need a bit of supply decoupling to reduce the electrical noise from the motor.

How can I become certain?
So nothing is bad with my board, just the battery?

Even when its on USB I see sometimes the 'power-LED' like dimming smoothly and then going back to normal... Why is this stuff happening, is the servo drawing too much power or something?

is the servo drawing too much power

Yes too much power, more than your battery can supply. Aslo don't forget decoupling.

Oh, so where do I connect the motor to then? VIN, 5V?
And what battery should i use?
What is decoupling, something with a capacitor, right? And unless its really damaging the board/motor - I don't care that much about the noise...

And unless its really damaging the board/motor - I don't care that much about the noise...

No it stops electronics from working properly.

What is decoupling,

http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

so where do I connect the motor to then? VIN, 5V?

Depends on the motor voltage but normally Vin if it will take it.

So.

  1. Get a better battery
  2. Connect servo to the VIN
  3. Get that de-coupling done

Thanks!

:slight_smile: