ok heres hal com you can control an arduino or other device through usb com port through .vbs and cmd.
thanks to spitfire as i used his datefunction as a template
good luck ...... installation notes are in the zip file
the way this works is hal waits for "on" or "off" then
opens "com on.vbs" or "com off.vbs"
the .vbs open command prompt (minimized) and sends the correct number to the
correct com port. the arduino listens for a 1 or 0 and turns the pin(13) high or low.
good luck.
use the larger download its modified to use the command "light on", "light off" instead of just "on" which turned on everytime "on" was said
serial function is a seperate plugin from hal com.
serial function plugin
the way this works
you give hal the command "light on" or "light off" (no quotations)
the script opens a .vbs file that runs serialterm.exe with the required conditions
serial term sends a 1 for on or
a 0 for off
the arduino receives a 1 or 0 turns the light on or off and responds with
"the light os on" or
"the light is off"
serialterm receives the phrase the arduino sent and stores it in a file named log.txt
the the .vbs file closes serial term
serial Function.uhp then pauses for a second to allow log.txt to update
serial Function.uhp then reads log.txt and sends it out as hals responce.
hal com ( sending to arduino only)
serial function (input output to an arduino)