Temperature monitoring on B-G431B-ESC1

Ok, I found te relevant line of code. To read the raw temperature value on the B-G431B-ESC1, use:

float Temp = _readADCVoltageInline(A_TEMPERATURE, currentSense.params);

where currentSense is your initialized LowsideCurrentSense object. Likewise you can use

float VBus = _readADCVoltageInline(A_VBUS, currentSense.params);            
VBus = VBus * 10.7711;	

to read the bus voltage. I’ll be back home in a week, then I can post the complete conversion to e.g. Celsius.

/Chris

3 Likes