marki2239 Posted July 3, 2018 Posted July 3, 2018 Is there a guide somewhere how to enable 1wire support on a rock64 using stretch or xenial. Im trying to read a dallas DS18b20 sensor. I see some examples for other boards but cant figure out how to apply them to the Rock64. Thanks
chrisf Posted July 3, 2018 Posted July 3, 2018 If you want reliable, go for a 1wire to i2c bridge like the ds2482 or something. Bit banging timing sensitive protocols in a multi user OS is never a good idea. It wastes CPU time with spin waits and if the process gets pre-empted it will probably fail.
marki2239 Posted July 3, 2018 Author Posted July 3, 2018 Thanks! I'll get some and check it out. Apperciate the help!
chrisf Posted July 3, 2018 Posted July 3, 2018 It then gives you the freedom of using a w1 kernel driver or doing it all in userspace. Being i2c, it's a master clocked protocol, so there are no timing issues even if you don't have a hardware i2c port available. OWFS supports the Maxim i2c chips too
Recommended Posts