Servo.h and tmrpcm.h

Hi all, is there any solution to works on both servo and tmrpcm audio play library? By the way, I have try out some solution:

  1. Use timer 2 on tmrpcm and timer 1 for servo. (Both of it can works at the first time, for second time, the servo will move but the audio play sounds weird and doesnt follow what the audio file play.

  2. Use servo timer 2, Servo2timer library but the servo cannot move at all.

Those are the problem I face. Please advise me if you have any solution. Thank you.

I have also use another library but it stated there is an interrupt problem.

@peterjin, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.