ARC-32: Servos wiggle randomly regardless of code

I just got a new ARC-32 board and I have installed Basic Micro Studio 2.0.0.18 along with the necessary drivers. I have no problem connecting the board and loading programs onto it. I also have two Hitec HS-8335SH servos that I am using to test the board.

Regardless of what program I load onto the board, the servos just move back and forth constantly. Sometimes both at the same time, sometimes just one or the other. There seems to be no logic to their motion. I have tried the test code from the library and several of my own programs, and the all have the same result. Even the simple program below, which I think should just move the servo in position 0 to the center, makes the servo move back and forth.


ENABLEHSERVO2

main
Hservo[P0\0]
goto main


What am I doing wrong?
Thanks for any help.

As always, the first question I would ask is how is your board powered? I always suspect power… Especially with higher power servos

Side note: with HServo, you don’t need to keep telling it to go to the same position, once it is set, it should continue to go to that location.

Try putting a delay to simulate other code in the loop. Maybe you’re calling it too often.

Alan
KM6VV

I have powered the board with a 6 volt battery and a DC power source at voltages between 6 and 7.4 with the same results. Adding a pause or the Hservowait command does nothing.

Do you have separate power for the logic versus the servos? What type of battery? Wall wart that outputs how much? Picture of setup?

I am pretty sure you don’t need enablehservo2 any more.

I would double check that you are able to download programs to it properly. For example try a simple program that blinks the LEDS on the board.

I would then try a simple pan back and forth for a servo…

Good luck
Kurt