Enthernet Code
DIIDevHeads IoT Integration Server
•Created by Dtynin on 6/27/2024 in #middleware-and-os
working on a project that involves monitoring temperature using an LM35 sensor with an STM32F4
That's right , @Dtynin You need to take into account the reference voltage of your ADC and its resolution. For example, if you are using a 12-bit ADC with a reference voltage of 3.3V, the conversion should look something like this:
This ensures that the raw ADC value is properly converted to the voltage output by the LM35 and then to the corresponding temperature.
12 replies