3 months ago.
Detection of tempertaure sensor DS1820 on a STM DISCO-L072CZ-LRWAN1
Hi, I have some issue with detecting this sensor. I tryed different libraries: https://os.mbed.com/users/hudakz/code/DS1820/#b593a82ce790 https://os.mbed.com/users/Sissors/code/DS1820/
I had a long research about, and seems that the problem is on the MBED library for I/O on STM board since it is slow in changing between read and write mode on the single (One Wire) Digital pin of the sensor. https://os.mbed.com/questions/69344/Detection-problem-of-a-DS1820-on-a-NUCLE/ https://os.mbed.com/questions/83506/Failure-to-read-with-temperature-sensor-/
I found that a possible solution is to try increasing or decrising the time in the reading function in the library for DS1820, but for me did not work. I also found that is possible to replace the mbed library for IO with FASTIO : https://os.mbed.com/users/Sissors/code/FastIO/ But unfortunately did not work out. Someone else, that maybe is facing my same problem, could help me? Thanks
2 months, 3 weeks ago.
I try this library with NUCLEO-L476RG board and works wrong. My app try 3 times with 1s delay after each try to detect sensor, but I must reset 5-10 times Nucleo board so that the sensor can be detected. But even if sensor is detected, I can read temperature only about 1 in 20-30 attempts due to CRC errors.
To post an answer, please log in.