servo/stamp connection
Archiver
Posts: 46,084
Just pulled my BS2 out of storage after four years. I want to
control a servo but forgot the proper way to interface a servo with
the stamp. I know it will work if I connect it directly to the
output pin but I though there was a resistor needed. Can someone
help?
Thanks,
Mark
control a servo but forgot the proper way to interface a servo with
the stamp. I know it will work if I connect it directly to the
output pin but I though there was a resistor needed. Can someone
help?
Thanks,
Mark
Comments
control a servo but forgot the proper way to interface a servo with
the stamp. I know it will work if I connect it directly to the
output pin but I though there was a resistor needed. Can someone
help?
Thanks,
Mark
Set the output LOW to begin with, then
a 1 mSec pulse will be all the way left, 2 mSec
pulse all the way right. 1.5 mSec pulse
is mid-range. The BS2 uses 2 uSec per count,
so thats:
PULSOUT Pin, 2000 ' Output a 1 mSec pulse
PULSOUT Pin, 750 ' Output a 1.5 mSec pulse
PULSOUT Pin, 500 ' Output a 1 mSec pulse.
--- In basicstamps@yahoogroups.com, "mark_j_etheridge"
<mark_j_etheridge@y...> wrote:
> Just pulled my BS2 out of storage after four years. I want to
> control a servo but forgot the proper way to interface a servo with
> the stamp. I know it will work if I connect it directly to the
> output pin but I though there was a resistor needed. Can someone
> help?
>
> Thanks,
> Mark
refering to the physical connection of the servo to the stamp pin.
Do I connect directly to the pin or do I need to use a resistor
somewhere? I know that it works when connected direct but I remember
reading somewhere that a resistor should be used. Is a resistor
needed? If so, how should it be connected?
thanks,
Mark
--- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
wrote:
> The servo command is 'PULSOUT'.
> Set the output LOW to begin with, then
> a 1 mSec pulse will be all the way left, 2 mSec
> pulse all the way right. 1.5 mSec pulse
> is mid-range. The BS2 uses 2 uSec per count,
> so thats:
>
> PULSOUT Pin, 2000 ' Output a 1 mSec pulse
> PULSOUT Pin, 750 ' Output a 1.5 mSec pulse
> PULSOUT Pin, 500 ' Output a 1 mSec pulse.
>
>
> --- In basicstamps@yahoogroups.com, "mark_j_etheridge"
> <mark_j_etheridge@y...> wrote:
> > Just pulled my BS2 out of storage after four years. I want to
> > control a servo but forgot the proper way to interface a servo
with
> > the stamp. I know it will work if I connect it directly to the
> > output pin but I though there was a resistor needed. Can someone
> > help?
> >
> > Thanks,
> > Mark
You CAN connect directly to the center pin
(which is signal). The Servo actually has
a processor inside reading this signal,
so you don't need a resistor.
Having said that, a 220 ohm resistor on an
I/O pin will prevent damage should two
'Output' pins be connected together. It's
not needed on a servo, but won't hurt.
--- In basicstamps@yahoogroups.com, "mark_j_etheridge"
<mark_j_etheridge@y...> wrote:
> Thanks for the reply but that's not what I need help with. I was
> refering to the physical connection of the servo to the stamp pin.
> Do I connect directly to the pin or do I need to use a resistor
> somewhere? I know that it works when connected direct but I
remember
> reading somewhere that a resistor should be used. Is a resistor
> needed? If so, how should it be connected?
>
> thanks,
> Mark
>
>
> --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
> wrote:
> > The servo command is 'PULSOUT'.
> > Set the output LOW to begin with, then
> > a 1 mSec pulse will be all the way left, 2 mSec
> > pulse all the way right. 1.5 mSec pulse
> > is mid-range. The BS2 uses 2 uSec per count,
> > so thats:
> >
> > PULSOUT Pin, 2000 ' Output a 1 mSec pulse
> > PULSOUT Pin, 750 ' Output a 1.5 mSec pulse
> > PULSOUT Pin, 500 ' Output a 1 mSec pulse.
> >
> >
> > --- In basicstamps@yahoogroups.com, "mark_j_etheridge"
> > <mark_j_etheridge@y...> wrote:
> > > Just pulled my BS2 out of storage after four years. I want to
> > > control a servo but forgot the proper way to interface a servo
> with
> > > the stamp. I know it will work if I connect it directly to the
> > > output pin but I though there was a resistor needed. Can
someone
> > > help?
> > >
> > > Thanks,
> > > Mark