Jump to content

Enabling 1wire support rock64


marki2239

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines