User Tools

Site Tools


supported_hardware:arduino

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
supported_hardware:arduino [2019/03/13 15:51]
James Sentman
supported_hardware:arduino [2023/01/29 18:32] (current)
James Sentman added SendRaw command info
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.txt · Last modified: 2023/01/29 18:32 by James Sentman