GithubHelp home page GithubHelp logo

afr-datalog's Introduction

AFR-Datalog

AFR data-logger written for Arduino that records the throttle position sensor (TPS) and air-fuel ratio (AFR) at 20-Hz. The data is analyzed in the File_AFR_GUI.py program which converts the raw 10-bit data into readable information.

Arduino

Pinouts

Output

Generates a csv file named with the unix timestamp of when the file was created. Converting the time will provide the exact time the datalogging started.

Time(ms) TPS AFR TMP
millis() Raw 10-bit Value Raw 10-bit Value Raw 10-bit Value
  • The time column contains the current millisecond, measured from when the program started to when the measurement was made. The actual time in milliseconds isn't as important as the time difference between samples (Samplen+1 - Samplen). Ideally, the difference between Samplen+1 and Samplen should be = 50-ms.
  • The TPS column contains the 10-bit value of the throttle position sensor.
    • Translate the TPS 10-bit value into percent(%):
      • TPS.value = TPS.raw * (100.0 / 1023.0)
    • Translate the TPS 10-bit value into voltage(VDC)
      • TBD
  • The AFR column contains the 10-bit value of the air-fuel ratio.
    • Translate the AFR 10-bit value into AFR:
      • AFR.value = AFR.raw * (10.0 / 1023.0)) + 10.0)
    • Translate the AFR 10-bit value into voltage(VDC):
      • TBD
  • The TMP column contains the 10-bit value of the temperature.
    • Translate the TMP 10-bit value into Degree C:
      • TMP.value = (((TMP.raw * 5.0) / 1024.0) - 0.5) * 100;

AFR_GUI.py

An interactive program designed to help review the data collect utilizing pyqtgraph and Qt5 Designer.

References

afr-datalog's People

Contributors

kinser86 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

danieleorrico

afr-datalog's Issues

Sample rate

Hey man,

Were you able to achieve 20Hz sample rate with an arduino uno?
Reading 2 analog pins, writing to SDcard, displaying over I2C display.

I am researching for a similar project and I am in doubt if the Uno has enough firepower to even achieve 10Hz.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.