Raspberry Pi Pinout

This page needs translating, can you help?

Capacitive Touch HAT

This Raspberry Pi add-on board provides 12 capacitive touch inputs and all the logic to read them over a simple I2C communication bus.

Baded on the MPR121 chip, this HAT allows you to create electronics that can react to human touch, with up to 12 individual sensors.


from Adafruit_MPR121 import MPR121
from time import sleep

cap = MPR121.MPR121()

last_touched = cap.touched()
while True:
    current_touched = cap.touched()
    for i in range(12):
        pin_bit = 1 << i
        if current_touched & pin_bit and not last_touched & pin_bit:
            print("{} touched!".format(i))
    last_touched = current_touched


  • fabriqué par Adafruit
  • carte au format HAT
  • identification produit par EEPROM
  • alimentation 3v3
  • 2 broches GPIO actives
  • communication par bus I2C
  • 0x5A: MPR121
  • plus d'info
  • lien GitHub
  • achat
Capacitive Touch HAT