-
Notifications
You must be signed in to change notification settings - Fork 29
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
Your program is not working today on RPI4 #18
Comments
Hi Bagunda, long time that I didn't check the bitbanging with the newest O.S. step by step If you are using the 32 bits O.S. use DS18B20Scan 4 - gcc -lrt -o DS18B20Scan DS18B20Scan.c If no error you could check if the program is compiled by using the help
To test it connect a DS18B20 using any GPIO. The best way to test is to not use GPIO4 because of 1 wire. Now if you do This is my old Pi result using GPIO4 (1-wire disabled).
On 64bits O.S. you need to use the DS18B20Pi5Scan (gpiod) 3 - sudo apt-get install gpiod libgpiod-dev libgpiod-doc (reboot after) If no error you could check if the program is compiled by using the help
Don't forget to add a pull up resistor around 4k7 to the data pin. regards, |
When enabling 1-wire via raspi-config, 5 sensors are visible, but not stably. I turn off 1-wire via raspi-config, then reboot... 64bits O.S.
|
Ok looks like that the cable has a lot of capacitance. Try to delay the response pulse use 10 or 15 microsecond instead of 2 DS18B20Pi5Scan.c line 195 (ReadBit) and line 221 ReadByte()
And change the ReadByte() also
|
It was not easy to understand what to do to start the program and how the programs are arranged.
Compiled
DS18B20Pi5Scan
DS18B20Scan
Disabled 1-wire support via raspi-config.
But left the DS18B20 on the same GPIO 4.
Rebooted.
Launched the program
./DS18B20Pi5Scan -gpio 4
.Silence...
Launched the program
./DS18B20Scan -gpio 4
.Silence...
The text was updated successfully, but these errors were encountered: