6 years, 1 month 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?

1 Answer

6 years, 1 month ago.

Hi there,

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