piclist 2003\02\25\100526a >
Thread: How to measure 0 to 0.24 VDC with a PIC16F877A ?
www.piclist.com/techref/microchip/devices.htm?key=16F
flavicon
face BY : Ned Konz email (remove spam text)



On Monday 24 February 2003 11:09 pm, Augusto Yipmantin - OA4CVT wrote:

> May you guide me on how to measure a source from 0 to 0.24 VDC with
> a PIC16F877A ?
> The 0 to 0.24 VDC is a source from a VU meter (0.24 VDC means full
> scale) What I need is to measure the voltage then when it is over
> 0.17 VDC need to set on a pin to drive a relay.

If you don't need too much resolution, you could just connect it to an
A/D input and read it with the A/D converter.

If you use a 5V reference (i.e. not adding any extra components), at
0.24V input you'll have 1024*0.24/5V full scale, or a reading of
about 49.

You can read this periodically, perhaps adding some averaging (how
well smoothed is this voltage?).

--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE

--
http://www.piclist.com hint: To leave the PICList
piclist-unsubscribe-requestspam_OUTspammitvma.mit.edu>
<200302250704.00230@ned.bike-nomad.com> 7bit

In reply to: <004601c2dc9c$deaec600$520d12ac@millicom.com.pe>
See also: www.piclist.com/techref/microchip/devices.htm?key=16F
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) How to measure 0 to 0.24 VDC with a PIC16F877A ?

month overview.

new search...