Hi
I need to use a piezo to trigger a bang in a pd patch but i am having some problem of inestability. I use the piezo like an analog input to arduino board, then comunicate with pduino ( firmata 2.1.) Once in the patch i use an arduino object to detect the signal from piezo and a threshold object to trigger a bang when the value of the signal goes up the threshold. The problem is the acuraccy of the sistem, because is really unprecise, sometimes trigger doestn work and some times trigger more bangs than hits to the piezzo. Anybody knows a efficient way to do this? how can i improve the accuracy?
Thanks ¡¡
Hi
I think the easier way to get info from the piezo is to plug it in a sound card preamp and then use [peakamp~ ] Otherwise you should do a bit of electronics to transform the tiny AC voltage of the piezo output into a DC amplified voltage to match the analog input of arduino.
You'll have then to use [peakamp~] or something similar in arduino to be sure to take the highest value in a certain time, rather than take a "snapshot" of the analog input at the arduino clock frequency (like you would do for a knob) The electronic part is not so difficult to build, I think you can get the schematic on the web. Good luck
David
De : FernandoG dataferx@gmail.com À : pd-list@iem.at Envoyé le : Lun 20 septembre 2010, 17h 58min 29s Objet : [PD] piezo sensor to pduino object
Hi
I need to use a piezo to trigger a bang in a pd patch but i am having some problem of inestability. I use the piezo like an analog input to arduino board, then comunicate with pduino ( firmata 2.1.) Once in the patch i use an arduino object to detect the signal from piezo and a threshold object to trigger a bang when the value of the signal goes up the threshold. The problem is the acuraccy of the sistem, because is really unprecise, sometimes trigger doestn work and some times trigger more bangs than hits to the piezzo. Anybody knows a efficient way to do this? how can i improve the accuracy?
Thanks ¡¡
try to put some medium sized resistor in series with the piezo and see if it gets more tangible data input. Piezzos can output very high voltages.
2010/9/20 david lemarechal d_lemarechal@yahoo.fr
Hi
I think the easier way to get info from the piezo is to plug it in a sound card preamp and then use [peakamp~ ] Otherwise you should do a bit of electronics to transform the tiny AC voltage of the piezo output into a DC amplified voltage to match the analog input of arduino. You'll have then to use [peakamp~] or something similar in arduino to be sure to take the highest value in a certain time, rather than take a "snapshot" of the analog input at the arduino clock frequency (like you would do for a knob) The electronic part is not so difficult to build, I think you can get the schematic on the web. Good luck
David
*De :* FernandoG dataferx@gmail.com *À :* pd-list@iem.at *Envoyé le :* Lun 20 septembre 2010, 17h 58min 29s *Objet :* [PD] piezo sensor to pduino object
Hi
I need to use a piezo to trigger a bang in a pd patch but i am having some problem of inestability. I use the piezo like an analog input to arduino board, then comunicate with pduino ( firmata 2.1.) Once in the patch i use an arduino object to detect the signal from piezo and a threshold object to trigger a bang when the value of the signal goes up the threshold. The problem is the acuraccy of the sistem, because is really unprecise, sometimes trigger doestn work and some times trigger more bangs than hits to the piezzo. Anybody knows a efficient way to do this? how can i improve the accuracy?
Thanks ¡¡
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi,
what's is your circuit, you can filter a bit the hardware, see: http://www.workinprogress.ca/projects/edubeat/source/
for an example, but in your case if you want only a trig (not velocity) you can remove the lp filter (C1-R1).
cheers pat
Hey, the guy is using Arduino, well, you should use a resistance of 1 kohm, the schedule is the same as I show you, you must use the red wire inside and black outside your "penny" ... resistance to the ground will be used to enter the analog, as a ldr, is the same pattern ... You can check it on the web ... http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_pr..., also you would need a flex sensor... more stability and non erratic performance...
Best regards
José
2010/9/20 patrick puredata@11h11.com
hi,
what's is your circuit, you can filter a bit the hardware, see: http://www.workinprogress.ca/projects/edubeat/source/
for an example, but in your case if you want only a trig (not velocity) you can remove the lp filter (C1-R1).
cheers pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hey, the guy is using Arduino, well, you should use a resistance of 1 kohm, the schedule is the same as I show you, you must use the red wire inside and black outside your "penny" ... resistance to the ground will be used to enter the analog, as a ldr, is the same pattern ... You can check it on the web ... http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_pr..., also you would need a flex sensor... more stability and non erratic performance...
Best regards
José
2010/9/20 FernandoG dataferx@gmail.com
Hi
I need to use a piezo to trigger a bang in a pd patch but i am having some problem of inestability. I use the piezo like an analog input to arduino board, then comunicate with pduino ( firmata 2.1.) Once in the patch i use an arduino object to detect the signal from piezo and a threshold object to trigger a bang when the value of the signal goes up the threshold. The problem is the acuraccy of the sistem, because is really unprecise, sometimes trigger doestn work and some times trigger more bangs than hits to the piezzo. Anybody knows a efficient way to do this? how can i improve the accuracy?
Thanks ¡¡
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list