RyoKosaka / HelloDrum-arduino-Library

This is a library for making E-Drum with arduino.
https://open-e-drums.com/
MIT License
244 stars 61 forks source link

3 piezo, hit Position sensing #43

Open SunboX opened 2 years ago

SunboX commented 2 years ago

Is it possible to have three piezo per drum and calculate the hit position using triangulation?

corrados commented 2 years ago

What do you want to measure? A time difference between the detected peaks of the three piezos? Let's assume sound travels at about 30000 cm/s. Then the time difference between peaks if the distance is 10 cm would be about 3 us. This would mean you have to sample at least with 300 kHz.

I think it only would be feasible to use the peak amplitude of the three piezos and maybe also the shape of the mean peak to detect the correct position on the mesh head.

SunboX commented 2 years ago

My idea was to measure the amplitude of all three piezo. My guess is, that it is different depending where you hit the mesh. If so, you could use this information to calculate how far it was hit from the center.

Seems I have to make a test.

ojungleboy commented 2 years ago

Totally support this idea!