User avatar
sn4k3
Posts: 39
Joined: Tue Sep 30, 2014 3:50 pm
Contact: Website

Detect touch on glass table

Fri Feb 20, 2015 2:08 am

Hello,

I'm asking here if anyone got the solution for this, after many research i can't find a good solution to my problem.
So, i have a glass table, not thick with 0.4cm, i want to divide the table (20x20cm) in square and rows, i will say 8x8 (without cuts), each square i want to be able to detect a touch in that precise square. But all electronics and cables need to be placed on bottom/downside the table, so i want the top side clean and clear.

Any ideia how i can do that?
Thanks

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

Re: Detect touch on glass table

Fri Feb 20, 2015 9:21 am

You could use a capacitive touch film as found on mobile phone screens.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
sn4k3
Posts: 39
Joined: Tue Sep 30, 2014 3:50 pm
Contact: Website

Re: Detect touch on glass table

Fri Feb 20, 2015 2:08 pm

thanks for your reply,

So, will "MPR121 Breakout V12 Capacitive Touch Sensor" - http://www.ebay.co.uk/itm/MPR121-Breako ... 1c430c9d2b works for my needs?
Since i need 64 buttons i will need to adquire 6 of that
scotty101 wrote:You could use a capacitive touch film as found on mobile phone screens.

User avatar
ILikePi99
Posts: 54
Joined: Fri Jan 02, 2015 11:00 pm

Re: Detect touch on glass table

Wed Mar 04, 2015 12:52 am

Another idea would be to use vibration sensors.. Not sure how well it would work though...
I appreciate all help! I'm a self-taught Java/Python programmer and I'm always ready to learn more! :)

Check out my blog at http://coderjoeblog.blogspot.com

chris57100
Posts: 522
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Detect touch on glass table

Wed Mar 04, 2015 7:30 am

Hi,
Is your table transparent (or a little bit) ? If yes, maybe another solution could be to put under the table a camera connected to a Raspberry Pi and use OpenCV to detect finger's place with movement/color detection (for exemple the darkest spot in the picture could be a finger).
It's not too hard to perform using OpenCV library. Once detected you can calculate the position in the picture and deduce which button it is
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Detect touch on glass table

Wed Mar 04, 2015 9:08 am

sn4k3 wrote:thanks for your reply,

So, will "MPR121 Breakout V12 Capacitive Touch Sensor" - http://www.ebay.co.uk/itm/MPR121-Breako ... 1c430c9d2b works for my needs?
Since i need 64 buttons i will need to adquire 6 of that
scotty101 wrote:You could use a capacitive touch film as found on mobile phone screens.
They look excellent. You can make the actual sensor pads out of metal foil/tape stuck to the underside of the glass.
note: I may or may not know what I'm talking about...

User avatar
sn4k3
Posts: 39
Joined: Tue Sep 30, 2014 3:50 pm
Contact: Website

Re: Detect touch on glass table

Wed Mar 04, 2015 3:22 pm

toxibunny wrote:
sn4k3 wrote:thanks for your reply,

So, will "MPR121 Breakout V12 Capacitive Touch Sensor" - http://www.ebay.co.uk/itm/MPR121-Breako ... 1c430c9d2b works for my needs?
Since i need 64 buttons i will need to adquire 6 of that
scotty101 wrote:You could use a capacitive touch film as found on mobile phone screens.
They look excellent. You can make the actual sensor pads out of metal foil/tape stuck to the underside of the glass.
That all i need to hear :D

Since i only can have 4 MPR121 working with Pi on each SPI Address (0x5A - 0x5D), how can i increase or add more SPIs to support the 6 controlleres that i need?

Thanks

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Detect touch on glass table

Wed Mar 04, 2015 6:17 pm

I think It's i2c, not spi.
If it was me, I'd probably involve a couple of cheap ebay arduino pro micros, or something of that sort. link them together, have 3 modules into each, then have one of them pass all the info to the raspi via UART.

others will no doubt have smarter solutions. also, don't forget to read,my sig.
note: I may or may not know what I'm talking about...

User avatar
sn4k3
Posts: 39
Joined: Tue Sep 30, 2014 3:50 pm
Contact: Website

Re: Detect touch on glass table

Wed Mar 04, 2015 8:12 pm

toxibunny wrote:I think It's i2c, not spi.
If it was me, I'd probably involve a couple of cheap ebay arduino pro micros, or something of that sort. link them together, have 3 modules into each, then have one of them pass all the info to the raspi via UART.

others will no doubt have smarter solutions. also, don't forget to read,my sig.
yes i2c, sorry.
I have some but i want to use something like a small chip to expand instead of a arduino is that possible?

Ahah nice sig :D

Thanks

toxibunny
Posts: 1382
Joined: Thu Aug 18, 2011 9:21 pm

Re: Detect touch on glass table

Thu Mar 05, 2015 12:02 pm

http://www.sparkfun.com/products/9056

This seems to be more like what you want, then. I googled 'i2c multiplexer' and found it in an arduino forum post.

What are you making, btw?
note: I may or may not know what I'm talking about...

User avatar
sn4k3
Posts: 39
Joined: Tue Sep 30, 2014 3:50 pm
Contact: Website

Re: Detect touch on glass table

Fri Mar 06, 2015 12:39 am

toxibunny wrote:http://www.sparkfun.com/products/9056

This seems to be more like what you want, then. I googled 'i2c multiplexer' and found it in an arduino forum post.

What are you making, btw?
Thanks, i will take a look and search about it.

A simple checkers game, glass transparent table with RGB LED on bottom (8x8), so each square must be touch sensitive to do the moves.

Return to “Advanced users”