int sensor=A5;
void setup() {
// put your setup code here, to run once:
pinMode(sensor,INPUT)
}
void loop() {
// put your main code here, to run repeatedly:
int _read = analogRead(sensor);
float voltage = _read * (5.0 / 1023.0);
Serial.println(voltage);
}
TomGeorge:
Hi,
I assume you are talking about 2 motor vehicles, yours works fine, but your friend's does not.
Make sure your friend has the gnd of the Arduino connected to gnd or the car.
Is your friend's car the same make and model as yours?
Does it have the same oxygen AFR sensor?
Tom...
Different model AFR controller. Grounds are the same exact spot.
larryd:
Assume you are using the sensor analog 2 output.
Try placing a 10K from A5 to GND.
Also a small filter capacitor across the sensor output to GND might be a good idea, .1µf
You do have the Arduino GND connected to the GND at the sensor.
When the sensor output voltage reads X volts, do you measure X volts across the shunt 10K resistor, use a DVM?
there is a .22uf there, same result. DVM shows 5v on the AFR controller by itself but when those wires are fed into arduino only 1.x volts come across.
Hi,
With the projects disconnected from the AFR controller and power OFF.
With a DMM measure the resistance between X1-5 and X1-6 on the project.
That is measure to see what resistance/load the project is applying to the AFR controller.