User Tools

Site Tools


supported_hardware:arduino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
supported_hardware:arduino [2013/07/02 21:03] – external edit 127.0.0.1supported_hardware:arduino [2023/02/13 14:52] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ===Arduino Interface=== ===Arduino Interface===
-The simple arduino interface was added in XTension build 389.+The simple arduino interface was added in XTension build 389. 
  
 The Arduino driver uses a simple text protocol to talk to get data from and control the ever more popular PIC and Arduino community. I personally use a lot of these things and love them. I have code for the arduino side for parsing responses and will clean that up and post it shortly. The Arduino driver uses a simple text protocol to talk to get data from and control the ever more popular PIC and Arduino community. I personally use a lot of these things and love them. I have code for the arduino side for parsing responses and will clean that up and post it shortly.
Line 45: Line 45:
  
 I've posted a long winded description of building some remote controlled PWM dimmable LED strip lighting in my sons aquarium over on the blog. Along with the arduino code necessary to do the communication with XTension. [[http://www.planetarygear.org/2013/06/arduino-xbee-and-pwm-lighting-with.html|arduino, xBee and pwm lighting with XTension]] I've posted a long winded description of building some remote controlled PWM dimmable LED strip lighting in my sons aquarium over on the blog. Along with the arduino code necessary to do the communication with XTension. [[http://www.planetarygear.org/2013/06/arduino-xbee-and-pwm-lighting-with.html|arduino, xBee and pwm lighting with XTension]]
 +
 +===Scripting Commands:===
 +In plugin version 3.2 in XTension version 9.5.1 a sendRaw command was added to send arbitrary strings to the arduino device. This does not append a carriage return at the end so if you need this you’ll have to add it in the script as shown below. This is implemented only for the individual Arduino plugins and not for the native support for this embedded into the xBee interface. If you need that please let me know and I will move implementing it there up the list of priorities.
 +
 +<code>
 +tell xInterface “your arduino interface name” to sendRaw( “this will just be sent”)
 +</code>
 +
 +but without the carriage return that will probably be needed to parse it out on the arduino side. It is possible to add that via applescript somethign like:
 +
 +<code>
 +tell xInterface “your arduino interface name” to sendRaw( “my string” & ascii character 13)
 +</code>
 +
 +if you place the interface in debug mode it will write to the log any raw data being sent, otherwise this command generates no logging when not in debug mode.
supported_hardware/arduino.1372798996.txt.gz · Last modified: 2023/02/13 14:51 (external edit)