Pressure Sensitive Touch sensor
If you need a quick (relatively easy) pressure sensitive touch sensor here is one that worked for me:
I found this sensor detects the following :
no contact
light contact (touching each pad)
higher contact (holding each pad)
highest contact (squeezing each pad)
Code
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you convince yourself that something is impossible before you even try; you are sure to prove yourself right.
I found this sensor detects the following :
no contact
light contact (touching each pad)
higher contact (holding each pad)
highest contact (squeezing each pad)
Code
' {$STAMP BS2}
' {$PBASIC 2.5}
'
' -----[noparse][[/noparse] Program Description ]---------------------------------------------
' Code to use the pressure sensitive RCTime sensor
'
' -----[noparse][[/noparse] Constants and Variables ]-----------------------------------------
'
'
time VAR Word
'
' -----[noparse][[/noparse] Program Code ]----------------------------------------------------
'
DO
HIGH 0
PAUSE 1000 'charge the Capacitor
LOW 0
RCTIME 1,1, time
time = time - 10000 / 100 'this is for formatiing of the DEC
DEBUG DEC time, CR 'used for StampPlot graphing
PAUSE 500
LOOP
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you convince yourself that something is impossible before you even try; you are sure to prove yourself right.






Comments
I'm gonna try it [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"puff"...... Smile, there went another one.
-general circuit update-
I noticed a fair amount of reverse voltage would show up on the base when I would release pressure on the touchpad that connects to it, so I added a diode (1n4001) in line with the touchpad·to block reverse voltage.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If you convince yourself that something is impossible before you even try; you are sure to prove yourself right.
Post Edited (silverback) : 4/15/2010 10:24:44 AM GMT