Alpha N and barometric correction / LPS22

Tuning, troubleshooting and the nitty gritty of using rusEFI to make your engine run nicely!
Post Reply
chili023
Posts: 22
Joined: Fri Jul 03, 2020 2:41 pm
Location: Berlin Germany

Alpha N and barometric correction / LPS22

Post by chili023 »

We are in the fine tune stages of our 125 2 stroke uaefi.
We have the LPS22H sensor installed and correctly placed. However no value is shown for barometric pressure. (SDA SCL pins are correctly set)
In the process of trying to get it to talk to the stm I saw that ALPHA N doesn't have barometric correction.
Why is that?
I think barometric correction is crucial for us because we are racing in Spain (see level) and mountain races over the year, furthermore we are 24h races. I do not want to retune the complete engine map every time the pressure changes.

We could use speed density and use TPS as y axis to have barometric correction. Is this the way to go?

Also what could be the reason I get no values from the LPS? Had anyone ever problems with it? Or is anybody using it?
User avatar
AndreyB
Site Admin
Posts: 14671
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: Alpha N and barometric correction / LPS22

Post by AndreyB »

https://github.com/rusefi/rusefi/wiki/rusEFI-Quick-Start-PDF is attempting to state that without any info we cannot really help
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
chili023
Posts: 22
Joined: Fri Jul 03, 2020 2:41 pm
Location: Berlin Germany

Re: Alpha N and barometric correction / LPS22

Post by chili023 »

Hello more info for clarification. our board is the uaefi rev. d produced by JLCPCB. I checked the orientation of the chip and all effecting souroundings. It all looks fine. Also not much to it.
image.png
image.png (30.16 KiB) Viewed 7579 times
My first question is: Why is there no barometric correction in Alpha/N mode in TunerStudio?
image.png
image.png (40.58 KiB) Viewed 7579 times

My second question is why is the LPS22 not working? And if it is working in general with our firmware.
We have the correct settings for SCL and SDA.
image.png
image.png (22.82 KiB) Viewed 7579 times
our firmware is
image.png
image.png (3.21 KiB) Viewed 7579 times
When I connect an Oscilloscope to PB10 and PB11 I do not see an communication. What could be the reason for this?
I checked the datasheet. SDO/SA0 is connected to gnd so adreess is 5Ch. like stated in firmware/hw_layer/sensors
/lps25.cpp:

Code: Select all

#include "pch.h"

#include "lps25.h"

static constexpr uint8_t addr = 0x5C;
static constexpr uint8_t expectedWhoAmILps22 = 0xB1;
static constexpr uint8_t expectedWhoAmILps25 = 0xBD;
Any hint is much appreciated.
Keep on racing
Andreas
Post Reply