Open iz8mbw opened 1 year ago
@popcornmix @pelwell
Just made a test: I changed from 3V3 to 5V the power supply to pin GPIO4 and now 1-Wire works (always using a 4.7khom resistor between GPIO4 and power supply). Well, why now 3V3 is not more enough? Sensors are more precise at 3V3 respect to 5V.
(the cable that connect the 1Wire sensor to Raspberry Pi is only 10 cm long)
I suspect the issue is the host isn't driving the bus high to charge the capacitor at the correct time. This may have worked in the past by luck or the timing just being slightly different.
See https://www.analog.com/media/en/technical-documentation/data-sheets/DS18S20-PAR.pdf Page 3.
On Tue, 21 Mar 2023 at 18:31, Fabio @.***> wrote:
Just made a test: I changed from 3V3 to 5V the power supply to pin GPIO4 and now 1-Wire works (always using a 4.7khom resistor). Well, why now 3V3 is not more enough?
— Reply to this email directly, view it on GitHub https://github.com/raspberrypi/firmware/issues/1796#issuecomment-1478398672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVVFIUOSAT3ZHP34FISY33W5HXYLANCNFSM6AAAAAAWCZ2RGY . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I don't know if this can the be the motivation. With 3.3 V I'm unable to read sensor temperature but as I wrote the 1-Wire bus can see the chip, can see the serial number and can see the chip resolution but when I interrogate it for temperature it answer with 85000 (85 °C). I'll try to change the resistor from 4.7 kohm to 3.9 kohm and switch back from 5 V to 3.3 V.
Did you see the bit in the link which says the temperature conversion takes extra current and so needs a stronger pull so they recommend that the host drives the bus high to provide the power?
On Wed, 22 Mar 2023, 08:05 Fabio, @.***> wrote:
I don't know if this can the be the motivation. With 3.3 V I'm unable to read sensor temperature but as I wrote the 1-Wire bus can see the chip, can see the serial number and can see the chip resolution but when I interrogate it for temperature it answer with 85000 (85 °C). I'll try to change the resistor from 4.7 kohm to 3.9 kohm and switch back from 5 V to 3.3 V.
— Reply to this email directly, view it on GitHub https://github.com/raspberrypi/firmware/issues/1796#issuecomment-1479071600, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVVFIX4R4EPRYXLUFZTIBTW5KXFVANCNFSM6AAAAAAWCZ2RGY . You are receiving this because you commented.Message ID: @.***>
That's what the w1_gpio driver attempts to do, by forcing the pin to be an output driven high for a while.
That's good. It might be worth checking the timing is correct.
On Wed, 22 Mar 2023 at 13:13, Phil Elwell @.***> wrote:
That's what the w1_gpio driver attempts to do, by forcing the pin to be an output driven high for a while.
— Reply to this email directly, view it on GitHub https://github.com/raspberrypi/firmware/issues/1796#issuecomment-1479547494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVVFIXK2JAXIBXPPFE5R43W5L3G3ANCNFSM6AAAAAAWCZ2RGY . You are receiving this because you commented.Message ID: @.***>
If you need test on new kernel/firmware I can do it.
Hello. It seems 1-Wire in Parasite Power doesn't work again, reports always 85 degrees.
Some info for you:
As you can see
w1
reports 85 degrees: