PWM sound synthesize test for Arduboy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PWMDAC_Synth.cpp
PWMDAC_Synth.h
README.md
pwmtest.ino

README.md

pwmtest

PWM sound synthesize test for Arduboy

You also need Arduboy2 library.

Synth engine is ported from Kamide's PWMDAC_Synth, modified for ATmega32u4.

Arduboy has two PWM pins, pin 5 and pin 13.

In your sketch, use

#define PWMDAC_OUTPUT_PIN 13
#define PWMDAC_OUTPUT_PIN2 5

for larger sound. You can also use

#define PWMDAC_OUTPUT_PIN 5
#define PWMDAC_OUTPUT_PIN2 13

which will generate more quiet sound.

YouTube video is here.