Use an Arduino to control your Mac. In this Instructable I use a photoresistor to detect a shadow falling over it, then tell my Mac to run an AppleScript to play the next track on iTunes. This can be easily modified to run any AppleScript. It is a relatively easy, beginner level project for an Arduino Mac user.

Step 1: Gather Materials

You will need:
a Mac computer
AppleScript Proxy from Tinker It! get it here: http://tinker.it/now/2007/04/26/control-your-mac-from-arduino-the-easy-way/
Arduino. I used a Duemilanove
USB cable for Arduino
A photoresistor. Available from any electronics parts store. I got mine at RadioShack. Should cost about $3 for 5.
a 10k resistor. Color code: Brown Black Orange
some wire
LED if you don't have on on your Arduino. Though it's optional then, too.

Gather the above materials and install the AppleScript Proxy.

After searching High and Low for Tinker.it and their Applescript proxy program, I have located it and posted it on my website<br><br>http://www.bandster.us/ASPROXY.zip<br><br>This is a zip copy of the original software, with the items also extracted<br><br>here is the applescript code.<br><br>// Applescript Proxy test<br>// Skip to the next song on itunes every 10 seconds<br>void setup() {<br>Serial.begin(9600);<br>}<br><br>void loop() {<br>Serial.print(&quot;A&quot;);<br>delay(10000);<br>}<br><br>The original program was titled &quot;asproxy02.dmg&quot;<br><br>Jonathan<br>
Hey, I'm really grateful for this. Please, if for some reason if you decide to take your site down in the future, try to upload it to mediafire or some other site. I've searched everywhere for this program, and it looks like yours is the last surviving link.
Does anyone still have that Applescript Proxy available? It's no longer on the Tinker.it site links posted in the instructable (or the one in comments).<br><br>Thanks!
the site changed domain names here is a new link http://tinkerlondon.com/now/2007/04/26/control-your-mac-from-arduino-the-easy-way/<br><br>but it now says page not found :(<br>i'll email them and see if they still have it somewhere
very nice, I wil try to make one.!
&nbsp;The Link doesn't Work I was wondering if You could sent me this app Thanks&nbsp;
what AppleScript Proxy program are you using?
It's in step 1. It's called "AppleScript Proxy" from Tinker it!
what serial proxy are you using???????
I like your ending the best.
<div style="margin-left:15px;"> <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/lX0UiQ5QJeM"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/lX0UiQ5QJeM" type="application/x-shockwave-flash" width="425" height="344" wmode="transparent"></embed></object></div> Here is the video!<br/>
Hi, great tutorial. I made one of these with an IR sensor awhile back for a friend's installation art project. Every time someone came through the door of the art gallery, the sensor was tripped and a new track was played on itunes. I just thought the whole process was relatively easy and totally magic!

About This Instructable




More by photoelectric:Run AppleScripts with the wave of a hand 
Add instructable to: