P
Paul E. Schoen
(1) The inverting op-amp may not work well at ground reference with singlebeananimal said:[snip good heads-up about Adobe and HP]Your latest schematic cmon2.jpg has some errors, and is also way moreBack to logging current via a CT hooked to an A/D
I will be ordering the specified CT for this project ASAP. In the
meantime I am going to hack a Xformer off of a modem or something in
an
attempt to breadboard the project to garner a better understanding of
the circuit in a working state.
Question: Is it feasable to use a small pot in place of the resistor
that grounds the Rectifier (or a pot and Resistor in parallel for
safety). In my mind that would allow fine tuning of the CTs output
scale to match the A/Ds full scale voltage.
complex than needed. Also, I don't think you need to worry too much
about
these little CTs bursting into flame or exploding if the secondary is
open
circuited, but it is always wise to use precautions. A true current
source
would generate an output voltage high enough to arc across the terminals
or
break down internal insulation, but these small CTs will just saturate
and
put out at most maybe a hundred volts. If there are high frequency
components involved, it could be much higher, however.
I'll try to draw a suggested simple schematic that should work:
+-----+
AC-----)|(----|~ +|--+---R2---+----+----AD1
)|( | | | | |
)|( | BR1 | R1 C1 Z1
)|( | | | | |
AC-----)|(----|~ -|--+--------+----+----GND
T1 +-----+
I would suggest R1 about 200 ohms to get about 3 VDC at 10 AAC input. R2
can be about 10K, C1 about 5 uF, and Z1 a 4.7 V zener. You could put a
pot
across R1 to make it adjustable, but you can also do that in software.
For best accuracy, however, I still suggest doing the rectification with
an
absolute value routine in software, and eliminate the bridge rectifier.
Here's that circuit:
+----R3----> Vcc
|
AC-----)|(-----+---R2---+----+----AD1
)|( | | |
)|( R1 C1 Z1
)|( | | |
AC-----)|(-----+--------+----+----GND
T1
R1 should be about 150 ohms to get about 4 volts P-P at 10 amps input.
R2
and R3 should be about 2K, and C1 should be about 0.1 uF. The input to
AD1
will be just about 2.5 VDC with an AC signal varying from about 1 V to 4
V,
which is easily sampled by the A/D at about 300/sec. This should be done
in
an interrupt service routine (ISR) using a microcontroller's
programmable
resettable timer (PRT). You should read, accumulate and store the A/D at
the start of the routine, and then start the next conversion. When you
have
accumulated a certain number of readings, send it out the serial port or
whatever you will use to display it.
Breadboard the above circuits and measure values to fine tune the
resistors
and capacitors for best results, and to become familiar with how this
works. Use a scope for better visualization. You can worry about the
details of the A/D later.
Paul
1) The latest schematic was cmon3.jpg. I had hoped to fix the errors
in cmon2.jpg.
Here is the URL http://tinyurl.com/znjvc
Can you please comment on this (cmon3.jpg)
supply. It will also not be able to output more than about 4 VDC, and the
emitter follower, besides being unnecessary, limits output to a little over
3 volts.
(2) The total of 2K ohm impedance into the A/D, with no capacitor, may pose
some problems when sampling occurs. If you must use an op-amp, feed the A/D
directly from the output for lowest impedance. The supply for the op-amp
should be at least 8 VDC to get a full 0-5 VDC output.
(3) The 10 ohm burden resistor will give 100 mV with 10 amps on the 1000:1
CT secondary. You need to boost that to about 4 volts for the A/D, so a
gain of about 40 is required. If R1=100, R2 should be 4K. You can replace
R2 with a 5k pot for adjustment.
The main advantages of an op-amp circuit are being able to use a smaller2) With regards to being more complex than needed. I do understand
that there are many ways to skin a cat. Can you please explain your
reasoning and the pros and cons of your proposed schematic vs the one
Jim and John have helped me construct? I have (24) of these to build.
I don't mind more complex if there is a compeling reason or enhanced
functionality.
burden resistor to improve linearity, providing lower impedance to the A/D,
and being able to use active filtering. The bridge rectifier already
trashes the linearity, R3 and R4 adds impedance, and the active filter is
only single pole.
Once you have a good reliable analog circuit that you can analyze and3) I would rather use as little sofware as possible. I am not AT ALL
versed in uC programming so just bit banging the A/D sample to the
serial port will be hard enough. I had planned on simply using a
service loop to sample the A/D ports in sequence and average every so
many. ISR and other complex uC work is again something I am not ready
to tackle. I am VERY new to uC coding. I would not know how to begin
using software to write an ABS routine to calculate the voltage in VB,
let alone doing it in uC speak.
understand, your physical design is done, and simple is generally better,
unless there is a strong reason for added components, and full
understanding of their purpose.
The PIC programming is really not that hard, and the more knowledge you
acquire the better. As a programmer, the concepts should not be difficult,
although you may be more in tune with object oriented events driven
software, rather than low level concepts such as ISRs and real time
considerations, where a few microseconds can make a huge difference. I can
send you some PIC code that will set up the PRT to make A/D samples at a
useful rate, for one channel, and also perform the necessary accumulation
and comparisons if you want to add a relay or LED output for an alarm. The
code I would provide would be for a PIC12F675, which is a little 8 pin IC
with an A/D. It is the same IC that is used in the Microchip PICKIT-2
evaluation kit, which has all you need to breadboard your circuit and
program the PIC, for about $30. You can then migrate to a more powerful
micro with more A/D and also a serial port or other features. I personally
like the PIC18F242 or the newer 18F2420, and I can help provide coding for
that. (It also can be used with a C compiler). There may be a PIC better
suited to your particular application, and they can be obtained as free
samples from the www.Microchip.com website, along with all kinds of app
notes and reference designs. Fear not the mighty PIC!
The goal at this point is to use (3) PIC uC to do 8 A/D inputs each.
The PICs will either all be tied to another PIC that is tied to the PC,
or simply tied to (3) serial ports on the PC. I have a spare DIGI
serial board around here somewhere.
Lastly, regarding hte POT and wiper current. What size wattage
resistors and pot need to be considered for the burden and R1 and R2?
I understand the rest of them can be standard 1/4 watt types.
All resistors and pots can be 1/4 to 1/2 watt. You are looking at no more
than 50 mA and 5 volts for all the components combined. If you use a pot,
it is best to use the wiper to tap off to the low current measurement
circuit. If you use it as a variable resistor (rheostat), tie the wiper arm
to one end so the circuit will never be open as the wiper slides on the
element.
Good luck,
Paul