-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple DS18B20 working with OctoPrint-Enclosure - anyone got this working? #445
Comments
yes I did this yesterday, walk in the park need to add this below: pi@octopi:~ $ dmesg | grep w1-gpio |
Please be aware with Python 3 DS18b20 don't work. This is what you will get 2021-10-29 12:09:15,377 - octoprint.plugins.enclosure - WARNING - An exception of type IndexError occurred on log_error. Arguments: |
why does it not work on python3 |
@pintail120 so you used the same GPIO pin 4 for both sensors? When it fails I get something similar in my octoprint log to @nfored but I'm not on the upgraded python 3. |
Yes same data pin for both. This is my version of python: PS please do not use my serial I indicated above, you need to find both the serial numbers of your ds18b20 and enter them into enclosure plugin. |
I think only pin 4 is technically a 1 wire pin, much like only a single set of pins can do i2c. |
If you check the link I included in the original post you will see that onewire on other pins is possible. |
using pin 4 is the way to go, with multiple on the same pin, only getting the serial number for each, have you tested it? |
yes, it works perfectly
two ds18b20 on pin 4
very happy
…On Thu, 4 Nov 2021 at 14:25, Vitor de Miranda Henrique < ***@***.***> wrote:
using pin 4 is the way to go, with multiple on the same pin, only getting
the serial number for each, have you tested it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#445 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALPGJZ5U7N4ISNVRD6O5E23UKKJVPANCNFSM5G6LKDHA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Can confirm 2 sensors on PIN 4 working no issues. Not quite what I was trying to do - but no fuss. |
Hi has anyone managed to get multiple DS18B20 working with Octopi/Octoprint?
I got one sensor working correctly by adding the dtoverlay to the boot/config.txt
I want to use a second sensor connected to a different GPIO pin
The following page https://pinout.xyz/pinout/1_wire suggests this is possible atleast with raspberry PI.
dtoverlay w1-gpio gpiopin=4 pullup=0 # header pin 7
dtoverlay w1-gpio gpiopin=17 pullup=0 # header pin 11
This didn't work for me, neither sensor shows up after a reboot. Probably some syntax or something silly
Anyone else succeeded?
The text was updated successfully, but these errors were encountered: