Hi Hannes! Am Donnerstag, 21. März 2019 17:39:06 UTC+1 schrieb Fohnbit: > > 1. How many GPIOs I can use for 1-wire? Right now I enabled Pin 9.12 for > 1-wire. Can I add a second or third pin to made several own lines? > 2. How many 1-Wire I can use on one pin? I read on a website about up to > 10 ... but this is not very much. >
1. I don't know. 2. Last time I checked the W1 kernel driver in 2015 it could handle only one sensor per pin (Dallas temp sensor). For my aim this wasn't sufficient. That's why I made my own driver using a PRU to handle the tree-state pin with accurate timing. The driver is called libpruw1 <http://users.freebasic-portal.de/tjf/Projekte/libpruw1/doc/html/> and provides all features to handle multiple sensors at one pin. It also provides a bus monitoring feature to log the bus state during operation. That's helpful to debug wiring issues. The W1 bus is using an 8 byte identifier, so the number of sensors at one pin is (nearly) unlimited. In case of Dallas temp sensors the sensor needs 750 mSec to sample, and the bus needs approx. 10 mSec to read one sample -> for 10 sensors you'll need 750 + 10x10 = 850 mSec for a cycle. Regards -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/56a28d26-b2c6-4fdb-b24d-823750d9574c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
