Multiple DS18B20 Temperature sensor at the same GPIO pin - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1) +--- Forum: DIY Project (https://www.kincony.com/forum/forumdisplay.php?fid=3) +--- Thread: Multiple DS18B20 Temperature sensor at the same GPIO pin (/showthread.php?tid=4081) |
Multiple DS18B20 Temperature sensor at the same GPIO pin - tamibandy - 01-04-2024 Hello, On Kincony A8 controller, I made a code for reading multiple temperature sensor with one GPIO(14) pin (DS18B20 type). I made the reading on the second core of the ESP32's processor, to don't make any delay in the normal program cycle. In the code is managed the multiple reading to can assign every DS18B20 temperature sensor to a fix variable by unique code of the DS18B20. Here I will attach a short code about it. I didn't uploaded all of the code because there is a lot of other things in it too. Maybe if you want to use, need to do some other implementations too. But for a start it is perfect. Code: #include <DS18B20.h> RE: Multiple DS18B20 Temperature sensor at the same GPIO pin - admin - 01-05-2024 thanks for your effort. |