Page 1 of 1
ADC voltage
Posted: Thu Jun 09, 2011 4:42 pm
by wardnica
I'm trying to measure a voltage that my anemometer transmits with my 16F690, (voltage range between 0 - 5 V.)
(flowcode 4)
Re: ADC voltage
Posted: Thu Jun 09, 2011 6:00 pm
by Benj
Hello,
You should just be able to use the ADC component to sample and read back the voltage.
Re: ADC voltage
Posted: Fri Jun 10, 2011 3:39 pm
by wardnica
this error
Re: ADC voltage
Posted: Fri Jun 10, 2011 5:27 pm
by Benj
Your Vin variable is a Byte.
Try creating a float variable and then use this to collect the voltage. Once you have done this you should be able to convert the float to a byte correctly.