I always wire them like this and that works a treat. I believe you can power OneWire devices off of the data line, but I never really got it to work and it wasn't worth the hassle for me.
Same, but wondered if any pin on rpi had built in pull-ups
@Stonehedge started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
I always wire them like this and that works a treat. I believe you can power OneWire devices off of the data line, but I never really got it to work and it wasn't worth the hassle for me.