Add STM32G431 Internal Sensor
Budget: $50 – $0 USD
My current STM32G431 firmware already handles sensor-integration tasks and streams data from an external radar sensor.
I now need the MCU’s built-in temperature sensor brought into that same workflow so I can log and display both ambient and component temperatures in real time.
Here is what I’m after:
• Enable and configure the STM32G431 internal temperature peripheral through CubeMX/HAL or direct register access—whatever keeps code size minimal.
• Sample, convert to °C, and push the two resulting values (ambient and the MCU’s own junction temperature) into my existing data structure alongside the radar readings. This is to calibrate the radar measurement wrt temperature
• Update the current UART/CAN publishing routine so the new temperature fields appear without breaking my packet format.
• Comment the code clearly and provide a short note on calibration constants and any compensation formula you apply.
Acceptance will be based on successful compilation in STM32CubeIDE, correct temperature values shown on my console over a 15-minute soak test, and no regressions in the existing radar data flow.
If you’ve worked with STM32 HAL/LL or bare-metal on the G4 series, this should be quick. Feel free to suggest refinements; I’m flexible on implementation details as long as the deliverable meets the criteria above.
I now need the MCU’s built-in temperature sensor brought into that same workflow so I can log and display both ambient and component temperatures in real time.
Here is what I’m after:
• Enable and configure the STM32G431 internal temperature peripheral through CubeMX/HAL or direct register access—whatever keeps code size minimal.
• Sample, convert to °C, and push the two resulting values (ambient and the MCU’s own junction temperature) into my existing data structure alongside the radar readings. This is to calibrate the radar measurement wrt temperature
• Update the current UART/CAN publishing routine so the new temperature fields appear without breaking my packet format.
• Comment the code clearly and provide a short note on calibration constants and any compensation formula you apply.
Acceptance will be based on successful compilation in STM32CubeIDE, correct temperature values shown on my console over a 15-minute soak test, and no regressions in the existing radar data flow.
If you’ve worked with STM32 HAL/LL or bare-metal on the G4 series, this should be quick. Feel free to suggest refinements; I’m flexible on implementation details as long as the deliverable meets the criteria above.