Lambda GUI not reading
Lambda GUI not reading
I've installed the Arduino GUI example and the Lambda Shield GUI program on my computer. When I run the standalone GUI program, it recognizes my board and accurately heats it up normally. However, it reads 0% oxygen and 0 amps.
When I run the Arduino GUI example and open up the serial monitor, I can see that the board is in fact reading, and when exposed to varying levels of oxygen, the readings on the serial monitor change.
I'm fairly confident that the board is functioning - could this be a problem with the GUI program?
When I run the Arduino GUI example and open up the serial monitor, I can see that the board is in fact reading, and when exposed to varying levels of oxygen, the readings on the serial monitor change.
I'm fairly confident that the board is functioning - could this be a problem with the GUI program?
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Lambda GUI not reading
Hello,
Thank you for bringing this bug to my attention. I was able to replicate the problem that occurs when the AD value is outside of the lookup table. It returns 0. Please download the updated version 1.1.1 or newer from the website and let me know if you still experience the same problem.
Thank you for bringing this bug to my attention. I was able to replicate the problem that occurs when the AD value is outside of the lookup table. It returns 0. Please download the updated version 1.1.1 or newer from the website and let me know if you still experience the same problem.
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
Re: Lambda GUI not reading
I'm now experiencing a very similar problem - it is stuck reading at 2.54 mA and 20.95% oxygen. These values do not change regardless of the actual O2 values.
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Lambda GUI not reading
Hello again,
Do you see no difference in output at all, for example if you breath on the sensor does it still show 20.95%?
Right now 20.95% is the maximum value to be displayed, this could be the reason why it does not change since you are out of range. Could you share the serial output from the Arduino?
If you would be willing to share some more information regarding the application and required measurement range I am sure we can solve it. Also feel free to contact me directly if needed, christian@bylund-automotive.com.
Thank you.
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
Re: Lambda GUI not reading
Yes, the output does not change at all when breathed on.
The Arduino file works just fine - but the values it reads while in open air are around 26%. This would make sense as to why the GUI isn’t outputting correctly.
Do you think the sensor is reading accurately? 26% seems very high for ambient air.
The Arduino file works just fine - but the values it reads while in open air are around 26%. This would make sense as to why the GUI isn’t outputting correctly.
Do you think the sensor is reading accurately? 26% seems very high for ambient air.
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Lambda GUI not reading
So for the Windows App you must use the code included in the zip file.dgleason wrote: ↑25 Apr 2019 23:39Yes, the output does not change at all when breathed on.
The Arduino file works just fine - but the values it reads while in open air are around 26%. This would make sense as to why the GUI isn’t outputting correctly.
Do you think the sensor is reading accurately? 26% seems very high for ambient air.
The output should look something like this if you do:
STATUS,0,10325,308,467,301
Regarding accuracy, are you using the X7 jumper to power the Arduino from the 12V? If not do you have a stable 5V USB power source? See section 3.2 and 4.0 in the technical manual for details.
If you get 26% oxygen content it means you are using an older version of the serial output example code not compatible with the Windows APP. Always use the latest versions from GitHub (http://github.com/Bylund).
Just note that it is different codes for serial output and Windows App output. And I assume you have seen our getting started video?
https://www.youtube.com/watch?v=sR3YrV0KHXw
Hope it helps.
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
Re: Lambda GUI not reading
My sensor is powered by a 1Amp, 12v wall power source, and the Arduino is powered with a USB connected to the computer.
I believe I'm using the Windows App correctly - I upload the Arduino code to the Arduino, then open up the Windows App.
When viewed in the Arduino Serial Monitor, the output looks like this:
STATUS,1,10495,1010,168,791
which seems correct.
However, this Arduino code doesn't output actual oxygen percentages, and the Windows App seems to think it's maxing out.
I got the higher oxygen level readings (around 26-27%) from the version 1.1 Lambda-Shield-Example Arduino code on Github.
The version 1.2 Lambda-Shield-Example has the same problem as the GUI - it only outputs 20.95%, and does not change unless exposed to extreme oxygen-low environments.
Here's an output from the 1.2:
Measuring, CJ125: 0x28FF, UA_ADC: 1010, UR_ADC: 177, UBat_ADC: 751, Lambda: -, Oxygen: 20.95%
When I hold a lighter to the sensors, the oxygen reading drops as low as 0.5%.
I am concerned that the sensor is legitimately reading 26%, but the code is refusing to output anything above 20.95%.
I believe I'm using the Windows App correctly - I upload the Arduino code to the Arduino, then open up the Windows App.
When viewed in the Arduino Serial Monitor, the output looks like this:
STATUS,1,10495,1010,168,791
which seems correct.
However, this Arduino code doesn't output actual oxygen percentages, and the Windows App seems to think it's maxing out.
I got the higher oxygen level readings (around 26-27%) from the version 1.1 Lambda-Shield-Example Arduino code on Github.
The version 1.2 Lambda-Shield-Example has the same problem as the GUI - it only outputs 20.95%, and does not change unless exposed to extreme oxygen-low environments.
Here's an output from the 1.2:
Measuring, CJ125: 0x28FF, UA_ADC: 1010, UR_ADC: 177, UBat_ADC: 751, Lambda: -, Oxygen: 20.95%
When I hold a lighter to the sensors, the oxygen reading drops as low as 0.5%.
I am concerned that the sensor is legitimately reading 26%, but the code is refusing to output anything above 20.95%.
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Lambda GUI not reading
The Arduino and the Bosch CJ125 controller are both powered by a common 5V. So if we do not use the built in 5V voltage regulator of the Arduino it will instead use the 5V from the computers USB which can be very unreliable.
This actually shows the symptom of a low 5V, since the ADC values are much higher than normal it shows that the ADC reference is off. They are so high you will not get a reading since they are considered invalid. Typically you should expect an ADC value of 854 ± 1% in free air.
From the technical manual, 3.2 – Alternative Power Input:
By using a jumper on X7, the power input from the Arduino (or compatible) board is directly connected to power input of the Lambda Shield. This can be used either to power the Arduino from the Lambda Shield. Or power the Lambda Shield (heater) from the Arduino. In either case the 5V is always common.
Either put a traditional jumper (blue) or a jumper wire (red) to connect the 12V power source to the Arduino. This will also enable the 5V voltage regulator of the Arduino and give you a stable 5V which will improve the readings.
WARNING! - Never connect more than one power source at any time when using this feature.
The error is almost insignificant the closer you get to 0% oxygen, i.e. λ = 1.
Correct, with a more accurate 5V you should be able to get trustworthy readings. Unless you are measuring a gas containing more oxygen than air the code should be sufficient.
Please let me know if this solved your problem.
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
Re: Lambda GUI not reading
When you say "Never connect more than one power source at any time when using this feature", does that mean that I should not plug in the 12V power source to the board and a USB to the Arduino/computer at the same time?
If so, how can I use the GUI while the sensor is powered?
If so, how can I use the GUI while the sensor is powered?
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Lambda GUI not reading
Sorry that it was unclear, with power source I meant connections to the DC-jacks. So never connect two DC-jacks at the same time. Use one or the other.dgleason wrote: ↑17 Jun 2019 17:35When you say "Never connect more than one power source at any time when using this feature", does that mean that I should not plug in the 12V power source to the board and a USB to the Arduino/computer at the same time?
If so, how can I use the GUI while the sensor is powered?
You are definitely supposed to use the USB. I hope that it clarified my statement.
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB