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

Missing 1 wire driver for thermal sensor/s (DS18B20) #51

Closed
ghost opened this issue Oct 29, 2021 · 6 comments
Closed

Missing 1 wire driver for thermal sensor/s (DS18B20) #51

ghost opened this issue Oct 29, 2021 · 6 comments
Assignees

Comments

@ghost
Copy link

ghost commented Oct 29, 2021

For thermal sensors, we need dtoverlay=w1-gpio in /boot/config.txt.
Adding this line in the config file and loading the module via modeprobe i.e., sudo modprobe w1-gpio and sudo modprobe w1-therm must show the sensor as 28-xxxxxxxx in /sys/bus/w1/devices, which is not the case for Reswarm OS.

The ReswarmOS does not show any device at all in the /sys/bus/w1/devices folder. After going through the posts I came to know that even if the sensor is not attached to the Pi, after adding dtoverlay=w1-gpio in /boot/config.txt a device 00-xxxxxx, dummy/temporary devices appear in the /sys/bus/w1/devices.

Here are the steps I am following to make the sensor appear in the /sys/bus/w1/devices directory:

  1. At the command prompt, enter sudo nano /boot/config.txt, then add this to the bottom of the file:

dtoverlay=w1-gpio

  1. Exit Nano, and reboot the Pi with sudo reboot

  2. Log in to the Pi again, and at the command prompt enter sudo modprobe w1-gpio

  3. Then enter sudo modprobe w1-therm

  4. Change directories to the /sys/bus/w1/devices directory by entering cd /sys/bus/w1/devices

  5. ls

  6. In Raspbian these two directories are displayed 28-000006637696 and w1_bus_master1.

@ghost
Copy link
Author

ghost commented Oct 29, 2021

@mario-fink

@mario-fink mario-fink self-assigned this Oct 29, 2021
@mario-fink
Copy link
Contributor

an updated image for the Pi Zero W including the w1-gpio dtb and loading the kernel modules w1-gpio and w1-therm can be found at https://storage.googleapis.com/reswarmos/raspberrypi/ReswarmOS-0.4.3-raspberrypi0w.img.gz

@ghost
Copy link
Author

ghost commented Nov 1, 2021

Hi Mario, ich habe den Sensor nochmal mit beidem Pi0 und 3 probiert und umgesetzte alle mögliche Lösungen, die ich auf internet gefunden habe. Dan nach vergleicht ich auch ReswamOS und Raspbian Config Dateien und ich galube, dass wir Probleme bei dtoverlay=w1-gpio haben. Den Befehl dtoverlay=w1-gpio aktiviert 1 wire module und zeigt w1_bus_master1 im /sys/bus/w1/devices trotz der Tatsache, dass den Sensor mit dem Pi eingeschlossen ist oder nicht. Das heißt den Ordner wird immer verfügbar und get erst nur weg wenn wir dtoverlay=w1-gpio von /boot/config.txt weg machen. Nur bei diesem Fall, wird ls im /sys/bus/w1/devices nicht zeigen. Auf der anderen Seite (ReswamOS), egal ob wir dtoverlay=w1-gpio in der config.txt Dateien schreiben oder nicht, wird den Ordner /sys/bus/w1/devices immer leer. Auch nicht w1_bus_master1 Ordner ist verfügbar. Es kann sein dass irgendwie den Befehl dtoverlay=w1-gpio funktioniert nicht richtig weil, wenn er richtig funktioniert hatte, hätten wir schon mindestens w1_bus_master1 Ordne gesehen.

mario-fink added a commit that referenced this issue Nov 4, 2021
…ice-tree to fix missing 1-wire devices => issue #51
DewitteRuben pushed a commit that referenced this issue Mar 2, 2022
…ice-tree to fix missing 1-wire devices => issue #51
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

1 participant