Shop OBEX P1 Docs P2 Docs Learn Events
Human Interface Object to elicit a fine tuned output — Parallax Forums

Human Interface Object to elicit a fine tuned output

dragonvetdragonvet Posts: 17
edited 2009-07-14 13:46 in Propeller 1
Hello,
I am an amateur at electronics and just getting started with Propeller. I apologize for wimping out but because I'm not sure what some things mean , in the name of saving time, I would like to know if there exists;
1)Hardware : a rotary switch that allows infinite adjustment of a frequency output
2)Object: to allow communication of said switch with Propeller
3)Object: to allow Propeller to display the frequency chosen with said switch on 2x16 Serial LCD (non backlit)
Thanks in advance to anyone who can help,
Rich

Comments

  • LeonLeon Posts: 7,620
    edited 2009-07-12 13:57
    Frequency range?

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • dragonvetdragonvet Posts: 17
    edited 2009-07-13 10:42
    0-10000 Hz or thereabouts.
    I made a unit with basic stamp that has set frequencies at each pin which are chosen with a six position switch. What I would like to do, with Propeller, is be able to dial in more precise frequencies with infinite precision or more precise precision ie down to the hundreths of a Hz ie " 145.67 Hz". I wondered if there was a "knob" or "dial" type adjuster like the ones in cars nowadays that do nothing when the power is off but spin around without any kind of set detentes or positions. Also, as the above would imply, instead of using different I/O pins for different frequency outputs I would like to know if there is an Object code to allow for this infinite variation in frequency from one output pin and then to complicate it further, code to allow the adjuster to see what frequency has been chosen via LCD. It would be nice if this was determinable before the frequency emitter was powered up but if adjustment had to wait until after it was already on that would be fine.
    Thanks,
    Rich
  • LeonLeon Posts: 7,620
    edited 2009-07-13 13:23
    Google "software DDS".

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • mparkmpark Posts: 1,305
    edited 2009-07-13 23:04
    dragonvet said...
    I wondered if there was a "knob" or "dial" type adjuster like the ones in cars nowadays that do nothing when the power is off but spin around without any kind of set detentes or positions.

    I believe the device you're looking for is called a rotary encoder. Some have detents, some don't.
  • matbmatb Posts: 39
    edited 2009-07-14 09:31
    mpark said...
    dragonvet said...
    I wondered if there was a "knob" or "dial" type adjuster like the ones in cars nowadays that do nothing when the power is off but spin around without any kind of set detentes or positions.

    I believe the device you're looking for is called a rotary encoder. Some have detents, some don't.

    ... and you use the Quadrature Encoder object.

    Mind you, the knob adjustment interface is slow, you need a scale adjustment button(s), the HP signal generators used to do that well. I have not got around to that yet, so keep winding, and winding, and winding.
  • PainlessPainless Posts: 69
    edited 2009-07-14 13:46
    Hook up a numeric keypad and use that to input your desired frequency instead?
Sign In or Register to comment.