Subject:
|
the dual servo routines...
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Fri, 25 Jul 1997 21:12:23 GMT
|
Original-From:
|
Anthony Oren Loeppert <oren@mail.utexas+avoidspam+.edu>
|
Viewed:
|
1269 times
|
| |
| |
I am having a problem using the second A5 servo output. I am using the two
servos lines to power 6 servos, 3 on one line, and 3 on the other line. I
have no problem hooking up all 6 servos to the same input line on A7, but
if I hook up more than one servo to the a5 output, after the rotation to
the destination, either all of the servos tied to A5 XOR A7 will sputter.
Not both banks at the same time, but the two banks interchange sputtering
seemingly randomly. Here is a semi-understandable ascii graphic of my
circuit, and also my source code.
The w stands for white = control wire, r = red = Vcc, b=black=ground. Is
there a fundamental flaw in my idea of chaining the servos to one control
pulse? I am also a little suspect of my chaining the all of the grounds
together, but I didn't know what else to do. I am not very experience with
simple electrical problems such as these and any help finding the problem
(solution) would be helpful.
s1{w r b}
| | |
s2{w r b}
| | |
s3{w r b}
| | |
| | *-------------------------------------*
| | |
| *-----------------* |
A7 | | |
| *-[+ 3 AA batteries -]-*
| |
| *----------A7 Ground
| |
| *-------------------------------------*
| |
s4{w r b}
| | |
s5{w r b}
| | |
s6{w r b}
|
|
|
A5
void main()
{
int i=0;
servo_a5_init(1);
servo_a7_init(1);
servo_a5_pulse=3040;
servo_a7_pulse=3040;
for(i=0;i<10;i++)
{
printf("Executing cycle %d.\n",i);
sleep(2.0);
servo_a5_pulse=2640;
servo_a7_pulse=3440;
sleep(2.0);
servo_a5_pulse=3440;
servo_a7_pulse=2640;
}
servo_a5_init(0);
servo_a7_init(0);
printf("Done.\n");
}
Anthony Oren Loeppert ***
http://uts.cc.utexas.edu/~oren/ * o*
* ***>
* *
* *
* | | *
* | / *
* |/ *
* *
* * * **\
|
|
Message has 1 Reply: | | Re: the dual servo routines...
|
| Anthony, A couple of suggestions, the handyboards dual servo routines are not as stable as one might like (the timing it tricky). I would suggest however that you put a separate battery pack on each bank of servos, since each bank can draw 3 amps (...) (27 years ago, 26-Jul-97, to lugnet.robotics.handyboard)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|