Odysseas
Member
Hello everyone,
I am faced with a fairly unusual problem... I want to read some current flow, and for this, I use a 0.1Ohms resistor and read the voltage drop across it. I use an Atmega16 and it's integrated ADC to read the voltage drop.
The Problem is: Current across the resistor can flow in both directions... I have a couple of relays that can change the polarity of the voltage (12V) being applied to the external load (12V Motors, to be precise) and subsequent current-sensing resistor... I have attached a rough schematic to illustrate. I'm afraid that the wiring of the motors is already fixed, I cannot change it.
When current is flowing in one direction, the voltage drop across the resistor is well within the sensing range of the ADC (<5V). But when it is flowing in the other direction, I of course read 12V minus the minor voltage drop across the resistor, that is, slightly less than 12V... But that's way to much to sense for the ADC...
Is there any way I can overcome this problem?
I am faced with a fairly unusual problem... I want to read some current flow, and for this, I use a 0.1Ohms resistor and read the voltage drop across it. I use an Atmega16 and it's integrated ADC to read the voltage drop.
The Problem is: Current across the resistor can flow in both directions... I have a couple of relays that can change the polarity of the voltage (12V) being applied to the external load (12V Motors, to be precise) and subsequent current-sensing resistor... I have attached a rough schematic to illustrate. I'm afraid that the wiring of the motors is already fixed, I cannot change it.
When current is flowing in one direction, the voltage drop across the resistor is well within the sensing range of the ADC (<5V). But when it is flowing in the other direction, I of course read 12V minus the minor voltage drop across the resistor, that is, slightly less than 12V... But that's way to much to sense for the ADC...
Is there any way I can overcome this problem?