reading temperature takes a long time
The 1 Wire Pi Plus and 1 Wire Pi Zero are a 1 Wire interface for the Raspberry Pi
23/04/2025
Posted by:
opa-rudi
23/04/2025
Posted by:
andrew
I have just tried setting up a clean installation of bookworm on a Pi 5 to test with the w1 subsystem. On my setup reading from a temperature sensor takes approximately 1 second in 12-bit mode and less than a second in 9-bit mode so I don't think it is an issue with the operating system or the w1 subsystem.
Do you have any other devices connected to the Raspberry Pi on the I2C bus that may be holding the bus open or any processes running in Linux that could be slowing it down?
If you have a spare SD card available it may be worth setting up a clean installation of Raspberry Pi OS to test with. That will let you know if the issue is hardware or software related.
If the problem persists on the new Raspberry Pi OS installation it could be a communication issue between the 1 Wire Pi Plus and the sensor. Try checking your wiring to make sure there are no bad connections and check that the wire does not run across any high voltage cables that could induce interference on the 1-Wire bus. Analog.com have a good article on creating reliable 1-Wire networks.
23/04/2025
Posted by:
opa-rudi
24/04/2025
Posted by:
opa-rudi
24/04/2025
Posted by:
andrew
Unfortunately there is no easy way to reduce the time it takes to read from all of the sensors other than reducing the resolution of the temperature sensors to 9 bit mode.
25/04/2025
Posted by:
opa-rudi
Forum Notice – Closure to New Posts
As part of our compliance with the UK’s Online Safety Act, the AB Electronics UK support forum is now closed to new posts and replies.
We understand the importance of continued support for our products, so if you have a technical query or require assistance, please use the Contact Form or consult our Knowledge Base for helpful articles and documentation.
We appreciate your understanding and continued support.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.