Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
4 years, 4 months ago.
Interfacing LM35 and other sensors with FRDM-KL25Z
How to interface an LM35 with FRDM-KL25Z...........If possible give a detailed procedure ..................And also are there any resistors/capacitors needed? I have got to connect a temp sensor, vibration sensor, and a smoke sensor. Can the FRDM handle them all? I keep getting random values like 35 point something, 45.66 and so on for any of these components I connect. Also, do I need any library files for these components in my code?
4 years, 3 months ago.
I would try instantiating the pin your LM35 is connected to on your board as an
AnalogIn component. Examples and API documentation for
AnalogIn can be viewed here: https://os.mbed.com/docs/v5.7/reference/analogin.html
- Jenny, team Mbed