I have:
Arduino Uno R3
Vilros Micro Servo SC90
Seeed Studio SD shield
Adfruit plastic speaker #1891
The end result I hope to get to is a stuffed donkey that moves it's head while playing a song (long story).
I combined code from Arduino Lesson 14. Servo Motors and http://www.instructables.com/id/Playing ... g-arduino/ using the TMRpcm.h library. The code works, except that it will only play the music or sweep the servo but not both. If I move the " servo.attach(servoPin);" code to the beginning of setup, the music plays. If I move it to the end, the servo sweeps.
I have tried:
- adding a 1000uf capacitor across the servo +/-, as mentioned in the tutorial
adding a 6v battery pack to power the servo (forum post)
powering the arduino from a 9v wall wart instead of USB (my guess)
editing pcmConfig.h to uncomment "#define USE_TIMER2" (interweb research)
Has anyone had success with this combination?