30 A. Clip-on Ammeter Circuit for Arduino
by daveclark5 in Circuits > Arduino
189 Views, 0 Favorites, 0 Comments
30 A. Clip-on Ammeter Circuit for Arduino
![breadboard.png](/proxy/?url=https://content.instructables.com/FJ1/DGJN/LIYKZ3UV/FJ1DGJNLIYKZ3UV.png&filename=breadboard.png)
![100 Amp clip on.png](/proxy/?url=https://content.instructables.com/FJS/CIDW/LIYKZ3VT/FJSCIDWLIYKZ3VT.png&filename=100 Amp clip on.png)
I'm using a split core "clip on" style transformer to measure current used in my Heat Pump Water Heater. This will sync up with the three temp sensors. For the temp sensors I used DS18B20 and borrowed bits of code from Rui Sanchez at Random Nerds Tutorials to get the RTC going with an SD card to store the data. So, this ammeter will go into that board.
For my purposes I only need to know if the system is off (< 100 watts); heat pump only (400 watts) resistive element (4200 watts) or HP and RE (4600 watts). So I didn't put a lot of time into current calibration. This is the schematic only; no arduino code. I used two (single stage) OPA340 from TI. Here I use the arduino as a 5v power supply for the OpAmps.
Supplies
2) TI OPA 340
1) Arduino
1) IN4148
2) 100K resister (all resisters 1/8 ohm)
1) 10K Ω resister
1) 40K Ω resister
1) 1K Ω resister
1) 1 microfarad capacitor
1) Breadboard
*) 26 gauge solid hookup wires
1) SCT013-30 YHDC (aliexpress / amazon)
A pair of sharp cutting pliers will help form the wires.
Wire It
![Schematic.png](/proxy/?url=https://content.instructables.com/FUX/GQW2/LIYKZ411/FUXGQW2LIYKZ411.png&filename=Schematic.png)
make sure you have the IC orientation correct!
make sure you have grounded both Op Amps.
keep your work neat and it will turn out right the first time.
Downloads
Test It
![spreadsheet.png](/proxy/?url=https://content.instructables.com/FQK/3P4C/LIYKZ3UW/FQK3P4CLIYKZ3UW.png&filename=spreadsheet.png)
the coil voltage is AC
everything beyond the diode is DC
I validated the charging levels of the Tesla with a fluke clip on ammeter on the wire to the 50amp breaker.
The 100 Amp coil will work as well. Expect about 1 vac from the coil at 100 Amps and adjust R2/R1 accordingly
Tune It
Gain = 1 + R2/R1. Substitue a pot to increase or decrease
Note that TP Coil is AC volts; everything beyond the diode is measured DC. The graph shows that the AC voltage is reduced after the first OPA and diode. The gain is in the second stage.
Other Approaches
Another "new school" approach to doing this is using an ADC, such as this one (ADS1115 16-Bit ADC) from adafruit https://www.adafruit.com/product/1085
https://www.youtube.com/watch?v=TITtBkoaQ_s
I personally like futzing around with IC's and there is a little more flexibility in design.