Basic programming Continuous servo

So I should use an 6 x 1,5V AA battery pack instead of the 4x 1,5V AA battery pack?

Do you have a downconverter for (6x1.5=9) 9vdc to the servo voltage?

No I don’t.

But I have an power supply module:

6vdc (4x1.5vdc) is enough for your 360 servo, but it is too much for the Arduino 5v pin and too little for the Arduino Vin pin (above 7.5vdc)

So... find a 5vdc power supply (a USB power converter?) to power the Arduino, and the 4x1.5 powers the Servo(s). Be sure to share the geound wire.

Perfect... for the Arduino. You still need 6v for the servo(s).
That needs 7.5v.

Hey JCA34F

I had to change the variable “speed” from an local variable to a global variable because I got anerror. After that the error disappeared. I got this in the serial monitor as result of your test program: “microseconds = 0”.

servo test program serial monitor result

The servo rotates slow continuously in the same direction.

Sorry, my bad, what did you type in the serial monitor? Values around 1500 should make the servo stand still, values less or greater should make it go faster.

Hey

1500 as value makes it indeed stand still. 2000 or 3000 as value doesn’t work sadly. Nothing changes.

If I don’t add an value the servo rotates slowly continuously in the same direction. So your test program works but the servo doesn’t rotate fast enough.

I also changed the wires a bit. Together with the test program it works.

What does a value of 1300 do?

What is the voltage of the plug that is plugged in to the barrel jack?

(and a breadboard power supply in post #44)

Well, 6V into the barrel jack won't work nor will trying to draw servo current through the 5 volt regulator.

You are STILL trying to power the servo from the Arduino 5V output.

What do you not understand about this diagram?

Hey

9V

When you change power supplies, post an update. The data from your questions are changing with every post.

Hey

I understand the diagram but I am simply not able to connect the battery pack separately with the servo.

Hey xfpd

With 9V I mean the 6x 1,5V AA battery pack. You can see him in the picture of post #48

Hey JCA34F

Value of 1300 does the same as 1500: the servo stands still.

@filo7, I repeat, you cannot power a servo from the UNO's 5V pin.
You are feeding 9V through the barrel jack, current then flows through a reverse polarity protection diode which drops 0.6V to 8.4V which is applied to the input of the UNO's 5V voltage regulator. The regulator then drops 3.4V to 5V. The 800mA servo current flowing through the linear regulator multiplied by the 3.4V drop causes the regulator to dissipate 2.7 Watts ( it's rated about 1.2W), it will overheat and switch OFF (or burn out).
Do you understand?

Then what battery pack should I use then? An 4x 1,5V AA battery pack maybe?

Yes, you can.

These are "adapter" connectors.

These are terminal lugs.

1 Like