This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a Drum kit
Hello everyone!
I am Shaurya and I'm 13 yrs old, so this project is a little tricky for me to make.
So I got some piezoelectric sensors from amazon to try and make something like a drum kit... I learn Indian classical music and have high interest in this project.
My piezoelectric sensors are connected as shown in the diagram. The GPIO is also connected to ground via some resistors and is not recieving a floating voltage. (Good Thing) 
When I press the sensor, the output is 1 as I haven't assigned the sound yet. When I try to assign a sound to each of the 8 GPIO pins (there are 8 sensors), I get many errors in pygame and lots of other things...
My problems are-

>How will the tinker board sense two or more sensors at once? Please tell me...

>Is there a script that works like this? - If I press the sensor once I should get a drum sound once only. If I press and hold the sensor, the drum sound not be repeated. If I let go and then again press it, the sound should play...

>latency in output and audio(I checked using one Channel), lots of it...

>Please tell me how I should use Pygame channels in order to play multiple sounds. A drum kit can sense at least two sensors at once and also can play two sounds simultaneously without latency...

How can I achieve similar results???

Forum Jump:

Users browsing this thread: 1 Guest(s)