CHEAP voltage sensing??
On Thu, 18 Oct 2001 19:59:13 +1000, you wrote:
How about this : 100K from sensor to pic pin A, with cap to ground.
10K from pic pin B to pin A.
Adjust PWM ratio on pin B until pin A switches.
To cope with full range, do it from both directions - i.e. start with
cap at 5V, PWM decreasing, look for high-low transition, then start at
0V, PWM increasing, look for low-to-high transition. You are effectively finding how much PWM drive is required to push the
output past the pin threshold against the current from the sensor -
this should bear some reasonable resmblence to the sensor voltage, and
I would think would be good enough to discriminate 10 levels.
http://www.piclist.com hint: To leave the PICList
In reply to: <3BCEA7F1.1C57@ezy.net.au>
See also: www.piclist.com/techref/power.htm?key=voltage
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the