Fast Pot Input
Blammo
Posts: 3
Hi all,
I'd like to use a pot (or anything with a smooth scale and a twistable physical interface) to set the frequency of a strobing LED in realtime. Unfortunately, when I use the POT command, there is a very discernable interruption while it measures the capacitor discharge time, which is a problem.
How would I be able to overcome this? Obviously the stamp doesn't support multithreading, so anything that requires time to perform is out. Does anyone know of a component that can translate angles into serial output or use I/O pins to represent a numerical value?
Thanks for any help,
Blammo
I'd like to use a pot (or anything with a smooth scale and a twistable physical interface) to set the frequency of a strobing LED in realtime. Unfortunately, when I use the POT command, there is a very discernable interruption while it measures the capacitor discharge time, which is a problem.
How would I be able to overcome this? Obviously the stamp doesn't support multithreading, so anything that requires time to perform is out. Does anyone know of a component that can translate angles into serial output or use I/O pins to represent a numerical value?
Thanks for any help,
Blammo
Comments
There are also position decoders that can be used like a pot, but the above suggestion is cheap and will work with the existing pot.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!