Arduino controlled by straight C/Objective C?

Hi all-

Sorry for what might be a blatantly obvious question, but going through the site and Googling around hasn't given me any definitive answers, so I figured I'd go to the source and ask the experts. :slight_smile:

I have a project where I want to control a motor, using the Arduino board, but from a program written directly in Cocoa (which means Objective C or just C). My program would, theoretically, talk to the Arduino and say "turn motor on for 6 seconds" and then get some indication from the board that the command completed.

Thanks for what's probably an obvious (but hopefully simple) question. :slight_smile:

Tacho

Hey, Tacho,

Any language which can control a computer's serial port can talk to Arduino. The general strategy is:

  1. Write a computer program that sends characters out the serial port.
  2. Write an Arduino (C++) program that listens for those characters on the Arduino serial port and acts upon them.

Mikal

Both Firmata and my project Breakfast are designed to do just this.