126p wrote: ↑Sat May 11, 2019 2:15 pm
There is no much data about this controller in the Internet, so this is my small update:
The controller is preconfigured to Gasoline, AFR: 9.0-19.0.
It looks like the only step required for this wideband is a open air calibration.
To do this it is enough to make a serial connection (9600N1). One thing worth to note is that there is a second ground on PCB - it can't be used for serial communication, it is for noise fitering capacitor.
So we need to:
1. Connect the LSU 4.2 probe to controller (do not put the probe on flamable materials, the probe will became hot when you connect the controller to the power source)
2. Connect power source to controller (check polarity twice. One time I did it wrong and the controller started to burn. Fortunatelly it is still working. I thing that some kind of protection 4A diode would be a good solution)
3. Connect Serial Console (9600N1) to GND and Digital pins of the controller
4. Turn the power source on
To read the data Arduino Studio could be used. The data read is a HEX value, its need to be converted to DEC value.
After a we will receive BE(190) value, that means that controller is ready.
Now we can use attached magnet, just put it close to the sensor on PCB and hold it.
The values should change in seqence, 6 elements in a loop. On 6 change, release the magnet, calibration should start.
After about 10s we will receive BE(190) value again. If something goes wrong, we can erase our setup by holding the magnet near sensor during power on.
@dazq
Thank you for your effort. Because I don't have LCD and LCD library, and because I'm lazy, I commented out LCD logic in your code and I was only using serial output in Arduino Studio.
Generaly the program works similar to my findings above.
One thing which I saw during testing is that menu was working correctly only for first loop (I mean, that I have text values for the first loop of menu items, starting for next loop, there were numerical values)
This is my design for 3D printed case for the controller: https://www.tinkercad.com/things/ilfHMz ... tastic-kup
It's big enough for controller and 3300uF/35V noise filtering capacitor.
I coat it with transparent acrilic spray. I used rubber from old bike tube to make it water proof near cables (you need to make a 2 pieces of small 22-23mmx8mm rectangle, make 5 holes in one part (for probe), 3 in second (2 for power source, 1 for signal))
Some comments about the above.
Point3, the data is 9600n1 yes but Inverted! That's why I use the softserial as it's tricky to read inverted on hardware serial.
Point4 the data is sent in simple whole bytes, eg 190 is 19.0afr , 90 is 9.0afr etc.
The calibration sequence is I'm afraid somewhat more complex, it sends a succession of data , if you see my code you can see this and the steps I took to decide this to ensure I could show which step you are at.
Remember you can set the other values too or change to a different fuel type if you wanted.
One point here if you do change fuel type the output is still as afr regardless.
Not sure what this bit meant.
One thing which I saw during testing is that menu was working correctly only for first loop (I mean, that I have text values for the first loop of menu items, starting for next loop, there were numerical values)
?
I am going to add a disable option on the LCD output and I also have it running on a Uno so next step will be a pro mini.
Quantum Coupe with V04 on Ford 1.4CVH,Quantum 2+2 with Custom V04 on Jaguar 3.0l AJ30 V6
mini GPIO :done More soon
CANbus broadcast interface: done
Simple sd logger :done
External CAN io: Inputs :done
Gearbox controller: working