In this Instructable, I'll show you how to hook up your Arduino to your Mac and throw up an actual flag when the alert of your choice occurs. In our example, we'll be doing an email alert, but you can use AppleScript to call this when almost anything happens.
I've created a little Instructables flag to go off when I receive comments on my instructables.
Let's get started!
Step 1: What you Need
An Arduino: I know at least that the Duemilanove and the Diecimila will work. I don't know if older board versions will work.
A Flag: I made an instructables flag to alert me when I get instructables comment.
A 47 Ohm resistor: This is to prevent the Arduino from resetting at the close of a serial connection
Wires to connect the Arduino to the Servo. My wires were a bit longer than needful.
Tod Kurt's Arduino Serial C code. Tod put this code up which makes it tremendously easy to communicate with the Arduino. Files included here. For more info look here:
- Arduino Code
- Run Flag Applescript