Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 13th July 2004, 06:15 PM   (permalink)
Default how to measure current in PIC (PIC as an ammeter)?

Before, I used the A/D capability of PIC16f877 to function as a 5V voltmeter and display it in a 16X2 LCD Display.

this time, I want to measure current,

how do i measure current in PIC? i just want to create a prototype and what ICs do I have to use? thanks.
__________________
Learning is a life-long process...
GraveYard_Killer is offline  
Old 13th July 2004, 07:43 PM   (permalink)
Default Re: how to measure current in PIC (PIC as an ammeter)?

Quote:
Originally Posted by GraveYard_Killer
Before, I used the A/D capability of PIC16f877 to function as a 5V voltmeter and display it in a 16X2 LCD Display.

this time, I want to measure current,

how do i measure current in PIC? i just want to create a prototype and what ICs do I have to use? thanks.
It's the same as measuring the current with anything else, you measure the voltage drop across a resistor. In order to keep the voltage drop across the resistor low you need to amplify the voltage, an opamp in differential mode is usually used to do this.

The biggest problems are providing power for the PIC and opamp, if you have a seperate supply for them it's no problem, otherwise you need to get a little inventive!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 13th July 2004, 08:16 PM   (permalink)
Default

Take a look at Allegro Micro: http://www.allegromicro.com/

Kent
kentken is offline  
Old 14th July 2004, 04:44 AM   (permalink)
Default

Just use a shunt like this http://www.mouser.com/index.cfm?hand..._pcodeid=66211

That particular one will drop .01 V/amp drawn across it.

If you are talking about smaller currents, use a larger value shunt.

You can use an op-amp to multiply the voltage and measure that, or you can get a precision voltage referance and hook that to the PIC as the upper voltage referance. That way you can have 10-bit resolution between gnd and the reference voltage (switch between different referances and you get different ranges)
ConKbot of Doom is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 04:03 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker