raspbbeginner
Posts: 2
Joined: Sat Feb 20, 2016 8:36 pm

Which sensor should I use to detect a table tennis ball boun

Sat Feb 20, 2016 8:57 pm

I am trying to create a table tennis statistics controller and I need to detect when a ball bounces on the table. My first idea was to use one piezo sensor in each side of the table, but the setup was not sensible enough. I also looked to use a camera, but it was more work than I first though. I wonder if there is a good sensor that could be used in this situation.

In the second phase, I would like find the approximate position where the ball has bounced. At first, I thought that I could do this with 3 piezo sensors and triangulation, but my tests were not successful.

rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

Re: Which sensor should I use to detect a table tennis ball

Sat Feb 20, 2016 10:07 pm

Microphone glued to the table.

raspbbeginner
Posts: 2
Joined: Sat Feb 20, 2016 8:36 pm

Re: Which sensor should I use to detect a table tennis ball

Mon Feb 22, 2016 12:19 am

Thanks for the suggestion. I have a few doubts before I try this path and your help is appreciated.

- How can I differentiate a ball bounce from someone speaking while playing?
- Do you have any code that can help me with this implementation?

Thanks

Goraxium
Posts: 122
Joined: Tue Jan 26, 2016 1:42 pm

Re: Which sensor should I use to detect a table tennis ball

Mon Feb 22, 2016 8:40 am

What didn't work with the piezo sensors?

One possible solution could be gluing accelerometers to the table, and seeing if they detect any changes (some even come with hardware monitoring for tapping).

User avatar
rurwin
Forum Moderator
Forum Moderator
Posts: 4258
Joined: Mon Jan 09, 2012 3:16 pm
Contact: Website

Re: Which sensor should I use to detect a table tennis ball

Mon Feb 22, 2016 9:34 am

raspbbeginner wrote:- How can I differentiate a ball bounce from someone speaking while playing?
You could consider filtering the sound signal so that you only see the characteristic sound of a ping-pong ball bouncing. Of course it will be filtered by the table already and it still might not be distinguishable from background noise.

For more advanced methods you might want to look into wavelets. That should let you detect not only the sound but also its envelope. But I hope your maths is good. The other possibility is to train a neural network. There's probably libraries available for both of those possibilities.

What problems did you have with triangulation? I've got a project in the back of my head that uses the same method.

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Which sensor should I use to detect a table tennis ball

Mon Feb 22, 2016 8:59 pm

This is Avery tricky project to detected the ball. Using sound detection , you will have to
diffirnsate between the bat hitting the ball, and the ball hitting the table.
Look into using a very fast sweeping beam detection, just very near the top of the table
This might also give you the ball touch position.
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

rzusman
Posts: 347
Joined: Fri Jan 01, 2016 10:27 pm

Re: Which sensor should I use to detect a table tennis ball

Mon Feb 22, 2016 9:42 pm

I’d be willing to bet real money that the sound of the ball hitting the table will be trivial to detect.
You just need to couple the mic to the table solidly (glue).
Try it - put your ear to the table, and have some drop a ping-pong ball on it, and compare that loudness to someone talking.

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: Which sensor should I use to detect a table tennis ball

Wed Feb 24, 2016 8:51 pm

Back to the table tennis ball project.. If a video camera was over the table top, giving full view
of the compleat table, Then as suggested by others , microphones fitted under the table
using this to send a signal ( wire or wire less) to let the camera take snap/shot .This would
record ball touch and position.

All Pi In The Sky?
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

blaablaaguy
Posts: 623
Joined: Sun Sep 27, 2015 3:26 pm

Re: Which sensor should I use to detect a table tennis ball

Wed Feb 24, 2016 10:00 pm

boyoh wrote:Back to the table tennis ball project.. If a video camera was over the table top, giving full view
of the compleat table, Then as suggested by others , microphones fitted under the table
using this to send a signal ( wire or wire less) to let the camera take snap/shot .This would
record ball touch and position.

All Pi In The Sky?
Maybe vibration sensors/switches in the table to detect the ball and send a signal to the camera?
Like this one:
http://www.amazon.co.uk/Adafruit-Medium ... B01BMRCM3W
This signature intentionally left blank.

Return to “Beginners”