Shop OBEX P1 Docs P2 Docs Learn Events
Pulse measurement sans Stamp — Parallax Forums

Pulse measurement sans Stamp

ArchiverArchiver Posts: 46,084
edited 2001-05-09 16:08 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-05-06 17:32
    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
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-05-09 16:08
    Hmmm, would work, but how do they measure pulses in a typical servo?
    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
    > >
Sign In or Register to comment.