Help scaling voltage...


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108

    Default Help scaling voltage...

    Hello.
    I'm trying to measure my car fuel level and something is wrong. The fuel sensor scale is 0 - 6V and, of course, I would like to read from 0 - 5V. The image attached shows the schem I've down till now.
    The thing is that the sensor value is 4.95V (now) and 4.12V is expected in PIC. It is getting 3.6V.
    I suppose that there can be 2 mistakes:
    1) LM324 VCC must be more than 6V.
    2) There is a voltage divider between POT and LM324 output impedance causing voltage in POT be less than fuel sensor signal.

    Hope you can help..

    Thanks in advance AGAIN!

    Sylvio
    Attached Images Attached Images  
    Last edited by sirvo; - 30th July 2007 at 18:06.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    ADC might be your solution. A few days ago a battery voltage monitor was discussed. http://www.picbasic.co.uk/forum/showthread.php?t=6744

    Look it over and see if you what you think. If I am on the wrong track let me know.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    ADC might be your solution. A few days ago a battery voltage monitor was discussed. http://www.picbasic.co.uk/forum/showthread.php?t=6744

    Look it over and see if you what you think. If I am on the wrong track let me know.
    I think you are on the worng track. I'm using ADC to measure the fuel level but the sensor range is from 0 to 6V. It is necessary to scale down from 0 to 5V so that PIC can 'read' it. My problem is on the lm324 (opamp as a buffer).

    Thanks.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Forget the opamp. The thread was talking about using a simple voltage divider to scale the signal voltage down to PIC level. If you have 6 volts use a 1 to 1 voltage divider to make 3 volts. Set the ADC reference voltage to see full scale (apply 6 v to divider ADC out put 255) and you should be good to go.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Forget the opamp. The thread was talking about using a simple voltage divider to scale the signal voltage down to PIC level. If you have 6 volts use a 1 to 1 voltage divider to make 3 volts. Set the ADC reference voltage to see full scale (apply 6 v to divider ADC out put 255) and you should be good to go.
    I totally agree with you. But maybe I forgot to explain something that, unfortunatelly, I am not sure. My car fuel sensor is a voltage divider, I think. The sensor is a variable resistor and its range is from 40 to 280 ohms and it turns that the voltage range, as I said, is from 0 (1,66V) to 6V. If I use a simple voltage divider in this fuel signal, will not it change the signal that is being send to the car? That is the reason why I am using the opamp as a buffer..

    Thanks again..

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The LM324 can only reach VDD -1.5V. So with 5V powering it, the most you can get out is around 3.5V.

    If you power it with 7.5 V or more, it'll give you the full range.
    <br>
    DT

  7. #7
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    The LM324 can only reach VDD -1.5V. So with 5V powering it, the most you can get out is around 3.5V.

    If you power it with 7.5 V or more, it'll give you the full range.
    <br>
    Thanks Darrel. You are so correctly! i have just experimented that and it worked!

    Thanks again.

    Sylvio

Similar Threads

  1. high voltage high frequency H-Bridge
    By George in forum Off Topic
    Replies: 6
    Last Post: - 27th April 2009, 11:50
  2. Expanded Scale Voltmeter
    By Pic_User in forum Schematics
    Replies: 6
    Last Post: - 8th February 2008, 20:32
  3. make a low voltage output from a PIC pin
    By emptyset in forum General
    Replies: 1
    Last Post: - 8th February 2008, 19:20
  4. Help with final project
    By OvERKiLL in forum General
    Replies: 4
    Last Post: - 15th December 2006, 20:35
  5. Low Voltage Detection
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th January 2005, 18:29

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts