Shop OBEX P1 Docs P2 Docs Learn Events
variable voltage input to variable frequency 5v pulse — Parallax Forums

variable voltage input to variable frequency 5v pulse

ArchiverArchiver Posts: 46,084
edited 2003-10-29 13:09 in General Discussion
I'm about as new to this as anyone can get. I'd like to know if I'm
even looking in the right direction.

Can I take a variable 0-5v input and translate it into a respective
variable frequency 5v pulse out with the stamp?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-10-29 07:38
    In general - yes. Using Basic Stamp operators RCTIME and FREQOUT.
    RCTIME would convert the DC input into time and your program would
    convert the time into required operand for operator FREQOUT.
    Of course there are limits for both operators, for details see the
    manual.
    Vaclav
  • ArchiverArchiver Posts: 46,084
    edited 2003-10-29 13:09
    --- In basicstamps@yahoogroups.com, "aa7ej" <aa7ej@y...> wrote:
    > In general - yes. Using Basic Stamp operators RCTIME and FREQOUT.
    > RCTIME would convert the DC input into time and your program would
    > convert the time into required operand for operator FREQOUT.
    > Of course there are limits for both operators, for details see the
    > manual.
    > Vaclav



    A higher accuracy would be by using an ADC chip. Analog to Digital.

    well documented in the manual.


    to get the variable output, teh PWM command into a RC-op-amp will
    offer that. Again well documented.
Sign In or Register to comment.