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
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!
 

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
Hello.I want to measure 5 unknown voltages;DC or AC with PIC .How can I do that? Thanks,
 

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

Back
Top