Home Forums Sparkfun MP3 Shield Library Support Forum MP3 player use with PIR Sensor and Servo Reply To: MP3 player use with PIR Sensor and Servo


I found a solution to use a servo and the MP3 player at the same time.

I used an Arduino with the MP3 player and a PIR sensor as the MASTER, and used I2C and the Wire Library with analog pins 4 & 5 to connect to a second Arduino as a SLAVE which used the Servo Library and a servo.  When the PIR senses motion, it kicks off a track and sends a Wire command to the Slave to turn the servo.  When track is over, it sends another Wire command to stop the servo.  Works like a charm.

This wasn’t a MP3 Library issue, but rather  me trying to figure out a working solution to my project.