Pulse measurement sans Stamp
Archiver
Posts: 46,084
OK, the Stamp can do a good job measuring pulses with PULSIN, but are
there alternatives out there when I don't want to dedicate a stamp to
a function?
I want to set up a few functions to work of an RC receiver's PWM
servo signal, which normally varies from 1.0 - 2.0 or so ms, repeated
every 20 ms. So a device (or cascade of devices) would close a switch
if the pulse is in one range, another switch if in another range.
(And I don't want to just buy one of those multifunction devices that
are on the market).
Thx, PM
there alternatives out there when I don't want to dedicate a stamp to
a function?
I want to set up a few functions to work of an RC receiver's PWM
servo signal, which normally varies from 1.0 - 2.0 or so ms, repeated
every 20 ms. So a device (or cascade of devices) would close a switch
if the pulse is in one range, another switch if in another range.
(And I don't want to just buy one of those multifunction devices that
are on the market).
Thx, PM
Comments
after it works the way you want it use a Basic compiler and program a
PIC. A PIC16F872 is a 28 pin package with 22 I/O pins and can be bought
for about $3.50 plus you need a crystal if you need someone to compile
your program and write a PIC let me know.
Craig
> Message: 18
> Date: Sun, 06 May 2001 01:26:42 -0000
> From: patmat2350@a...
> Subject: Pulse measurement sans Stamp
>
> OK, the Stamp can do a good job measuring pulses with PULSIN, but are
> there alternatives out there when I don't want to dedicate a stamp to
> a function?
> I want to set up a few functions to work of an RC receiver's PWM
> servo signal, which normally varies from 1.0 - 2.0 or so ms, repeated
> every 20 ms. So a device (or cascade of devices) would close a switch
> if the pulse is in one range, another switch if in another range.
> (And I don't want to just buy one of those multifunction devices that
> are on the market).
> Thx, PM
>
I'm thinking there must be a simple analog/dicrete solution here...
like, maybe they convert pulse width to voltage level (= desired
position), and compare to current position (via voltage across the
position pot) with an op-amp?
The key then is conversion of pw to voltage.
Any help, anyone?
patmat
--- In basicstamps@y..., Craig Gardner <cgardner@r...> wrote:
> One way to do that would be to write the program for the basic
stamp and
> after it works the way you want it use a Basic compiler and program
a
> PIC. A PIC16F872 is a 28 pin package with 22 I/O pins and can be
bought
> for about $3.50 plus you need a crystal if you need someone to
compile
> your program and write a PIC let me know.
>
> Craig
>
>
> > Message: 18
> > Date: Sun, 06 May 2001 01:26:42 -0000
> > From: patmat2350@a...
> > Subject: Pulse measurement sans Stamp
> >
> > OK, the Stamp can do a good job measuring pulses with PULSIN, but
are
> > there alternatives out there when I don't want to dedicate a
stamp to
> > a function?
> > I want to set up a few functions to work of an RC receiver's PWM
> > servo signal, which normally varies from 1.0 - 2.0 or so ms,
repeated
> > every 20 ms. So a device (or cascade of devices) would close a
switch
> > if the pulse is in one range, another switch if in another range.
> > (And I don't want to just buy one of those multifunction devices
that
> > are on the market).
> > Thx, PM
> >