Varaldur
Posts: 1
Joined: Wed Mar 02, 2016 4:34 pm

MPR121 capacitive touch hat in rapsberry

Wed Mar 02, 2016 4:40 pm

Hi
I would like creat a program with tkinter for use my raspberry hat mpr121 but when I try nothing function

scotty101
Posts: 3650
Joined: Fri Jun 08, 2012 6:03 pm

Re: MPR121 capacitive touch hat in rapsberry

Wed Mar 02, 2016 10:48 pm

Which board specifically did you buy?

It should be fairly easy to read the data over the i2c bus. Start with that and then worry about the Tkinter element.

Here is a code example that I wrote last week to access a simple i2c device and it has a GUI too.
https://github.com/scotty3785/python-blinkm

(It only writes to the i2c device so far)
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
williamhbell
Posts: 291
Joined: Mon Dec 26, 2011 5:13 pm
Contact: Website Twitter

Re: MPR121 capacitive touch hat in rapsberry

Sat Apr 30, 2016 8:01 pm

Hi,

If you are still stuck, then you could try:
https://github.com/williamhbell/MPR121CapSensor

This has been tested with the latest Raspbian version and works as expected. Installation instructions are given in the repository.

Best regards,

Will

Return to “Python”