Control Your Mac Music Player With Arduino

by georgeg4 in Circuits > Arduino

3432 Views, 11 Favorites, 0 Comments

Control Your Mac Music Player With Arduino

DSC_0064.png
DSC_0060.png
Screen Shot 2014-11-07 at 9.29.15 PM.png
connections.png

Control iTunes and Vox the 2 most popular music players on mac computers with an arduino

Things Needed

DSC_0058.png

  1. Arduino (I'm using uno but any should do).
  2. USB cable for the arduino.
  3. IR receive diode.
  4. Universal IR remote.
  5. jumper cables for the IR decoder.

Connect the IR Decoder to the Arduino

connections.png
DSC_0060.png
DSC_0059.png

connect the IR decoder pins to the arduino as :

left -> pin 2

middle -> GND

right -> +5V

Find a Nice Looking Enclosure (optional)

DSC_0064.png
DSC_0061.png

I used a cardboard box just to make the project good looking without the showing the arduino and the wires.

Download the App

Screen Shot 2014-11-07 at 9.29.15 PM.png

go to my website, head to apps page and download the music controller app.

this app lets you control your music players with the serial port , for example if the app received "playpause" from the serial port it's connected to it will toggle play/pause in the music player

the app supports the following commands:

"activate"-> opens or activates the selected player

"playpause" -> play/pause

"next" -> next track

"previous"-> previous track

"increasevolume"-> increase volume in selected player

"decreasevolume"-> decrease volume in selected player

"switch"-> switch player control from iTunes to Vox

"quitplayer"-> quit the currently selected player

"quit"-> quit app

Decode and Save the Remote Signals

use this code to receive the signals from your remote to assign commands to them later.

Arduino Code

Screen Shot 2014-11-08 at 12.23.03 AM.png

use the previously read commands in the switch of this program to send commands to the app.

Connect the App to the Arduino

Screen Shot 2014-11-07 at 9.29.15 PM.png

open the app and choose the serial port which the arduino is connected to then set the baud rate to 9600 (for the previous sketch) then click connect.

enjoy ;)

and don't forget to check my other projects on my website George Gabra Jr.