Rikkert-RS / VenusOS-TemperatureService

Temperature and Humidity d-bus services for Victron GX
BSD 3-Clause "New" or "Revised" License
19 stars 8 forks source link

Two or more DS18B20 temp sensors #7

Closed twaldenmeier closed 1 year ago

twaldenmeier commented 1 year ago

Can I add two or more DS18B20 temp sensors and they will show up on the console?

Rikkert-RS commented 1 year ago

Hello, yes it is a Bus system

look at this Post: https://github.com/Rikkert-RS/VenusOS-TemperatureService/issues/5#issuecomment-1591694233

twaldenmeier commented 1 year ago

Thank you! I will give it a try!

twaldenmeier commented 1 year ago

I have connected a second sensor but I am not sure if I configured the config.txt correct since it does not show up on the console. The custom name disappeared and this is what it looks like with even two sensors connected

image

This is the change I made ... second sensor isconnected to Data Pin 4 (GPIO). image

Any idea what I did wrong?

Rikkert-RS commented 1 year ago

Yes this is wrong 1Wire is a bus system you need only 1 Pin for that. Do you have read my links posted before? Delete the line with pin 26 in the config.txt

You have to connect the second or more Sensors in parallel to the first one. Data pin is for all Sensors GPIO 4 in your case.

image

twaldenmeier commented 1 year ago

Thank you!

I think I did not understand what you meant in the other comment. The pictures explains it pretty well. Since I have not done this so far - is there a specific product to use to accomplish his? Like one of those breakout boards? Like this: https://amzn.to/3NBeJk1

On Sun, Jun 18, 2023 at 3:55 PM Rikkert-RS @.***> wrote:

Yes this is wrong 1Wire is a bus system you need only 1 Pin for that. Do you have read my links posted before? Delete the line with pin 26 in the config.txt

You have to connect the second or more Sensors in parallel to the first one. Data pin is for all Sensors GPIO 4 in your case.

[image: image] https://user-images.githubusercontent.com/96136114/246695438-3ff26be3-acbc-4c98-9dad-209a6094baa2.png

— Reply to this email directly, view it on GitHub https://github.com/Rikkert-RS/VenusOS-TemperatureService/issues/7#issuecomment-1596296044, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAQNFYXTU7L4PS2IEMAKGQDXL6BNBANCNFSM6AAAAAAZIS2F2Q . You are receiving this because you authored the thread.Message ID: @.***>

Rikkert-RS commented 1 year ago

There are many possibilities, wire yourself or various boards