Control iTunes and Vox the 2 most popular music players on mac computers with an arduino
Step 1: Things Needed
- Arduino (I'm using uno but any should do).
- USB cable for the arduino.
- IR receive diode.
- Universal IR remote.
- jumper cables for the IR decoder.
Step 2: Connect the IR Decoder to the Arduino
connect the IR decoder pins to the arduino as :
left -> pin 2
middle -> GND
right -> +5V
Step 3: Find a Nice Looking Enclosure (optional)
I used a cardboard box just to make the project good looking without the showing the arduino and the wires.
Step 4: Download the App
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
Step 5: Decode and Save the Remote Signals
use this code to receive the signals from your remote to assign commands to them later.
Step 6: Arduino Code
use the previously read commands in the switch of this program to send commands to the app.