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.

REading voltage , resistance, current using PIC

Status
Not open for further replies.

romel_emperado

Advanced Member level 2
Joined
Jul 23, 2009
Messages
606
Helped
45
Reputation
132
Reaction score
65
Trophy points
1,318
Location
philippines
Activity points
6,061
Hi, I know already how to read volatage using PIC but want also to know how to read current,resistance using the analog input..

I dont need accuate result I just want to do this thing ;)

I know the Ohms law but I need hint how to implement this. ;)
 

Look at this projects:
 

Attachments

  • !!! PIC16F84A-20P, PIC16F628A as Voltmeter.rar
    200.3 KB · Views: 70
  • !!! PIC 4-Channel Voltmeter.rar
    147.6 KB · Views: 115
  • !!! USB Data acquisition with PIC18F4550.rar
    1.4 MB · Views: 84
Assuming that you are referring to a DC current you can use a resistor so that the current creates a voltage drop and use the ADC to measure that voltage.
If the resistor is too low and the voltage is not high enough to be measured accuratelly then you can use a differential amplifier

DiffAmp.jpg

for example if you use a 20m ohm resistor and set the gain to 50 then you will get 1V per Ampere in the output

diff_amp_current_measure.gif

I have never measured resistance but I suppose you can use a known resistance and create a voltage divider with the unknown resistance and calculate the resistance value based on the voltage you get from the divider.

Alex
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top