Ampere

Discussion in 'General Electronics Chat' started by FroceMaster, Oct 11, 2014.

Jan 28, 2012
402
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,518
515
Last edited: Oct 11, 2014

Jan 28, 2012
402
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,518
515
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:
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:
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,934
777
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,443
1,628
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.