Hello all, I want to create a very simple and compact electronic keyboard (only 3 keys/switches) using just a small speaker, a 16F615, 3xAA batteries, and maybe a resistor or two. This is for my 10 year old's science project. It has to be as simple as possible.
I thought of just making it such that there would be one frequency for each key pressed (one key per digital pin and one output pin to the speaker. A couple of questions if you don't mind:
1. Will the pic be enough to directly drive a tiny 8ohm speaker, it doesn't need to be loud. Should I connect the speaker with a cap or inductor or something?
2. Is there some algorithm I can create in the firmware that would make the sound a little more interesting maybe to sound like a synthesizer? Or maybe by putting a cap or inductor at the speaker output?
Thanks!
RN
I thought of just making it such that there would be one frequency for each key pressed (one key per digital pin and one output pin to the speaker. A couple of questions if you don't mind:
1. Will the pic be enough to directly drive a tiny 8ohm speaker, it doesn't need to be loud. Should I connect the speaker with a cap or inductor or something?
2. Is there some algorithm I can create in the firmware that would make the sound a little more interesting maybe to sound like a synthesizer? Or maybe by putting a cap or inductor at the speaker output?
Thanks!
RN