the above picture is schematics of bike fuel meter,
As in NOW figure
I Disconnected the fuel meter connection of bike & connected it to NON-INV amp, for PIC project with digital fuel display, Digital display is perfect by ADC of PIC
Now, i need to enable both analogue and digital meters, how can i do?
any idea??
Your analog meter measures CURRENT; your ADC measures VOLTAGE. So, it would seem that the simple approach is to hook everything back up the way it is in the top picture, and measure the voltage at the junction of the meter and the sensor. Get rid of that 3K resistor on the opamp input.
>> at junction of meter and sensor there is lot of voltage fluctuations, depends on battery charge, and also its more that 5 volt, i can't just fed it to ADC
im using lm358, its having 2 op amp, is there anything to do with 2nd opamp to this?
If your battery fluctuates, then your analog meter reading will fluctuate, too, right?. The current through that meter is battery voltage divided by the sensor resistance. You can put a voltage divider across your sensor (the voltage divider will have to have much higher resistance than the sensor). Or, if the resistance is too high you can use one of the opamps as a voltage follower and divide the output voltage before sending it to the ADC.
My only guess is that the meter is dampening out the fluctuations due to the battery. I'm sure that if the battery fluctuates, so does the voltage at the junction. So, just add some filtering to your opamp, or in your software.