Digital Sound Synthesizer for mbed

Overview

We created a digital sound synthesizer that is capable of producing three different types of waveforms (sine, sawtooth, and triangle). Each waveform can be selected by pressing a pushbutton to cycle through the waveforms. A capacitive touch keypad provides the primary interface to select a note to play. An accelerometer on an IMU allows users to modulate the selected note. Additionally, a PWM-driven RGB LED displays the effect of the IMU.

Picture of Layout

500


Components

The following is a list of components used to build this project:


Wiring Connection Guide

MPR121 I2C 12 Key Capacitive Touchpad

MPR121 I2C Capacitive Touchpad
*The I2C connections require pullup resistors to function properly*

mbedMPR121Pullups
GndGnd
p9SDA4.7k
p10SCL4.7k
p11IRQ
VoutVcc

LSM9DS1 IMU

LSM9DS1 IMU

mbedLSM9DS1
GndGnd
VoutVdd
p28SDA
p27SCL

Class D Audio Amplifier

Class D Audio Amplifier

mbedAmplifierSpeaker
GndPwr - & In -
VoutPwr +
p26In +
Out ++
Out --

RGB LED

To prevent the RGB LED from shorting, resistors are used to drop the current to each leg of the LED as shown below: /media/uploads/nsloth/rgbled_wiring.png

mbedRGB LEDResistor
p211 - Red180 Ohm
Gnd2 - Gnd
p223 - Green100 Ohm
p234 - Blue100 Ohm

Pushbutton

200

mbedPb
p181
Gnd2

Program Code

Here is a link to import the program.

Import program4180_lab4

Digital Sound Synthesizer for lab 4


Video


Please log in to post comments.