Component guide · Intermediate · 4 min read
Raspberry Pi Industrial I/O and DAQ HATs

Digilent MCC 118, 134 and 152, ADS1263, AD/DA, WIN PiHAT 8AI, 8AO, 16DI, 8DO, Automation HAT and Relay HATs
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
These HATs turn a Raspberry Pi into a small data logger or controller. Digilent MCC boards measure voltages and thermocouples with lab-grade accuracy, the ADS1263 and AD/DA boards read precise analog signals, WIN PiHATs handle 0-10V, 4-20mA and 24V digital signals, and relay and Automation HATs switch lamps, pumps and valves.
Key specs at a glance
- Analog in
- 8 ch 12-bit (MCC 118) to 10 ch 32-bit (ADS1263)
- Thermocouple
- 4 channels J, K, T, E, R, S, B, N (MCC 134)
- Analog out
- 0-10V or 4-20mA (8AO, MCC 152)
- Digital
- 24V isolated inputs and MOSFET outputs
- Relays
- 3 or 8 channels, 250V AC contacts
- Interface
- SPI or I2C; several boards stack
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1Digilent MCC 118 Voltage Measurement DAQ HAT for Raspberry Pi₹11,939
Option 2Digilent MCC 134: Thermocouple DAQ HAT for Raspberry Pi₹16,659
Option 3Digilent MCC 152 Voltage Output & DIO HAT for Raspberry Pi₹25,162
Option 4Waveshare High-Precision AD HAT ADS1263 10-Ch 32-Bit ADC₹3,779
Option 5Waveshare Raspberry Pi High-Precision AD/DA Board₹4,228
Option 6WIN-PIHAT-8AI 8-Ch Analog Input HAT for Raspberry Pi₹8,391
What the Raspberry Pi industrial I/O, relay and DAQ HATs is
Pi industrial I/O and DAQ HATs add isolated digital inputs, relays, 4 to 20 mA inputs, 0 to 10 V analog and thermocouple channels to a Raspberry Pi for control and data logging.
Digilent MCC HATs stack up to eight on one Pi and come with a full Python library. WIN PiHATs use industrial levels and isolation, so they connect straight to PLC-style sensors and actuators.
Relay contacts can switch mains, but wire mains only inside a proper enclosure, with fuses, and with help from someone qualified.
Raspberry Pi industrial I/O, relay and DAQ HATs pinout
The pins on the Raspberry Pi industrial I/O, relay and DAQ HATs and what each one does.
| Pin | Function |
|---|---|
| I2C (GPIO2, 3) | Most sensor, ADC, servo and expander chips |
| SPI (GPIO8 to 11) | Fast ADCs, displays and DAQ HATs |
| GPIO | Buttons, relays, motor direction and enable pins |
| 5V / 3.3V / GND | Power from the Pi or the HAT's own input |
| Screw terminals | Field wiring for sensors, 4-20mA loops and relays |
- I2C (GPIO2, 3)
- Most sensor, ADC, servo and expander chips
- SPI (GPIO8 to 11)
- Fast ADCs, displays and DAQ HATs
- GPIO
- Buttons, relays, motor direction and enable pins
- 5V / 3.3V / GND
- Power from the Pi or the HAT's own input
- Screw terminals
- Field wiring for sensors, 4-20mA loops and relays
Wiring the Raspberry Pi industrial I/O, relay and DAQ HATs
Keep sensor wiring away from relay and mains cables. Set each stacked board to a different address with its jumpers.
| Raspberry Pi industrial I/O, relay and DAQ HATs pin | Connection | Note |
|---|---|---|
| Analog input | Signal to AIN, return to AGND | Check the input range |
| 4-20mA | Loop through the AI terminal | Use the board's shunt |
| Relay | COM and NO in series with the load | Fuse mains loads |
- Analog input
- Connection:
- Signal to AIN, return to AGND
- Note:
- Check the input range
- 4-20mA
- Connection:
- Loop through the AI terminal
- Note:
- Use the board's shunt
- Relay
- Connection:
- COM and NO in series with the load
- Note:
- Fuse mains loads
Example code
For the ADS1263 and AD/DA boards use Waveshare's Python examples; for WIN PiHATs use their I2C register map. The MCC 134 needs thermocouple type set with tc_type_write.
# pip install daqhats (Digilent library, enable SPI first)
from daqhats import mcc118, OptionFlags
board = mcc118(0) # address 0
for ch in range(8):
v = board.a_in_read(ch, OptionFlags.DEFAULT)
print(f"CH{ch}: {v:.3f} V")Setup and tuning
check address jumpers so several HATs can stack on one Pi.
use isolated inputs for 24 V field signals and keep field ground separate from the Pi.
pick the right input range (4 to 20 mA, 0 to 10 V) for each sensor.
install the maker's Python library and test each channel.
use a good 5 V supply; relays and outputs can need extra power.
What you need
Shop this list18 of 18 found in our store · ₹1,09,567
Digilent MCC 118 Voltage Measurement DAQ HAT for Raspberry Pi: the part this guide coversDigilent MCC 118 Voltage Measurement DAQ HAT for Raspberry Pi₹11,939
Digilent MCC 134: Thermocouple DAQ HAT for Raspberry Pi: another version this guide coversDigilent MCC 134: Thermocouple DAQ HAT for Raspberry Pi₹16,659
Digilent MCC 152 Voltage Output & DIO HAT for Raspberry Pi: another version this guide coversDigilent MCC 152 Voltage Output & DIO HAT for Raspberry Pi₹25,162
Waveshare High-Precision AD HAT ADS1263 10-Ch 32-Bit ADC: another version this guide coversWaveshare High-Precision AD HAT ADS1263 10-Ch 32-Bit ADC₹3,779
Waveshare Raspberry Pi High-Precision AD/DA Board: another version this guide coversWaveshare Raspberry Pi High-Precision AD/DA Board₹4,228
WIN-PIHAT-8AI 8-Ch Analog Input HAT for Raspberry Pi: another version this guide coversWIN-PIHAT-8AI 8-Ch Analog Input HAT for Raspberry Pi₹8,391
PiHAT-8AO 8-Ch Analog Output HAT for Raspberry Pi 4/CM4: another version this guide coversPiHAT-8AO 8-Ch Analog Output HAT for Raspberry Pi 4/CM4₹6,817
WIN-PIHAT-16DI 16-Ch Digital Input HAT for Raspberry Pi 4/CM4: another version this guide coversWIN-PIHAT-16DI 16-Ch Digital Input HAT for Raspberry Pi 4/CM4₹5,637
WIN-PIHAT-8DO 8-Ch Digital Output HAT for Raspberry Pi: another version this guide coversWIN-PIHAT-8DO 8-Ch Digital Output HAT for Raspberry Pi₹4,851
Wittelb PIHAT 8-Channel MOSFET Digital Output HAT: another version this guide coversWittelb PIHAT 8-Channel MOSFET Digital Output HAT₹4,719
Pimoroni Automation HAT for Raspberry Pi: another version this guide coversPimoroni Automation HAT for Raspberry Pi₹3,213
Pimoroni Automation HAT Mini for Raspberry Pi: another version this guide coversPimoroni Automation HAT Mini for Raspberry Pi₹2,209
Waveshare 3-Channel Relay HAT for Raspberry Pi 3/4: another version this guide coversWaveshare 3-Channel Relay HAT for Raspberry Pi 3/4₹1,199
Waveshare Raspberry Pi 8-Channel Relay Expansion Board: another version this guide coversWaveshare Raspberry Pi 8-Channel Relay Expansion Board₹1,999
Waveshare 3-Ch Relay Expansion Board for Jetson Nano: another version this guide coversWaveshare 3-Ch Relay Expansion Board for Jetson Nano₹1,529
Raspberry Pi 4 Model B (4 GB): works with all 40-pin HATsRaspberry Pi 4 Model B 1GB RAM₹4,476Closest match, check the specs
Raspberry Pi 5 (4 GB): the board the HAT stacks onGeekworm Raspberry Pi 5 PoE HAT 802.3af/at (USB-C)₹2,659Closest match, check the specs
K-type thermocouple probe: for the thermocouple HATK-Type Thermocouple Probe₹101
Alternatives and when to choose them
- ADS1115 ADC: cheap 16-bit ADC.
- 5V relay modules: single relays.
- RS485 and CAN HATs: industrial buses.
Common mistakes to avoid
- Duplicating addresses on stacked HATs.
- Mixing field ground and Pi ground.
- Using a Pi for safety functions.
- Switching mains outside an enclosure.
Frequently asked questions
Can a Raspberry Pi read 4 to 20 mA sensors?
Yes, with a DAQ HAT that has 4 to 20 mA inputs.
How many HATs can I stack?
Usually up to 8 per type, set with address jumpers.
Is a Pi suitable for industrial control?
For monitoring and simple control yes; safety functions need certified PLCs.
Why are analog readings noisy?
Ground loops or unshielded cables; use isolation and shielded wiring.
Can relays switch mains loads?
Within their rating and in a proper enclosure wired by a qualified person.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


