Hi,
I am a beginner in hardware design. Recently got a task to design a simple current measurement device. The device should have only 3 states:
Current is lower than 10 mA
Current is between 10 and 100 mA
Current is higher than 100 mA
For current measurement I am using a LM358N op amp in a differential amplifier configuration (seems like a very simple circuit.) Since I am only interested in the mentioned range, I calculated the resistor values to provide an amplification factor of around 90. This should result in op amp output voltage of roughly 0.5 - 4.5V respectively at 10 - 100 mA of current flowing in the main branch.
For testing purposes, I connected a high power potentiometer (which should simulate different current consumption) in series with a 10 Ohm 10W limiting resistor ( if the pot was turned all the way down to zero.) According to the theory, increased current should result in a higher voltage drop across the resistor, thus increasing the op amp`s output voltage.
However, I am getting everything but the desired result. When the potentiometer is virtually turned to short circuit, I am getting around 4.08 V at the op amp`s output, when I turn potentiometer to the 330 Ohm (max value), my output is at 4.66 V.
First of all, increased resistance should result in decreased current, so the output voltage should also decrease (I am getting opposite result)
Second, the output voltage range is just over 0.5 V, while according to the formula range should be no less than 4 V
Do you have any idea, what could be causing the problem?
Some other details:
I made this circuit on a breadboard (I understand that every component has its own tolerance, so as the op amp does, but there is no AC component in this circuit. I could understand 10-15 % error, but in my case its much worse)
I checked my wiring like a 100 times.
I have a really generous amount of bypass caps.
I have tried two LM358N ICs, so the guess that one could have been defected does not hold...
(Not sure if the whole text was formatted right, please, let me know)
I am a beginner in hardware design. Recently got a task to design a simple current measurement device. The device should have only 3 states:
Current is lower than 10 mA
Current is between 10 and 100 mA
Current is higher than 100 mA
For current measurement I am using a LM358N op amp in a differential amplifier configuration (seems like a very simple circuit.) Since I am only interested in the mentioned range, I calculated the resistor values to provide an amplification factor of around 90. This should result in op amp output voltage of roughly 0.5 - 4.5V respectively at 10 - 100 mA of current flowing in the main branch.
For testing purposes, I connected a high power potentiometer (which should simulate different current consumption) in series with a 10 Ohm 10W limiting resistor ( if the pot was turned all the way down to zero.) According to the theory, increased current should result in a higher voltage drop across the resistor, thus increasing the op amp`s output voltage.
However, I am getting everything but the desired result. When the potentiometer is virtually turned to short circuit, I am getting around 4.08 V at the op amp`s output, when I turn potentiometer to the 330 Ohm (max value), my output is at 4.66 V.
First of all, increased resistance should result in decreased current, so the output voltage should also decrease (I am getting opposite result)
Second, the output voltage range is just over 0.5 V, while according to the formula range should be no less than 4 V
Do you have any idea, what could be causing the problem?
Some other details:
I made this circuit on a breadboard (I understand that every component has its own tolerance, so as the op amp does, but there is no AC component in this circuit. I could understand 10-15 % error, but in my case its much worse)
I checked my wiring like a 100 times.
I have a really generous amount of bypass caps.
I have tried two LM358N ICs, so the guess that one could have been defected does not hold...
(Not sure if the whole text was formatted right, please, let me know)

Last edited by a moderator: