Control your Mac from Arduino, the easy way
A while ago I wrote a small app that would execute AppleScript commands depending on the data send from an Arduino board connected to my mac. I’ve been asked a few times to release it but it was just a quick hack. Now thanks to HyperWerk in Basel, I’ve had the time to fix it a bit for a student project. I’m releasing it to see what people do with it.
Here is a screenshot :
and Here is a piece of code for Arduino
// Applescript Proxy test
// Skip to the next song on itunes every 10 seconds
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("A");
delay(10000);
}
What this does is that arduino sends an A every 10 seconds and that A is processed by AppleScript proxy that tells iTunes to skip to the next song…
I’m sure that there are million of uses for this… like controlling the DVD player using a light sensor or something similar… If you use it send me some feedback
This is part 1 or a bigger app I’m writing that maps a lot of events on the mac with a number of actions…
stay tuned
Download the app here
PS: It’s worth mentioning that we’re available to customise this application for your needs or build something new based on this :)
Massimo



