GPIO Conflicts

From HiveTool
Revision as of 05:19, 20 April 2019 by Paul (talk | contribs) (Witty Pi Mini Realtime Clock and Power Management)
Jump to: navigation, search

Hive Interface Board

HiveTool uses the default Pi GPIO assignment. ie Pins number 3 and 5 are the I2C bus, Pin number 7 is the 1-Wire bus, pins 8 and 10 are used for the serial console, etc.

A table of the GPIO pins used by Hivetool sensors is on the GPIO Pinout page.

If the sensors are not connected and the drivers are not enabled, there should be no conflicts with other products that use the same GPIO pin.

UPS PIco - Uninterruptible Power Supply

UPS PIco - Uninterruptible Power Supply (HV3.0B+) conflicts with the DHT22s which are use GPIO27 (Pin13) & GPIO22 (Pin15).

The UPS PIco Uses the Following Pins

  • Serial Port (Firmware Updates): GPIO14 (Pin8) & GPIO15 (Pin10)
  • i2c Port: GPIO2 (Pin3) & GPIO3 (Pin5)
  • Pulse Train: GPIO27 (Pin13) & GPIO22 (Pin15)

It also uses the I2C addresses 68-6f:

$ i2cdetect -y 1
    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- 68 69 6a 6b 6c 6d 6e 6f 
70: -- -- -- -- -- -- -- --

The UPS PIco is reported to work with Hivetool if you do not use the DHTxx sensors (which use GPIO pins 13 1nd 15) and do not use the DS3231 RTC (which uses I2C address 68).

Witty Pi Mini Realtime Clock and Power Management

Witty Pi Mini uses GPIO-4, GPIO-17, GPIO-2(SDA 1) and GPIO-3(SCL 1). The usage of GPIO-4 and GPIO-17 are customizable.

GPIO-4 and GPIO-17 are used by the default 1-Wire bus and the LED. Since the Witty Pi RTC can be customized to use other GPIO pins, that would be the best solution. If however, you insist on using the default Witty Pi pin assignment, the LED driver should be disabled and the LED removed.

The Witty Pi uses the 1-Wire bus to access it's internal DS3231 RTC. This should not interfere with other sensors that use the 1-Wire bus (such as the Lux sensor) as long as they do not use address 68.

If using the Witty Pi, Do not plug a DS3231 into the HiveTool Hive Interface board header as the 2 RTCs would conflict and there would be no point in pluggin a DS3231 into the Hive Interface board as the Witty Pi already has one.