Skip to content

GE1935 Thermistor

NTC thermistor conversion using a lookup table and linear interpolation. Output temperature is stored as degrees C times 1000.

Functions

void ge1935_init(GE1935_t* s, uint8_t port, float v_ref, float r_fixed, Generic_Kalman_Settings_t k)

Initializes the sensor parameters.

void ge1935_update(GE1935_t* s, uint16_t filtered_adc)

Updates the temperature estimate.

float ge1935_decode(uint8_t high_byte, uint8_t low_byte)

Decodes milli-degC into a float degrees C value.

Usage

c
#include "ge1935.h"

void ge1935_example(void) {
    GE1935_t t = {0};
    Generic_Kalman_Settings_t k = {0};
    ge1935_init(&t, 0, 3.3f, 10000.0f, k);
    ge1935_update(&t, 2000);
}

Released under the MIT License.