cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 external temperature sensor

john north
Associate
Posted on March 12, 2018 at 20:09

Hello, 

I have stm32f4 discovery board and i will connect dallas DS18S20 temperature sensor to it. I am wondering what would be the easiest way to read the temperature of the sensor ? I dont even know where to begin. Thank you

2 REPLIES 2
Posted on March 12, 2018 at 20:34

I dont even know where to begin

Reading the datasheet for the 

DS18S20

  would be the place to begin!

Its 1-Wire(TM) communication protocol is fully described in the datasheet.

One should also visit the manufacturer's website for other supporting materials - Application Notes, Examples, Reference Designs, etc:

https://www.maximintegrated.com/en/products/analog/sensors-and-sensor-interface/DS18S20.html

 

These sensors are long-established and widely-used - there are many example to be found on the interwebs

http://www.8052.com/forum/read/76410

  

http://www.lmgtfy.com?q=1-Wire+STM32

 
Posted on March 12, 2018 at 20:50

I use UART for this purpose. Just followed the MAXIM APP NOTE. Tested with STM32F103C8 (blue pill board):

https://www.maximintegrated.com/en/app-notes/index.mvp/id/214