Skip to content
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

DS18B20 1-Wire with longer cable is not working #18

Open
themuck opened this issue Oct 27, 2021 · 2 comments
Open

DS18B20 1-Wire with longer cable is not working #18

themuck opened this issue Oct 27, 2021 · 2 comments

Comments

@themuck
Copy link

themuck commented Oct 27, 2021

Hey,
i try to use the dragino lsn50 with a DS18B20 and a ~10m J-Y(ST)Y cable. But it looks like there are timing issues in the software with a higher cable capacity? So with the cable extension the lsn50 do not detect the DS18B20... but 1-wire can go ub to 100m

https://www.maximintegrated.com/en/design/technical-documents/tutorials/1/148.html
https://www.maximintegrated.com/en/design/technical-documents/app-notes/1/126.html

@DominusFulguris
Copy link

DominusFulguris commented Oct 27, 2021 via email

@themuck
Copy link
Author

themuck commented Oct 28, 2021

Hey, sure i tested the stuff with some parallel resistors. and it works only with 1k parallel -> ~830ohm. And i use 3.3V Power.

But i have no issues with an ESP32 Device and #include <OneWire.h>, #include <DallasTemperature.h> libs with 4.7k and 3.3V. So when the timing and programming is right it works! And with longer cable and more than one sensor!

Go down to 830ohm is in my opinion to low, in case of the 4mA drive current. And with another piece of software it works. We talk about 10m with one sensor! Not 100m or more ;), so i think there is something wrong in the 1-Wire implementation. Or it can be much better!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants