Capacitive touch hat

This is a special forum devoted to educators using Adafruit and Arduino products for teaching.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Capacitive touch hat

Post by MuadhAzad »

Hello, i would like to know what the python code is for doing the project where you link crocodile clips from the capacitive touch hat to an object and i just need the code, also will i need internet access to do it

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Capacitive touch hat

Post by adafruit_support_rick »

Please see this tutorial:
https://learn.adafruit.com/mpr121-capac ... l-keyboard

It uses an MPR121 breakout, but the Hat uses the same chip and the same instructions will work.

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

i did everything and it says this when i run the playtest.py:

Adafruit MPR121 Capacitive Touch Audio Player Test

Traceback (most recent call last):
File "/home/pi/Adafruit_Python_MPR121/examples/playtest.py", line 37, in <module>
if not cap.begin():
File "build/bdist.linux-armv7l/egg/Adafruit_MPR121/MPR121.py", line 90, in begin
I2C.require_repeated_start()
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 79, in require_repeated_start
subprocess.check_call('chmod 666 /sys/module/i2c_bcm2708/parameters/combined', shell=True)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command 'chmod 666 /sys/module/i2c_bcm2708/parameters/combined' returned non-zero exit status 1

WHAT DO I DO, what does it mean by soldering it.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Capacitive touch hat

Post by adafruit_support_rick »

Try running sudo python playtest.py

You have to solder the header pins to the MPR121 breakout board. Please see our tutorial on soldering
https://learn.adafruit.com/adafruit-gui ... ring/tools

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

I already tried that code and it didn't work, also when I put the capacitive touch hat on to my raspberry pi 3 it tilts and the light on it becomes dim and I need to hold it in a certain position for the light to go bright red. Can you give me a solution for both of my problems, I went through the soldering tutorial and it didn't help.

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Capacitive touch hat

Post by Franklin97355 »

Could you post large (less than 1meg), clear, detailed pictures of both sides of your board showing any soldering you have done and the connections to it?

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

Here is three pics
Attachments
image.jpg
image.jpg (555.52 KiB) Viewed 459 times
image.jpg
image.jpg (543.49 KiB) Viewed 459 times
image.jpg
image.jpg (655.3 KiB) Viewed 459 times

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

Here is 3
Attachments
image.jpg
image.jpg (552.28 KiB) Viewed 459 times
image.jpg
image.jpg (816.44 KiB) Viewed 459 times
image.jpg
image.jpg (655.3 KiB) Viewed 459 times

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Capacitive touch hat

Post by adafruit_support_rick »

You haven't soldered the header pins to the HAT. It won't work unless you do that.

Please see our tutorial on soldering
https://learn.adafruit.com/adafruit-gui ... ring/tools

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Capacitive touch hat

Post by Franklin97355 »

You need to solder the header to the board in order to make good contact. Then plug it into the Pi.

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

I don't understand the tutorial can u help me, what do I do

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

Do I need to buy all that equipment In that tutorial

User avatar
Franklin97355
 
Posts: 23911
Joined: Mon Apr 21, 2008 2:33 pm

Re: Capacitive touch hat

Post by Franklin97355 »

Do I need to buy all that equipment In that tutorial
No, but you do need to solder the header on your board. If you don't have a soldering iron you might find a friend that can do it for you.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Capacitive touch hat

Post by adafruit_support_rick »

You don't have to buy everything, but you need at least soldering iron and some solder.
Maybe you know somebody who can help with this?
Are there any maker spaces in your town? Someone there ought to be able to help you with it.

User avatar
MuadhAzad
 
Posts: 8
Joined: Thu Jun 23, 2016 2:02 pm

Re: Capacitive touch hat

Post by MuadhAzad »

The thing is I am from Uk, would any of these shops be able to do it: maplin, premier computers

Locked
Please be positive and constructive with your questions and comments.

Return to “For Educators”