Hi,
being fairly new to flowcode i am experimenting using the ADC on the pic16f88 i have set the ADC to read up to 10V and display it on an lcd but i have 1 issue is it possible to go up in volts such as 1.1 - 1.2 - 1.3 etc up to 10V instead of 1V increments, any help would be gratefully appreciated
USING ADC WITH 16F88
Moderator: Benj
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 24 times
- Contact:
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
Re: USING ADC WITH 16F88
The problem is the PIC work to 5 volt, you can use a voltaje divisor, 2 resistor de 10 k in series and one pin to +5 volt, other to gnd and center to PIC; multiply x2 and read voltaje in LCD
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 24 times
- Contact:
Re: USING ADC WITH 16F88
hi electron67 i understand that the pic operates on 5v but i would like the LCD to read a voltage other than 1v increments ie 0.1 - 0.2 then further along 1.1 1.2 1.3 etc
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: USING ADC WITH 16F88
Hi siliconchip,
What about looking here:
http://www.matrixmultimedia.com/mmforum ... 99&p=20326
I posted A voltmeter that reads 0 - 15.00V (to two decimal places.)
It can be adapted for different scales. E.g remove *3 to read 0 - 5.00V
You can easily adapt it to read 0 to 10.00V
because its using int and with pic maths, there is small tolerance error.
Martin
What about looking here:
http://www.matrixmultimedia.com/mmforum ... 99&p=20326
I posted A voltmeter that reads 0 - 15.00V (to two decimal places.)
It can be adapted for different scales. E.g remove *3 to read 0 - 5.00V
You can easily adapt it to read 0 to 10.00V
because its using int and with pic maths, there is small tolerance error.
Martin
Martin
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 24 times
- Contact:
Re: USING ADC WITH 16F88
hi martin thanks ive adapted the download just need to test on hardware now once again you have come up trumps thank you
bob
bob
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
-
- Posts: 392
- Joined: Wed Jan 05, 2011 11:24 am
- Has thanked: 101 times
- Been thanked: 24 times
- Contact: