Ryan7777:
Usually you would have all the DS18B20’s sharing a single pin as they all should have unique addresses from the factory. I see that you have the capability for multiple sensors on the same bus by reading the header file but I have them all on their own pins because I couldn’t figure out how to modify the code in the sketch to implement this. Not to beat on you, because I can’t claim to be the comment king of coding and you’re giving your time and energy for free, but commenting your code helps so much for the rest of us! So I guess is there some example code I missed on how this is done or could you please post some?
Please see this project I documented a few years ago where I have 2 temp sensors on the same pin. You have to first get the sensor serial number of each probe as documented in this post:
Having lost a lot of food and beverages when my previous garage refrigerator failed, I have been a little paranoid about it happening again. For the past few years I have been using a temperature monitor that integrates with a La Crosse weather station I bought. But this solution has been very limited and is mostly false positives and has an annual fee. I get alerted via email when my children go raiding the freezer for ice cream as an example.
I recently bought an Arduino and decided to tackle something to alert me based on my criteria instead. Thus the Fridge Monitor was developed. I would assume others in the Community live in areas with warm summers or have young children so I thought I would share this project.
Parts you will need:
Arduino Uno R3 - http://www.amazon.com/dp/B0…
Specifically:
Then in your sketch you will address them:
DeviceAddress freezerProbe = { 0x28, 0xFF, 0x17, 0x99, 0x01, 0x15, 0x02, 0x13 };
DeviceAddress fridgeProbe = { 0x28, 0xFF, 0xD3, 0x6D, 0x01, 0x15, 0x02, 0x51 };