简体   繁体   中英

LIS3DH temperature acquisition

I'm trying to get temperature from LIS3DH sensor (accelerometer with integrated temperature sensor)

I'm using Particle electron board that contain that sensor.

The datasheet provide too few information

set TEMP_EN and ADC_EN from TEMP_CFG_REG register.

I read value that fluctuate continuously and does not correspond, to temperature.

Do you know which register I have to consider to get it works ?

The datasheet states that to connect ADC3 to the temperature sensor, set both TEMP_EN and ADC_EN of the TEMP_CFG_REG register to 1.

Then read OUT_ADC3_L to get the raw value and use the Temperature sensor characteristics table for conversion.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM