Hi,
Relatively new to all this..
I know how to connect a normal piezo element to an arduino, however I'm after something pretty loud (more voltage = louder noise). How can I connect the piezo to my 5V as well as controlling it via a digital pin?
Hi,
Relatively new to all this..
I know how to connect a normal piezo element to an arduino, however I'm after something pretty loud (more voltage = louder noise). How can I connect the piezo to my 5V as well as controlling it via a digital pin?
Check PWM basics here - analogWrite() - Arduino Reference -
or this - Arduino UNO Tutorial 7 - Piezo Beep -