USING ADC WITH 16F88

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

USING ADC WITH 16F88

Post by siliconchip »

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
Attachments
Flowcode1.fcf
(10 KiB) Downloaded 302 times

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: USING ADC WITH 16F88

Post by electron67 »

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

siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

Re: USING ADC WITH 16F88

Post by siliconchip »

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

medelec35
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

Post by medelec35 »

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
Martin

siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

Re: USING ADC WITH 16F88

Post by siliconchip »

hi martin thanks ive adapted the download just need to test on hardware now once again you have come up trumps thank you

bob

medelec35
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

Post by medelec35 »

Your welcome, lets hope it works on your hardware :)

Martin
Martin

siliconchip
Posts: 392
Joined: Wed Jan 05, 2011 11:24 am
Has thanked: 101 times
Been thanked: 24 times
Contact:

Re: USING ADC WITH 16F88

Post by siliconchip »

if it does'nt i will be back :wink:

Post Reply