ammeter with the pic16f876A


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    93


    Did you find this post helpful? Yes | No

    Default PIC A/D Current reading..

    I've used a Maxim 4172 to read various ranges of current. This IC uses a sense resistor to measure various ranges of current.

  2. #2
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    This does not appear to me to be a conventional metering circuit; it looks instead like a monitor for device voltage and current. U2 likely provides a reference voltage (it's a 3-terminal device, though, but is not used in any typical configuration).

    I suspect that the two variable resistors are used to calibrate the circuit, and the zener diode (DZ1) provides overvoltage protection on RA0.

    If you seek only to measure current, there are simpler circuits.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Talking

    Hi,

    All details can be found here :

    http://www.gpekit.com/pdf/mk3980.pdf

    This is lots easier to understand how it works !!! ... an if reading Italian, ... The Nirvanna

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4


    Did you find this post helpful? Yes | No

    Default

    and what is the easier way to measure the current with the analogic ports of the 16f876?

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by lutherblisset View Post
    and what is the easier way to measure the current with the analogic ports of the 16f876?
    You have the whole schematics ... and the kit explanations.

    What further do you need ??? the program for free ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Cool

    Where is the problem ?

    1. You must know the maximum current.
    2. You can choose your shunt (don't forget the heat!!!!)
    3. You use a OPAMP as an amplifier for the voltage to maximum 5V for maximum current trough the shunt. I use an LT1490 (rail-to-rail) for 5V-supply and good quality.
    4. Measure the voltage !
    (I use the lm385-2.5 as a reference. I measure the voltage of one port an the voltage of a port with the lm385 on it to calculate the correct voltage, because the supply-voltage may be incorrect or spread widely. The normal 7805 is worse, I use a 78M05CDT instead.)
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  7. #7


    Did you find this post helpful? Yes | No

    Default

    can be the INA138 a good idea instead of the operational?it is a "High-Side Measurement Current Shunt Monitor, Current Output",it directly convert voltage to current

Similar Threads

  1. A2D issues on PIC16F876A
    By earltyso in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 31st July 2008, 14:06
  2. Bit Banging input to output on PIC16F876A
    By Bronurstomp in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 26th June 2008, 19:50
  3. Runing a PIc16F876A
    By lerameur in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 7th January 2007, 12:54
  4. PLEASE HELP ME! pic16f876a and AD tlc4541
    By luca_sheva in forum mel PIC BASIC
    Replies: 1
    Last Post: - 1st February 2005, 17:32
  5. how to get PCF8574 and PIC16F876A work together
    By nomada in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th December 2004, 02:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts