Background
In this project, we use the serial communication (UART) of the Atmega328p to use to keyboard which will send notes that will be played on a speaker.

Hardware Connections
Connect a speaker to PD6 with a 0.47uF DC-blocking capacitor in series.
The Software
The core architecture is spread across 3 files, the complete source code is stored in the GitHub repository.
organ.c/.h defines two functions that will be used: playNote(), rest(). They transmit the audio tune to the speaker via a PWM signal.
scale16.h contains the pre-defined frequency arrays for the musical scales
serialOrgan.c is the main.c file, containing the core application logic.