Capacitance sensing demonstration program
Mike Green
Posts: 23,101
Here's a simple program to demonstrate capacitance sensing using a Propeller DemoBoard and Prop assembly language. It's based on a description of capacitance touch sensing for the Arduino. The comments at the beginning of the code explain how it works and give some suggestions for using the cog counters to do the same sort of thing possibly from Spin with the same sort of precision.
Although the extra capacitance of the probes throws off the timing of the RC circuit, it's fun to see it work using the PropScope with one probe on either side of the 1M resistor.
Post Edited (Mike Green) : 12/13/2009 5:03:19 PM GMT
Although the extra capacitance of the probes throws off the timing of the RC circuit, it's fun to see it work using the PropScope with one probe on either side of the 1M resistor.
Post Edited (Mike Green) : 12/13/2009 5:03:19 PM GMT
spin
4K
Comments
Post Edited (Mike Green) : 12/13/2009 10:10:06 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"You do not really understand something unless you can explain it to your grandmother."
-Lucky[size=-1][/size]
Going other directions, changes in capacitance can also be used to sense fluid levels, etc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log
Disadvantages ... No feedback unless it's provided somehow else and there's no positive actuation, no mechanical threshold
Too bad you can't make capacitive switches or sensors yourself like ipods use for the scroll wheel
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"You do not really understand something unless you can explain it to your grandmother."
-Lucky[size=-1][/size]
http://jasongarr.wordpress.com/project-pages/ipod-clickwheel-hack/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DGSwaner
"When in doubt, use C4" - Jamie Hyneman, Myth Buster
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I always have someone watching my back.
Water varies much less in density than fuel with temperature changes and the composition of water (particularly potable water) varies little. If you know the volume, you know the weight to fairly high accuracy and a simple temperature measurement allows you to correct for that if you need to.
www.microchip.com/en_US/technology/mTouchButtons/index.html
Some of the techniques could be used on other hardware.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM
Thanks for the information about water density versus fuel density. I didn't realize that. Just the same is might be better to measure the capacitance rather than the actual water height since the capacitance system wouldn't have any moving parts.
Sandy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Leon Heller
Amateur radio callsign: G1HSM