Arduino to OF Examples - for OF-005 FAT xcode

unzip arduinoDemoApp005.zip into a folder in your apps directory.

something like this

apps/
  addonsExamples/
  dev/
     arduinoDemoApp/
     arduinoDemoApp005.zip
  examples/

 in the data/ folder edit device.xml to the device number of the arduino - this is usually the order that the device is listed in the arduino software.  the arduino software lists each device twice so if you have.

/dev/tty.somedevice  <-- device id is 0
/dev/cu.somedevice   <-- device id is 0
/dev/tty.myotherdevice <-- device id is 1
/dev/cu.myotherdevice <-- device id is 1
/dev/tty.arduino   <-- device id is 2
/dev/cu.arduino    <-- device id is 2

the two arduino sketches both send a single number to OF whenever they receive the send message from the OF app. this is called a call and response approach. one of the arduino sketches just reads an analog voltage into its analog input - the other gets a reading from a daventech sonar rangefinder and sends the aprox distance in cm as a number. 

