I'm intrigued as to why you need an op amp circuit rather than a simple voltage divider, maybe with a zener for protection, and why you'd be worrying too much about response times? What's your application?
A voltage divider would not work well due to its tendency to fluctuate with the input voltage. The "mapping" (ranges for the input/output voltages) would be inconsistent.
Now I think I'm just going to pull my hairs! Everything seems to be messed up now. First eTech above was saying that current sensor ACS712 is not a current sensor though the datasheet (5A current sensor) says it's a current sensor and can be used to measure both AC and DC current. To me, it had looked that for measuring solar panel current and battery current it was a good choice. I'm trying to make solar maximum power point tracker.
Now DerStrom8 says that a voltage divider cannot be used as a sensor because fluctuations in the input voltage. Where am I going?
Don't get me wrong--Voltage dividers can be used to measure higher voltages more easily and all that, and if you have a sensor that changes its resistance based on the environment then a voltage divider would work to provide a voltage on the output that can be measured by, say, the ADC of a microcontroller. However, suppose you have a sensor that outputs 0-10mV and you want it to output 0-5v, then a voltage divider really wouldn't work for you for various reasons. A divider would drop the voltage, whereas an op-amp would amplify it (which is what you'd want).
Perhaps I am not quite sure what your project is, and how accurate it needs to be. I just wanted to point out that voltage dividers really are not very accurate due to the tolerance and temperature coefficients of the individual resistors.
Hello,
Regarding the current sensor,
I played with the ACS712 a few months ago, and if I remember correctly, it outputs mv RMS and has a DC component of VCC/2. So you have to remove the DC component from the sensor output, then rectify for DC. I believe this sensor is really intended as a replacement for a current transformer. Also, there are vendors that sell pre-made ACS712 circuits with increased sensitivity like the one your trying to make. Check SPARKFun. Last time I looked, they cost about $10 USD. So...the short story....The ACS712 is not an RMS-to-DC converter.
But his application is, I believe, about detecting peak solar levels, so I'd expect any non linearity to not really matter, but I'm no expert.A voltage divider would not work well due to its tendency to fluctuate with the input voltage. The "mapping" (ranges for the input/output voltages) would be inconsistent.
Now I think I'm just going to pull my hairs! Everything seems to be messed up now. First eTech above was saying that current sensor ACS712 is not a current sensor though the datasheet (5A current sensor) says it's a current sensor and can be used to measure both AC and DC current. To me, it had looked that for measuring solar panel current and battery current it was a good choice. I'm trying to make solar maximum power point tracker.
Now DerStrom8 says that a voltage divider cannot be used as a sensor because fluctuations in the input voltage. Where am I going?
It measures DC! That is the point of this type of sensor! DC.Hi PG1995...
IT IS a current sensor, but it is intended as a replacement for a Current Transformer (implies AC current).
That said...why would you want to use this to measure DC battery current anyway? Just use a series resistor and measure the DC voltage drop across it with the PIC and calculate.
That is why the divide is done at the PIC not at the voltage source. You run the 22V all over the place and then within one inch of the PIC you knock it down to 5V. Don't run the PIC pin all over the place.I mean, we don't know how far the solar panel output is from the PIC input, or
if input wires will be run next to sources that can induce transients or surges
It measures DC! That is the point of this type of sensor! DC.
CTs only work on AC.
That is why the divide is done at the PIC not at the voltage source. You run the 22V all over the place and then within one inch of the PIC you knock it down to 5V. Don't run the PIC pin all over the place.
Sorry I didn't mean to point at anyone.
The Hall sensors are really nice to use. Your micro does not have to be well connected to a 0.01 ohm resistor. No ground loops because the Hall is isolated. You can measure the hot wire or the ground. There is thousands of volts of isolation. Great for power line monitoring. Works great.
They are $3.00 @1 and $1.50 @ 3000 (US money)
Its just money.
Slight exaggeration.
It does fix the ant problem.
Just for learning purposes; Please show us how you would get from a resistor to 1V or 5V for the ADC, with out wasting much power.
Remember the Hall has 1.2mOhms of resistance. So the power loss number is small. But the Hall uses 50mW in silicon.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?