Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibrate Chip Temp Vsense on startup #19

Open
dzid26 opened this issue Aug 10, 2023 · 0 comments
Open

Calibrate Chip Temp Vsense on startup #19

dzid26 opened this issue Aug 10, 2023 · 0 comments

Comments

@dzid26
Copy link
Owner

dzid26 commented Aug 10, 2023

The temperature sensor output voltage changes linearly with temperature. The offset of this
line varies from chip to chip due to process variations (up to 45 °C from one chip to another). This is extreme but possible. In reality those chips seem pretty consistent

Nevertheless, calibration can be performed using temperature values from TLE5012 on startup
stash@{4}

Later TLE5012 temperature could be read all the time and compared against the STM32 temperature or maximum taken, but this has to be handled properly so that extra SPI usage doesn't cause conflict or delays.

To calibrate STM32 VSENSE these variables have to be adjusted

const float t0 = 35.0f;
const float adcVoltRef = 1.325f; //! calibrate at some t0

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant