Smooth Robotic Arm Control

This thread is pretty long and I don’t want to go back and read it all. Can you post the exact code you are using here? There is no reason you should be needing to press the reset…

[code]servo0 var word
buttona var bit

sound 9, [100\880, 100\988, 100\1046, 100\1175]
low 10

buttona = in4
if buttona = 1 then start

testing:
servo0 = 3048
gosub makepulses
goto testing

start:
adin 0, servo0

'serout S_OUT,i57600,[dec3 servo0\3," "]

servo0 = (servo0 * 4)+1000
gosub makepulses
goto start

makepulses:
pulsout 10, servo0
pause 10
return[/code]

I’m using the same code that you provided, but I removed all but one pair of servos, and then added one set back in at a time(as I described before)

Comment out or delete these lines. You will no longer have issues.

[code]buttona = in4
if buttona = 1 then start

testing:
servo0 = 3048
gosub makepulses
goto testing[/code]

Bingo! Works everytime now
Now I’m back to using the full program(with those lines omitted) but I can only get it to work on pins 0&10, 1&11, 2&12, 3&13; for some reason it doesn’t work on pins 4&14 and 5&15

Glad it’s working now. See… No clogged processors here!!! :unamused:

That’s because the analog inputs are on 0,1,2,3,16,17,18,19. Note 16,17,18,19 are labeled AX0,1,2,3. :wink:

ok jokes on me. Lol. Good to see you have it working.

Haha Jonny poke poke! Gotcha! :wink:

The issue is he didn’t have the ABC jumpers installed. So the inputs were floating and were either high or low by chance really. If he had installed the jumpers like the original project it would have worked normally.

Works now :blush:
That’d be my stupidity since I’m still a noob
Thanks for your help, I’ll probably make a thread showing off my arm once I finish the rest of it

while trying to make this (using the code from the original post), using a custom built master robot (made of all 422 servos) and the AL5D as the slave.
All of the servos are working well, except for the “elbow” which doesn’t have enough torque to lift the rest of the arm. When I take it off of the AL5D, it works fine, but when I put it back on I hear a high pitched noise, it is trying to lift but doesn’t have the torque to do it. Before using the master/slave system, I controlled the AL5D using software on the computer and the arm was able to operate with no problem, so I know that servo is capable of the producing enough torque, but it doesn’t with the current code.

Does anyone have any ideas?

So you are taking the elbow servo off the arm and it works?

I assume you are uasing the SSC-32 when controlling from a PC, and the BotBoard when doing the master / slave project. Can we see an image of the wiring? I suspect power issues.

as you say it works fine when not connected in a telemetry set-up so you could also check to see if the master servo is making problems by changing a few of the servos around 'just to see if the slave elbow servo works with a different master…

Yes, when I take the elbow servo off it works, and when it is on I can hear the servo trying to work, but it doesn’t move the arm (as if it is not strong enough).

I have tried to control it with other master servos, with the same issue. It works, it’s just seeming to not supply enough power. All of the master servos are HS-422, and the elbow is the usual AL5D elbow (HS-755HB). Yes, I was controlling it from a PC using the SSC-32 and I am now using the BotBoard with a BAP28.

I assumed that the image of the wiring meant the wiring on the bot board, but I can include any other images you need. In this picture, the power at the top left () is a standard 9V battery, and the power right below it is a 6.0 Volt Ni-MH 2800mAh Battery Pack.

My computer had some trouble attaching this, so I public-shared it on dropbox: dl.dropbox.com/u/25415787/BotBoardPhoto01.jpg

Wondering if there are any other differences. When connected to the PC using the SSC-32 are you using a wall pack or the 6vdc battery to power the servos?

I don’t want to do this, but I hafta… That battery got a fresh charge on it?

Just to be sure could you please post the code you are using on here. Just in case any changes snuck in there. :wink:

I got it to work by reloading the software on to it. Thanks for your help guiding me through what to check! Maybe I had a mistake in what I had loaded the first time.

When I was testing to see if it was a battery issue, I found something strange… the whole thing still works when I don’t have the 6.0 Volt Ni-MH 2800mAh Battery Pack plugged in. The bot board and the servos appear to be running just off of the 9volt. Is this okay? I saw a few pages back that you told someone it was a problem that they only had the one power source. Since it runs without the 6v plugged in, does that mean the 6v is not being used when it is plugged in? Do you see any problems with my jumper set up? (I can upload another picture if you need a different angle/lighting).

dl.dropbox.com/u/25415787/BotBoardPhoto01.jpg

The bb2 has a jumper position labeled VS_VL. When a shunt is placed here you can power the logic regulator and the servos from the 6vdc supply. If the jumper is in place with a 9vdc battery and a 6vdc battery the 9vdc battery will quickly become depleted. Can it operate with only a 9vdc battery? Yes, but not for very long. I looked at the photo and the shunt is not installed so I can only guess you have a wiring error.

Yeah, the battery drains very quickly. I don’t have much wiring going on besides the Bot Board to the batteries… any ideas on what to check to find out why the 6 and 9 don’t work together (and separately)?

Try disconnecting the batteries and putting an ohm meter on the VS and VL positive terminals. It should read open. If it reads 0 ohm find out why.

It reads open, but the battery still drains very quickly.

Just to be clear, specifically how quickly does the 9vdc battery drain?