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
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:
These sensors are long-established and widely-used - there are many example to be found on the interwebs
[NEW!] READ THIS FIRST! - 8052.com
I use UART for this purpose. Just followed the MAXIM APP NOTE. Tested with STM32F103C8 (blue pill board):
Using a UART to Implement a 1-Wire Bus Master - Tutorial - Maxim
Retrieving data ...