Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | servo help requested

Discussion forum for the BasicX family of microcontroller chips.

servo help requested - yirga10 - Jan 30 13:10:00 2005


Can anyone help me with some sample code?

I am trying to run my gws servo motors continuously forward and in
reverse.

I cut the restricting dog off so that the servos will rotate, but I
cant find any sample code for continuous run. Thanks for your help!




Re: servo help requested
Re: servo help requested nathanchronister


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: servo help requested - nathanchronister - Jan 30 14:38:00 2005


--- In , "yirga10" <yirga10@y...> wrote:
>
> Can anyone help me with some sample code?
>
> I am trying to run my gws servo motors continuously forward and in
> reverse.
>
> I cut the restricting dog off so that the servos will rotate, but I
> cant find any sample code for continuous run. Thanks for your help! Assuming you still have the little circuit board inside the servo,
you will use the same code as for normal servo operation: use
PulseOut to send a 1 to 2 ms pulse to the servo. It will run one way
on a 1 ms pulse and the other way on a 2 ms pulse.

The potentiometer that formerly read the servo position can be used
to adjust so that the servo is off at a 1.5 ms pulse width. Or you
can remove the potentiometer (replacing it with two equal value
resistors to form a voltage divider) and adjust the pulse width to
get the servo to stop. Each servo will be a little different.




Re: servo help requested nathanchronister


(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: servo help requested nathanchronister - yirga10 - Jan 31 9:25:00 2005


Thanks for your help...I think I am just about there!!!

--- In , "nathanchronister"
<nathanchronister@y...> wrote:
>
> --- In , "yirga10" <yirga10@y...> wrote:
> >
> > Can anyone help me with some sample code?
> >
> > I am trying to run my gws servo motors continuously forward and
in
> > reverse.
> >
> > I cut the restricting dog off so that the servos will rotate,
but I
> > cant find any sample code for continuous run. Thanks for your
help! > Assuming you still have the little circuit board inside the servo,
> you will use the same code as for normal servo operation: use
> PulseOut to send a 1 to 2 ms pulse to the servo. It will run one
way
> on a 1 ms pulse and the other way on a 2 ms pulse.
>
> The potentiometer that formerly read the servo position can be
used
> to adjust so that the servo is off at a 1.5 ms pulse width. Or you
> can remove the potentiometer (replacing it with two equal value
> resistors to form a voltage divider) and adjust the pulse width to
> get the servo to stop. Each servo will be a little different.





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )