1-wire/counter/RTC Pi HAT (short tail)
The I2C counter and 1-wire board HAT is for use with a Raspberry PI. It provides a 1-wire bus connection, able to support multiple 1-wire devices and brought out onto an RJ12 socket. 5v power is also fed to the 1-wire bus so devices needing power are supported as well as those that can use parasitic power. As well as the 1-wire ports, 6 x 16bit counter ports are also provided, each able to count pulses up to 1000pps. Pulse counter inputs are connected via screw terminals and are provided with 2K2 pullups to allow use with open drain (and metallic) inputs. +5V and ground is also brought out on the board, via screw terminals for ease of connection of external circuitry. The counter inputs can be set through software to be standard TTL or schmitt trigger, providing a reliable source from slowly moving input signals. Counter inputs can be individually set through software to be either raw or debounced.
As a further facility a battery backed up real time clock is provided which can be used to provide a real time source for situations where the host computer has no internet connection. Battery life is expected to be greater than 10 years.
Three LEDs indicate I2C activity (blue), pulse activity (orange) and keep-alive (green) but can be accessed through the board registers to be used as user defined indicators.
A python library is available to access the registers of the counters and to read and clear the counters themselves as well as set the input type and the debounce facility. The 1-wire ports are accessible as part of the built-in 1-wire package supplied with the raspbian software build, as is the real time clock facility.
As a true Pi HAT board it simply plugs onto the extension pins of a B+ and onward. The built-in 256Kbit flash EEPROM identifies the board and self-configures it so that it is available for use without any special configuration. Special programming on the onboard microcontroller handles the I2C clock stretch issues to be found on some versions of the PI. A jumper pair allows shifting of the I2C address for the counter system to any one of 4 different addresses to avoid address clashes. Mounting pillars and screws are included in the package.
- 1 x 1-wire ports with 5V power, brought out to an RJ12 socket, with ESD protection.
- 6 x 16-bit counter inputs, brought out to screw terminals with ESD protection.
- Real time clock, with battery.
- I2C bus connection
- 3 x LED (green, yellow and blue) accessible through software
- Python library for accessing board registers and characteristics
- Solar power and heat pump monitoring systems
- Home automation
- Data centre monitoring
Software and manuals
Software and manual can be downloaded from the links below