piclist 2001\10\18\070212a >
Thread: CHEAP voltage sensing??
www.piclist.com/techref/power.htm?key=voltage
flavicon
face BY : mikeKILLspam@whitewing.co.uk



On Thu, 18 Oct 2001 19:59:13 +1000, you wrote:

{Quote hidden}

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
spamBeGonepiclist-unsubscribe-requestspammitvma.mit.edu


<h7btst4dn43mtafl95m4k8stvvi2b1qv8q@4ax.com> quoted-printable

In reply to: <3BCEA7F1.1C57@ezy.net.au>
See also: www.piclist.com/techref/power.htm?key=voltage
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) CHEAP voltage sensing??

month overview.

new search...