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: digital to analogue conversion
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
MCP4725 Digital to Analog Converter – Part 3
My plan was always to try to use my MCP4725 board with Mozzi eventually, but there is one thing I came to realize that has stopped that ambition. You can't talk I2C from an interrupt routine using the standard Arduino Wire libraries. Mozzi uses an interrupt routine to output the audio samples at the required … Continue reading MCP4725 Digital to Analog Converter – Part 3
MCP4725 Digital to Analog Converter – Part 2
This is a short post showing some of the steps to take the dividing/filter circuit from the MCP4725 Digital to Analog Converter to stripboard or protoboard. If you know how to solder, this is fairly straightforward. If you are not sure, find a good tutorial and then come back and have a go. Recall, both … Continue reading MCP4725 Digital to Analog Converter – Part 2
MCP4725 Digital to Analog Converter
After my experiments with Mozzi, one thing I wanted to try was using a dedicated digital to analog converter (DAC), which is something the common Arduinos lack. After some searching I found the MCP4725 which links up to the Arduino using the I2C bus. From the datasheet: "The MCP4725 is a low-power, high accuracy, single … Continue reading MCP4725 Digital to Analog Converter
Arduino R2R Digital Audio
This project shows an example of digital to analogue synthesis. Technically this is what is called direct digital synthesis, but in its most basic form. In Arduino R2R Digital Audio - Part 2 I add some control and develop the code further. In Arduino R2R Digital Audio - Part 3 the code is developed further to support … Continue reading Arduino R2R Digital Audio