Lambda Shield 2 did not run successfully

Support forum for the Lambda Shield designed to connect Bosch LSU 4.9 wideband oxygen sensors to Arduino projects.
t2b
Posts: 7
Joined: 08 Mar 2021 20:54

Lambda Shield 2 did not run successfully

Post by t2b » 10 Mar 2021 10:02

Hello at Bylund Automotives,

I didn’t realize the Forum here, so I tried first per Email…

I have ordered your Lambda2 WiFi Bundle, and two days ago I want to test it.
Uploading the sketch to the Arduino and downloading the Smartphone App works well without problems.
Connecting the Bosch LSU works fine two. The numbers on the Plug are clearly visible and well connected. The Jumper on the PCB is set.

When connecting power the Arduino LED's are working, but not the LED's on the Shield PCB.
The Bosch Sensor is correctly wired. I checked it twice before powering for the first time.
Both PCB'S matching fine. All Headers are correctly engaged.
The Power Source is an 12VDC/5A and matches to the PCB connector and the Polarity is correct (It normally drives a Arduino controlled soldering Station, that works great)

I have tried to power the Shield from the Arduino Board as described in your instructions, without help. The Arduino is powered fine, but the shield is still weak. At my Laptop I see the responding Bluetooth chip of the Arduino, but App didn't react.

After this I grabbed a simple Arduino Uno (… normally working very well in one of my old, but electrically restored Pinball Machines…) and uploaded The Lambda 2 Shield GUI Example Code.
When powered, both LED on the Shield are flashing for one time simultaneously and nothing else happened.

The Serial Monitor shows some Code like this:
0,1,10479,304,874,287,11945
0,1,10479,305,873,288,11946
0,1,10479,306,871,287,11944
0,1,10479,307,870,286,11943
0,1,10479,307,872,285,11944
0,1,10479,305,872,286,11943
0,1,10479,304,874,287,11945
0,1,10479,305,874,287,11946
0,1,10479,306,872,287,11945
0,1,10479,306,871,287,11944
0,1,10479,307,870,286,11943
...

when I remove the power of the Shield, the code is like this:
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,80,11196
0,1,10341,304,470,79,11195
0,1,10341,305,470,80,11197
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
0,1,10341,304,470,79,11195
...

As a last attempt I powered the Arduino and the Shield via an 12VDC Lead Battery to avoid power peaks. No Help again…

After reprogramming my genuine UNO, it is again running correctly in my Pinball. So I think that the Arduino Wifi works normal. I think the Shield is faulty, or shortwired. Did you test it, before sending? I noticed a unusual warm voltage regulator on the PCB's when powered, or is this normal?

Do anyone have an idea what is wrong.
I’m not an "Arduino Nerd" in programming them, but I have some experience with various Arduino Boards and peripheral wiring..


Greetings from Germany,
t2b

User avatar
Christian_Bylund
Posts: 255
Joined: 07 Mar 2015 18:09

Re: Lambda Shield 2 did not run successfully

Post by Christian_Bylund » 10 Mar 2021 10:30

t2b wrote:
10 Mar 2021 10:02
Hello at Bylund Automotives,

I didn’t realize the Forum here, so I tried first per Email…
Hello, not sure if you received my response of your email? - Sometimes they get stuck in spam folders.
t2b wrote:
10 Mar 2021 10:02
I think the Shield is faulty, or shortwired. Did you test it, before sending?
Sorry to hear you are experiencing problems but all shields are tested before shipping so I think we can figure out what is wrong.
t2b wrote:
10 Mar 2021 10:02
The Serial Monitor shows some Code like this:
0,1,10479,304,874,287,11945
The reason why nothing is happening is that the lambda controller is reporting 0x28EF. If everything is ok it should be 0x28FF. 0x28EF is the error code of low battery. However your battery voltage is read as 15.4V.

Could you please help with the following:
1. Share the result without the X7 jumper set.
2. Share a picture of the setup.

Thank you.
Best Regards,
Christian Bylund
Bylund Automotive AB

t2b
Posts: 7
Joined: 08 Mar 2021 20:54

Re: Lambda Shield 2 did not run successfully

Post by t2b » 11 Mar 2021 15:54

Thanks for your reply Christian,
I will do that, but give me a few days. I' m very busy in the moment...

Torsten

Redrock55
Posts: 3
Joined: 21 Jan 2021 18:13

Re: Lambda Shield 2 did not run successfully

Post by Redrock55 » 16 Mar 2021 20:28

Im also have trouble code of low power with the X7 jumper installed . If removed we don't get light or anything on the Shield. Can you help us wire this.

User avatar
Christian_Bylund
Posts: 255
Joined: 07 Mar 2015 18:09

Re: Lambda Shield 2 did not run successfully

Post by Christian_Bylund » 16 Mar 2021 20:42

Redrock55 wrote:
16 Mar 2021 20:28
Im also have trouble code of low power with the X7 jumper installed . If removed we don't get light or anything on the Shield. Can you help us wire this.
Hi! Every shield is tested before shipping so we can probably figure it out. First have a look at the troubleshooting section for the most common issues.

If not please help with the following:
1. Share the serial output without the X7 jumper set.
2. Share a picture of the setup.

Thank you.
Best Regards,
Christian Bylund
Bylund Automotive AB

t2b
Posts: 7
Joined: 08 Mar 2021 20:54

Re: Lambda Shield 2 did not run successfully

Post by t2b » 18 Mar 2021 10:31

Hello Christian,

I'm not able to upload pictures (... ,or simply doesn't understand how to...).
So I will send you the related Pictures via Email.
Image
After receiving your Message I first checked my Power Source, it is at 12.15V.
Than I grabbed the genuine Arduino out of my pinball and wired up an SSD1306 Display.
I used now an adjustable Power supply, so you can see the Voltage on the Pictures.
Image
After loading your sketch, the Display shows your Logo but nothing else happened.
Image
Same with USB out and X7 bridged. Disconnecting Lambda Sensor doesn't change anything.
After removing X7 and connecting back to USB and Lambda Sensor the Serial Monitor shows this:

0,1,10479,305,866,206,11857
0,1,10479,306,869,207,11862
0,1,10479,307,870,208,11865
0,1,10479,309,869,207,11865
0,1,10479,307,871,207,11865
0,1,10479,307,867,207,11861
0,1,10479,306,871,207,11864
0,1,10479,307,871,209,11867
0,1,10479,306,870,207,11863
0,1,10479,307,871,207,11865
0,1,10479,306,870,207,11863
0,1,10479,307,871,208,11866

Removing Lambda Sensor it shows this:

0,1,10351,303,872,208,11735
0,1,10351,304,874,208,11738
0,1,10351,305,871,206,11734
0,1,10351,304,872,206,11734
0,1,10351,305,869,206,11732
0,1,10351,305,872,206,11735
0,1,10351,307,872,207,11738
0,1,10351,305,872,207,11736
0,1,10351,304,872,211,11739
0,1,10351,304,873,207,11736
0,1,10351,304,874,209,11739
0,1,10351,304,872,209,11737

Removing Power from Shield ( x7 not bridged, no Lambda Sensor) shows this:

0,1,10341,304,455,65,11166
0,1,10341,305,459,65,11171
0,1,10341,305,455,67,11169
0,1,10341,304,456,65,11167
0,1,10341,305,456,65,11168
0,1,10341,305,456,65,11168
0,1,10341,305,456,65,11168
0,1,10341,304,456,65,11167
0,1,10341,304,455,65,11166
0,1,10341,304,455,65,11166

Only USB and now x7 bridged (...still no Lambda Sensor - I'm not shure if the Arduino can manage Shield plus Sensor...)shows this:

0,1,10341,303,468,79,11192
0,1,10341,304,470,80,11196
0,1,10341,304,471,78,11195
0,1,10341,303,470,78,11193
0,1,10341,304,471,79,11196
0,1,10341,303,469,79,11193
0,1,10341,304,470,78,11194
0,1,10341,303,469,80,11194
0,1,10341,303,470,79,11194
0,1,10341,304,469,79,11194

Display still shows "Bylund Automotive" Logo.
If there is anything else I can do, please reply.
I hope that is usefull for you...

Best Regards
Torsten
Last edited by Christian_Bylund on 19 Mar 2021 09:49, edited 1 time in total.
Reason: Added pictures from email.

Jelmer
Posts: 1
Joined: 19 Mar 2021 08:41

Re: Lambda Shield 2 did not run successfully

Post by Jelmer » 19 Mar 2021 09:12

Hello,

I experienced the same problem when using the Lambda shield 2 with an arduino UNO. In the serial monitor of the Arduino IDE, the error code 0x2855 was displayed, indicating low power. The power supply i used can deliver 2,5A at 12V so this should work fine.

I finally found out that i uploaded the wrong Arduino sketch. The following line of code caused the problem:

#define UBAT_MIN 550 /* Minimum voltage (ADC value) on Ubat to operate */

This code checks if the voltage from the power supply is high enough. The 550 value only works with the old lambda shield and not lambda shield 2 because the voltage divider on the shield is different. For the lambda shield 2, this value should be 150.
This had me confused for a while, so make sure you upload the correct sketch to the arduino: https://github.com/Bylund/Lambda-Shield ... xample.ino

Hope this helps.

User avatar
Christian_Bylund
Posts: 255
Joined: 07 Mar 2015 18:09

Re: Lambda Shield 2 did not run successfully

Post by Christian_Bylund » 19 Mar 2021 12:33

Thank you Torsten for some numbers to analyze. I have compared your results with mine.

Without power:
Torsten wrote: Only USB and now x7 bridged (...still no Lambda Sensor - I'm not shure if the Arduino can manage Shield plus Sensor...)shows this:
0,1,10341,303,468,79,11192
0,1,10341,304,470,80,11196
0,1,10341,304,471,78,11195
Expected: 10325 (0x2855)
Received: 10341 (Ox2865)

With power and sensor:
Torsten wrote: Same with USB out and X7 bridged. Disconnecting Lambda Sensor doesn't change anything.
After removing X7 and connecting back to USB and Lambda Sensor the Serial Monitor shows this:
0,1,10479,305,866,206,11857
0,1,10479,306,869,207,11862
0,1,10479,307,870,208,11865
Expected: 10495 (0x28FF)
Received: 10479 (0x28EF)

As you are not receiving 10325 with just the shield connected indicates something is wrong. And you have tested both the Arduino Uno WiFi that was in the shipment and your existing Arduino Uno. As there is already a problem on that level we can discard issues with wiring and power supplies.

I will send you a replacement first thing on Monday just to make sure nothing have happened to the shield. They are tested and shipped in a ESD protected enclosure but something can have happened. I will send you the tracking by email. If it works with a new shield I am very interested in receiving this one as we have never seen this problem before.

Have you tested it without the display connected?
Best Regards,
Christian Bylund
Bylund Automotive AB

User avatar
Christian_Bylund
Posts: 255
Joined: 07 Mar 2015 18:09

Re: Lambda Shield 2 did not run successfully

Post by Christian_Bylund » 19 Mar 2021 12:41

Jelmer wrote:
19 Mar 2021 09:12
Hello,

I experienced the same problem when using the Lambda shield 2 with an arduino UNO. In the serial monitor of the Arduino IDE, the error code 0x2855 was displayed, indicating low power. The power supply i used can deliver 2,5A at 12V so this should work fine.

I finally found out that i uploaded the wrong Arduino sketch. The following line of code caused the problem:

#define UBAT_MIN 550 /* Minimum voltage (ADC value) on Ubat to operate */

This code checks if the voltage from the power supply is high enough. The 550 value only works with the old lambda shield and not lambda shield 2 because the voltage divider on the shield is different. For the lambda shield 2, this value should be 150.
This had me confused for a while, so make sure you upload the correct sketch to the arduino: https://github.com/Bylund/Lambda-Shield ... xample.ino

Hope this helps.
Thank you Jelmer.

You are absolutely right, Lambda Shield 2 measure supply voltage differently. Always use the latest code from the product website.

In this particular case it is a problem with the CJ125 diagnostic registers. For the shield to "start" it needs error registers cleared from the lambda controller (0x28FF) and a minimum supply voltage.
Best Regards,
Christian Bylund
Bylund Automotive AB

t2b
Posts: 7
Joined: 08 Mar 2021 20:54

Re: Lambda Shield 2 did not run successfully

Post by t2b » 20 Mar 2021 13:02

Christian_Bylund wrote:
19 Mar 2021 12:33
Have you tested it without the display connected?
I dont have tested it without the Display yet, but a few Days ago (see the post from 10 Mar 2021).
The Display I connected, was just for testing Options without USB Power connected.

Thanks for sending a new Board, I don' know whats going wrong, it is realy not difficult to follow your instructions in the Manual, or on youtube - and normally I do not fry PCB's... ; )

Thanks for your friendly Support

Torsten

Post Reply