Fuel consumption display


Results 1 to 18 of 18

Threaded View

  1. #1
    Join Date
    Nov 2006
    Posts
    2

    Default Fuel consumption display

    I have a project to build an instantaneous fuel consumption meter for my car. I'm quite a new in PIC programming and PICbasic so I would be very pleased if you have any hints or opinions about my project.

    I’m planning to use 16f628a, 20x2 lcd and few buttons. I have melab’s LAB-X3 proto board for code testing.

    For the consumption calculation I need vehicle speed, engine rpm, injector open time and injectors flow rate @ 3bar.

    -speed signal form speedometer hall sensor, it outputs 16 pulses per tyre rotation
    -engine rpm from 58 teeth vr sensor or alternatively from rev counter signal
    -injector pulse width from injectors

    I think that the consumption is calculated with following formulas:

    Fuel consumption (liters/sec) = RPM * injector open time * injector flow

    and

    Fuel consumption (liters/100km) = (RPM * injector open time * injector flow) / speed * 100000

    e.g.

    Fuel consumption (liters/100km) = (( 1500 rpm / 60 ) * ( 8 ms / 1000 ) * ( ( 190 cc/min ) / 1000 )) / ((( 30 km/h) / 3.6) * 100000) = ~7.6 liter/100km


    I think that it might be enough to measure 500 -1000ms each signal and after that calculate the results and print the results to display.

    I have searched the forum about pulse counting and pulse width measurement. Something like this is maybe suitable for injector pulse width measurement: http://www.melabs.com/resources/samp.../pbp/ccpx2.bas

    Do you have any tips for counting the other pulses and handling all the three signals almost at the same time?

    The attachment is a excel file for demonstrating the calculations.

    -Vili
    Attached Files Attached Files

Similar Threads

  1. Hdsp 21xx display
    By Original in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th June 2012, 20:07
  2. Using CCP1 and CCP2 to measure instant fuel consumption
    By srspinho in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 20th September 2008, 15:50
  3. Replies: 2
    Last Post: - 14th July 2008, 22:11
  4. DS1820 display with 7-seg 4 digits
    By chai98a in forum Code Examples
    Replies: 12
    Last Post: - 10th April 2008, 13:12
  5. Replies: 14
    Last Post: - 26th September 2007, 05:41

Members who have read this thread : 0

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