Skip to main content
john north
Associate
March 12, 2018
Question

STM32 external temperature sensor

  • March 12, 2018
  • 2 replies
  • 1264 views
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

    This topic has been closed for replies.

    2 replies

    Andrew Neil
    Super User
    March 12, 2018
    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

     
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    Bogdan Golab
    Lead
    March 12, 2018
    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