Azure Skies
New member
Hey Everyone, I have been working on a custom lightsaber and I am using a teensy 3.2 as my controller. I Have an MPU6050 and an sd card reader wired up to my teensy as well as 2 buttons. I have the A+ pin of an Adafruit Mono 2.5W Class D Audio Amplifier (PAM8302) wired into the dac pin of the Teensy 3.2. I am using the Audio Library for Teensy and have set AudioOutputAnalog as dac. I have the teensy successfully reading the sd card however it does not seem to play the wav files off of my sd card. I tried the SamplePlayer sketch as a test and it had no issues playing audio out so Im not too sure whats wrong here.
My code is a rather modified version of the GyverSaber code.
**EDIT **
I have also tried the WavFilePlayer sketch as well but I still do not get any audio out.
**EDIT**
And while I am asking questions, GyverSaber uses a library called toneAC to create a frequency based on the movement of the MPU6050. However toneAC is not compatible with the teensy. Is there some other library I could use to do the same thing and output it to the same pin as the Teensy Audio library?
Here is a pastebin of my modified code: https://pastebin.com/xd9sgmEz
And here is the github for GyverSaber: https://github.com/AlexGyver/EnglishProjects/tree/master/GyverSaber
My code is a rather modified version of the GyverSaber code.
**EDIT **
I have also tried the WavFilePlayer sketch as well but I still do not get any audio out.
**EDIT**
And while I am asking questions, GyverSaber uses a library called toneAC to create a frequency based on the movement of the MPU6050. However toneAC is not compatible with the teensy. Is there some other library I could use to do the same thing and output it to the same pin as the Teensy Audio library?
Here is a pastebin of my modified code: https://pastebin.com/xd9sgmEz
And here is the github for GyverSaber: https://github.com/AlexGyver/EnglishProjects/tree/master/GyverSaber
Last edited: