Hi there,
Anyone know what the lambda and gasoline_afr formula is for the spartan2?
I'm using the Arduino Nano 3 and would like to use the 14point7 tab for coms on the Romraider logger.
Code below (given to me by a fellow user, slightly edited)
Regards
Kev
unsigned long timer = millis() + 2000;
void setup() {
Serial.begin(19200);
} void loop() {
int pinVoltageA1 = analogRead(A1);
float voltage1 = pinVoltageA1 * (4.73 / 1024);
float lambda = (0.11086957 * voltage1) + 0.56784;
float gasoline_afr = (1.63 * voltage1) + 8.344;
float finalDisplayingValue = gasoline_afr;
if(millis() > timer){
Serial.println(finalDisplayingValue);
timer = millis() + 100;
}
}
unsigned long timer = millis() + 2000;
void setup() {
Serial.begin(19200);
} void loop() {
int pinVoltageA1 = analogRead(A1);
float voltage1 = pinVoltageA1 * (4.73 / 1024);
float lambda = (0.11086957 * voltage1) + 0.56784;
float gasoline_afr = (1.63 * voltage1) + 8.344;
float finalDisplayingValue = gasoline_afr;
if(millis() > timer){
Serial.println(finalDisplayingValue);
timer = millis() + 100;
}
}