Capacitive touch hat
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Capacitive touch hat
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
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Capacitive touch hat
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.
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.
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
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.
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Capacitive touch hat
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
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
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
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.
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Capacitive touch hat
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?
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
Here is three pics
- Attachments
-
- image.jpg (555.52 KiB) Viewed 459 times
-
- image.jpg (543.49 KiB) Viewed 459 times
-
- image.jpg (655.3 KiB) Viewed 459 times
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
Here is 3
- Attachments
-
- image.jpg (552.28 KiB) Viewed 459 times
-
- image.jpg (816.44 KiB) Viewed 459 times
-
- image.jpg (655.3 KiB) Viewed 459 times
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Capacitive touch hat
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
Please see our tutorial on soldering
https://learn.adafruit.com/adafruit-gui ... ring/tools
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Capacitive touch hat
You need to solder the header to the board in order to make good contact. Then plug it into the Pi.
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
I don't understand the tutorial can u help me, what do I do
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
Do I need to buy all that equipment In that tutorial
- Franklin97355
- Posts: 23911
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Capacitive touch hat
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.Do I need to buy all that equipment In that tutorial
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Capacitive touch hat
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.
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.
- MuadhAzad
- Posts: 8
- Joined: Thu Jun 23, 2016 2:02 pm
Re: Capacitive touch hat
The thing is I am from Uk, would any of these shops be able to do it: maplin, premier computers
Please be positive and constructive with your questions and comments.