How to measure voltage between two points using PIC ADC?

Status
Not open for further replies.

engr.waqas

Full Member level 3
Joined
Jul 21, 2009
Messages
172
Helped
13
Reputation
26
Reaction score
10
Trophy points
1,298
Location
karachi,Pakistan
Activity points
2,342
I want to measure voltage between two points using PIC microcontroller ADC .The problem is that PIC will always measure voltage with respect to its own ground while i want to measure with respect to another point .How can i do this?
 

Re: PIC ADC problem

Measure U1 with one pin, then measure U2 with another pin and perform calculation in PIC: U1 - U2 or U2-U1, dependig which way do you want/need it ..

IanP
 

Re: PIC ADC problem

engr.waqas said:
Are you serious?will it work always?
I'm serious, it will work ..

Another option is to use an opamp, say gain=1, and convert differential voltage to single-ended, connect the Opamp to PIC’s ADC and measure the voltage between two pints that way ..

But, I can't see any reason why the first option couldn't work ..

IanP
 

    engr.waqas

    Points: 2
    Helpful Answer Positive Rating
Re: PIC ADC problem

hmmm ok thanks for your reply ...i am checking 1st option and then will inform you the results

Added after 25 minutes:

Thanks a lot...it really worked for me......
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…