I’m currently using a Rpi3 with SenseHAT and with three ds18b20 temperature sensors using GPIO4 (pin7) to monitor the temperature in the baby carriage. As it is digital, it works awesome on the 1-wire.
Trying to build a smaller LiPo powered rig using a RPi Zero W + Enviro pHAT + Zero LiPo + my three ds18b20 temperature sensors. According to pinout.xyz both the Enviro pHAT (for LEDs?) and the Zero LiPo (for battery low signal) are using GPIO4 (pin7) as well as my ds18b20 sensors.
Can I hook it all up to GPIO4?
If that doesn’t work, any suggestions?
I don’t really need the LEDs, the other sensors yes, so I can remove the LEDs from the library altogether. Is there any check/requirement by the Enviro pHAT that GPIO4 needs to be connected or can I safely leave it not connected?
Moving the 1-wire bus is a great idea, which new pin would be the best choice (or better yet, gives the least issues) ?
If you remove the LEDs code from Enviro pHAT, it should work fine. Actually it can’t tell whether or not you’ve got BCM4 connected, but if you left the code in the library it would mess up the pin states and break Zero LiPo’s functionality anyway.
I suspect you can probably even leave the LEDs connected, the worst they’ll (potentially) do is light very, very dimly.