2018-03-12 12:09 PM
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
2018-03-12 12:34 PM
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
2018-03-12 12:50 PM
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