My previous post looked at all the theory of using PWM on an Arduino and finished with an example showing how to use Timer 1 to generate a PWM output on pin 9. This post provides an alternative set of PWM routines that allows you to generate an audio signal on pin 3 using Timer … Continue reading Arduino PWM Sound Output – Part 2
Tag: timers
Arduino PWM Sound Output
Up to this point I've been using a range of audio output options, of varying fidelity, including outputting "PWM" using the Mozzi synthesis library, but I haven't actually experimented with PWM, or Pulse Width Modulation, itself directly so thought it was time I looked into it a bit more. In Part 2 there is an … Continue reading Arduino PWM Sound Output
Arduino Top Octave Generator
My previous experiments with Arduino tone() polyphony have led to a curious tangent, following some comments on a hackaday post featuring my original project that compared my project to Top Octave Generators. This describes how I used the same principle to create a simplified (and not very accurate or useful) Arduino Top Octave Generator as … Continue reading Arduino Top Octave Generator
Auduino Granular Synthesis – Part 2
After having an initial look at the Auduino project, I was very interested in finding out more about how it worked, but the Internet seems somewhat mute on the subject and I've not found any information from the original author. If you know of such a link, be sure to let me know (at the … Continue reading Auduino Granular Synthesis – Part 2
Arduino MIDI Delay
As mentioned when I made my MIDI In-Out Half-Shield, there are some neat opportunities for MIDI related effects, so this is my MIDI delay implementation. https://youtu.be/rnUY4i4nMPE This is marked "beginner" from the point of view of "just download the code and use it", but if you want to dig into the code it is really in … Continue reading Arduino MIDI Delay
Arduino R2R Digital Audio – Part 3
So this is where we start to get closer to some proper direct digital synthesis using the hardware developed in part 1 and moving on from the timer-driven code developed in part 2. In Arduino MIDI R2R Digital Audio I add MIDI. In Arduino PWM Sound Output I talk more about the theory of PWM. https://youtu.be/1MPNHMQ-2vs The … Continue reading Arduino R2R Digital Audio – Part 3
Arduino R2R Digital Audio – Part 2
Building on the Arduino R2R Digital Audio project, this uses the Arduino Timer functions to run our code in a more accurate and useful way. I've now also added some potentiometers to my shield and a jack output socket. In Arduino R2R Digital Audio - Part 3 the code is developed further to support wavetable synthesis. In Arduino … Continue reading Arduino R2R Digital Audio – Part 2