1. FroceMaster

    Thread Starter Member

    Jan 28, 2012
    400
    4
    Hi,
    Need to build a Circuit that can measure from 0 to 20A DC
    have 24-28 V DC
    Will have readouts at 0-20A and 24-28V
    Planing to use a microchip ex 16f690.
    Any hint on doing that,
    The programming on microchip i think i can do, just the "input" i need taking care of
     
  2. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,379
    494
    Last edited: Oct 11, 2014
  3. FroceMaster

    Thread Starter Member

    Jan 28, 2012
    400
    4
    I will use a MCU, not the panels.
    I will have to do some stuff with the readout, ex sound alarm if we dont charge enough, or to Little time ect.
     
  4. shteii01

    AAC Fanatic!

    Feb 19, 2010
    3,379
    494
    Some of the panels might have outputs that could be connected to the MCU.

    Otherwise you will need voltage ADC that can take 24-28 volts. That can be done in two ways:
    A) buy ADC that takes that voltage
    B) build a circuit that will scale down the voltage to the level that your ADC can take (usually voltage divider with some buffer op-amps)

    You will need current ADC. Also two ways to do it:
    A) buy current ADC (I personally never looked for one)
    B) transform current into voltage and feed it to voltage ADC
    B1) transimpendance amplifier converts current into voltage
    B2) run current through resistor (20 A is A LOT OF CURRENT, you will need one of those big power resistors) and take the voltage measurement across the resistor, your basic application of Ohm's Law.

    There are also other options. One of them is voltage to frequency converter and maybe current to frequency converter. What this device does it takes voltage/current as input and outputs square or sinusoidal wave of specific frequency. For example, say you input 10 volts, 10 Hz voltage signal comes out. You can then feed this signal of frequency X to the MCU and program MCU to act as frequency detector. So MCU detects 10 Hz signal and that tells it that the origianl input was 10 volt.
     
    Last edited: Oct 11, 2014
  5. ScottWang

    Moderator

    Aug 23, 2012
    4,853
    767
    Using the voltage divider to reducing the voltage.
    You can in series with a current shunt resistor as this and to measuring the voltage, and calculating I=V/R.
     
  6. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    Google "high side current sense" and you will find some good devices from TI or Mamim and more that will convert a current on the positive line to a ground referenced voltage a PIC can easily convert with it's A2D.

    For the voltage all you need is a resistive divider, and some over voltage protection would also be nice.
     
  7. bertus

    Administrator

    Apr 5, 2008
    15,645
    2,344
  8. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    An appropriate shunt resistor (few mOhms) and a high-side current monitor IC (e.g. ZXCT1009) will measure DC current and make it so that a 5V ADC can read it.

    A two-resistor voltage divider will make it so that the 5V ADC can read a higher DC voltage.
     
Loading...