A Sound or tone generator for some Arduino projects I am working on.
Controlled by the Arduino, possibly using a DAC no more than 2, even a digital pot or two but these are more expensive, but control voltages are 0-5V
Requirements:
Background
Using the Arduino I can drive a square wave quite easily, but it takes processor cycles and sounds tinny, I can’t generate a meaningful waveform at anything approaching 100Hz, never mind 20 KHz or even 4.5KHz.
I have a basic electronics understanding, I fully understand (I think) wires, I even nearly understand those new fangled things like capacitors and transistors (Well, the npn ones). Diodes unfortunately are still just a one way street to me. But I am booked in for an induction course at my local college.
Controlled by the Arduino, possibly using a DAC no more than 2, even a digital pot or two but these are more expensive, but control voltages are 0-5V
Requirements:
- 0-5V control voltage via a DAC, or PWM output.
- Outputs a tone in the range of human hearing, 20 – 20KHz, or at least the Piano range, ~25-4.5KHz
- Digital volume control.
- Must have an off or 0Hz to allow spaces between the notes or another method of achieving this such as volume.
- Can require a separate power supply of anything up to 18V (2x9V batteries)
- Can ideally produce separate waveforms, Sine, Square, Sawtooth (both rising and falling if possible) and Triangle.
- Waveform selection must be controllable by software. Analogue master volume, tone controls etc. are allowed.
- Cheap, preferably less than £15 Max for all the components.
- No SM components, all should be breadboardable (is that a word?)
Background
Using the Arduino I can drive a square wave quite easily, but it takes processor cycles and sounds tinny, I can’t generate a meaningful waveform at anything approaching 100Hz, never mind 20 KHz or even 4.5KHz.
I have a basic electronics understanding, I fully understand (I think) wires, I even nearly understand those new fangled things like capacitors and transistors (Well, the npn ones). Diodes unfortunately are still just a one way street to me. But I am booked in for an induction course at my local college.