PDA

View Full Version : Human Interface Object to elicit a fine tuned output



dragonvet
07-12-2009, 08:35 PM
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

Leon
07-12-2009, 09:57 PM
Frequency range?

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

dragonvet
07-13-2009, 06:42 PM
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

Leon
07-13-2009, 09:23 PM
Google "software DDS".

Leon

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle

mpark
07-14-2009, 07:04 AM
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.

matb
07-14-2009, 05:31 PM
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.

Painless
07-14-2009, 09:46 PM
Hook up a numeric keypad and use that to input your desired frequency instead?