Introduction: Control Your Mac Music Player With Arduino
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.
Step 7: Connect the App to the Arduino
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.
and don't forget to check my other projects on my website George Gabra Jr.
We have a be nice policy.
Please be positive and constructive.