- Version
- Download 333
- File Size 53.15 KB
- File Count 1
- Create Date May 7, 2025
- Last Updated May 12, 2025
PLSME2.0.ino: Datalog shield with 1 Controlduino 01M21V00 module and a 1602 LCD.
Target:
The aim of this software is to collect data from a lambda module (Controlduino 01M11V00 or Controlduino 01M21V00, depending on configuration) , display it on a 1602 LCD screen and save it in .CSV format on a micro SD HC card using the control buttons.
Display the following data on a 1602 LCD with an I2C controller:
- RPM
- Recording information:
- NR (When not recording)
- File name + a number, default ‘O2_(number).CSV’(When recording)
- Oxygen percentage, Or Lambda Or AFR.(Shows the status when there is no measurement.)
An adjustment to the oxygen measurement can be made to improve measurement accuracy using the Button Sw8.
Push buttons with functions:
- "Sw5 or pin D5". Starts or stops data recording on the SD card
- "Sw6 or pin D6". The rising edge of the button generates a state that allows you to start a new recording, continuing the last opened CSV file or in a new one (by default).
- "Sw7 or pin D7". Shows the percentage of oxygen on the display instead of AFR..
- "Sw8 or pin D8". Adjust lambda 1.
Hardware required to use this software:
- Arduino board, MEGA, or UNO R4 Wifi.
- Datalogger Shield with MicroSD card and RTC, for lambda modules. Controlduino 91S00V00.
- SDHC SD card. Note: SDXC cards are not valid.
- Lambda module and wires.(Controlduino 01M21V00, or Controlduino 01M11V00).
- Wideband lambda probe.
- LCD Display HD44780 1602 with I2C interface.
- Power supply (V=12v, I>=3A)
Compatible with arduino boards
- Compatibilities with 5V arduino boards.
- Arduino UNO R4 WIFI.(Bus SPI)
- Arduino MEGA.(Bus SPI)
- Others, compatible but not tested, (requires LDO of 3.3V).
- Note: Arduino UNO R3, has insufficient memory to run the program.
- Note: Arduino UNO R4 Minima is not suitable because it does not have a 3.3V output.
Others.
- The software uses the library ‘Lambda_rpm.h’.
- Note: pin D8 functions as an adjustment button for the two lambda probes, which will be carried out by measuring clean air. The pin has a pull-up resistor at 5 V and acts on the rising edge, so after grounding the pin, it must be left at high impedance.The adjustment will not be completed if the lambda probe is not connected or the probe status is not measuring.
- SPI bus slave selectors, and connectors to use on the shield Controlduino 91S00V00.
- D3 (Slave selector for lambda-Rpm module, or lambda module)==>Lambda 1
- D4 (Not used in this example)
- A3 (Not used in this example)
- A2 (Not used in this example)