Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Measuring voltages with pic!

Status
Not open for further replies.

Cortex

Full Member level 3
Full Member level 3
Joined
Mar 26, 2005
Messages
182
Helped
12
Reputation
24
Reaction score
4
Trophy points
1,298
Location
Morocco
Activity points
2,733
Hello

I want to measure voltage from 5 batteries(5 inputs) using a pic!
The max voltage is 30V!
I can't use the analog input because it over 5V!
If any has a tip how i sould do ! please help me out!
Thanks in advance!
 

gdaporta

Member level 5
Member level 5
Joined
Apr 4, 2006
Messages
86
Helped
12
Reputation
24
Reaction score
1
Trophy points
1,288
Location
Argentina
Activity points
1,943
Cortex said:
Hello

I want to measure voltage from 5 batteries(5 inputs) using a pic!
The max voltage is 30V!
I can't use the analog input because it over 5V!
If any has a tip how i sould do ! please help me out!
Thanks in advance!

Cortex,

As I show you in the image you could attenuate the input voltage using for example two resistors.
You could calculate the maximum value of tension in the uC port with the next ecuation:

V(in the uC Port) = 30v . [ R2 /( R1 + R2 )]

So if you put two R1=R2 and you have 30v in the input, you would have 15 volts in the uC port. You must calculate your better division factor.

By,

GuillerMo (AR)

27/12/06 --> I modify the ecuation, I added the [] for a better understanding.
 

    Cortex

    Points: 2
    Helpful Answer Positive Rating

bobx

Junior Member level 3
Junior Member level 3
Joined
Jan 11, 2010
Messages
29
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
TEHRAN
Activity points
1,531
Hello.I want to measure 5 unknown voltages;DC or AC with PIC .How can I do that? Thanks,
 

karesz

Advanced Member level 5
Advanced Member level 5
Joined
Apr 13, 2008
Messages
2,328
Helped
327
Reputation
654
Reaction score
52
Trophy points
1,328
Location
EU
Activity points
14,591
Hi Bobx,
They are unknown, but in a knowed range!?
You must say, OK, my voltages are max i.e. 100V, I apply an attenuator 10:1 or what every time my circuit max. need/apply, as in pix in top of these text, and feed it to my micro...
K.
 
  • Like
Reactions: bobx

    bobx

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top