Data logging and LCD display visualization with Fuelino

To perform some tests, I interfaced the following modules to a Fuelino Proto2 board:

  • Catalex MicroSD module, for data logging on micro SD card. Interfaced using SPI communication protocol (6-pin connector).
  • LCD module (AE-AQM0802), for real time data visualization. Interfaced using I2C (TWI) protocol (4-pin connector).

The picture below shows how the LCD display module looks like (back side). Only 4 pins are required:

  1. VDD (5V). Power supply from Arduino Nano.
  2. SCL. I2C clock from Master (Arduino Nano r3).
  3. SDA. Data from Master (Arduino) to Slave (LCD display).
  4. GND (0V). Power supply and signal reference from Arduino Nano.

AE-AQM0802 LCD module for Arduino

The following video shows the behaviour of Fuelino, when it is stimulated with an injection signal coming from Pico DrDaq module. The input signal has a 5% duty cycle (fixed) and variable frequency (10Hz, 20Hz, 30Hz), which corresponds to a period of: 100ms, 50ms, 33.3ms.

The acquired and calculated data is logged on the Micro SD card (Catalex module). At the moment, the logging frequency is not set to a fix value (it depends on the loop cycle time, and SD card access latency time), but it is slightly variable around 130ms. With some software modifications, I am planning to reach a fixed logging period around 50ms (20Hz).

At the moment, Fuelino is capable of logging the following data, when connected to a motorcycle (or car):

  1. Time after Power ON [ms]. Read using the millis() function of Arduino IDE.
  2. Combustion cycle number. How many injections (= combustions) have been performed.
  3. Time period between one injection and the next (2 crankshaft rotations) [us].
  4. Engine speed [rpm]. Calculated using the previous measurement.
  5. Injection time [us]. This is the injection command pulsewidth coming from the original ECU.
  6. Throttle Position Sensor voltage signal [V].
  7. Lambda sensor voltage [V].
  8. Injection time extension [us]. This is the increment of injection time performed by Fuelino.
  9. Interrupts execution time [us]. Just for debugging purpose.

In the example below, I plotted the data acquired during the test (see video above):

  • When stimulating with 10Hz (100000us period), the calculated engine speed is 1200rpm. And the fuel injection time measured is 5000us (which corresponds to a 5% duty cycle).
  • When stimulating with 20Hz (50000us period), engine speed is 2400rpm. Fuel injection time measured is 2500us.
  • When stimulating with 30Hz (33333us period), engine speed is 3600rpm. Fuel injection time measured is 1666us.

fuelino_data_logged

Author: Davide Cavaliere

I am an Italian Electrical Engineer graduated at Politecnico di Milano. My interests are motorcycles and cars, electronics, programming, Internet of Things, and Japanese culture.

Leave a Reply

Your email address will not be published. Required fields are marked *