I am not afraid to admit that I am a complete idiot when it comes to Op-Amps. I always have to look for examples on the internet, and most often or not, I need to get help (like now)
I am busy with a PWM Lead-Acid solar panel battery charger unit. Original design by **broken link removed**. (Converted for Arduino Nano)
That all works like a charm. Then I decided to measure the current from Solar panel and battery. Using shunt resistors of about 0.073 ohm, I used a LM385 dual op-Amps and built two differential amplifiers (one for the Solar panel and the other for the battery). I used 8V supply on the LM385 (because of the output vs supply voltage problem and I need 0..5V for the Nano AI PIN’s)
On the bench it calibrated 100%. Current range of 0..2A gives about 0..148mV, and through the differential amplifier I got the 0..5V required for the Nano.
As can be seen from the circuit, I also measure the the Solar Panel and Battery voltages. The problem comes in the moment I connect the LM385 output to the Nano. On the DMM voltmeter the output is as steady as a rock, but the indication on the Nano is going nuts. It swings around as if the input pin has nothing connected to it.
I see on the forum that the LM358 is just a tad better than the 741, which is to say the least 1% better than “cr@p”. I used the LM358 on PIC 16F88 before using it to amplify the volt drop of a 1N4148 diode for temperature measurement, and then that worked well, but now with the Nano, not so well.
I have other shields that makes use of the LM393. (Unfortunately they are SOIC packages and I cannot re-use them in my project). So, before I go off and buy there Op-Amps, will they work? Is this a good enough replacement for the LM358? Or, should I rather use something else?
I am busy with a PWM Lead-Acid solar panel battery charger unit. Original design by **broken link removed**. (Converted for Arduino Nano)
That all works like a charm. Then I decided to measure the current from Solar panel and battery. Using shunt resistors of about 0.073 ohm, I used a LM385 dual op-Amps and built two differential amplifiers (one for the Solar panel and the other for the battery). I used 8V supply on the LM385 (because of the output vs supply voltage problem and I need 0..5V for the Nano AI PIN’s)
On the bench it calibrated 100%. Current range of 0..2A gives about 0..148mV, and through the differential amplifier I got the 0..5V required for the Nano.
As can be seen from the circuit, I also measure the the Solar Panel and Battery voltages. The problem comes in the moment I connect the LM385 output to the Nano. On the DMM voltmeter the output is as steady as a rock, but the indication on the Nano is going nuts. It swings around as if the input pin has nothing connected to it.
I see on the forum that the LM358 is just a tad better than the 741, which is to say the least 1% better than “cr@p”. I used the LM358 on PIC 16F88 before using it to amplify the volt drop of a 1N4148 diode for temperature measurement, and then that worked well, but now with the Nano, not so well.
I have other shields that makes use of the LM393. (Unfortunately they are SOIC packages and I cannot re-use them in my project). So, before I go off and buy there Op-Amps, will they work? Is this a good enough replacement for the LM358? Or, should I rather use something else?