Pages: [1]   Go Down
Author Topic: Control Uno "dimmer" example from OS X terminal  (Read 1251 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,

I am very new to hardware however not new to programming so writing simple programs and understanding it all is no big deal, but i ran into a  problem.

Is there any way to communicate with this program (send bytes) through the computer terminal?

Whenever I try with the built in communicator I cannot send just bytes to the device.

Any help would be appreciated!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 38
Arduino is fun
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

you could start with
ARDUINO 1.0
FILE / EXAMPLES / COMMUNICATION / DIMMER

if you need more options for commands from TERMINAL
pls see a small MENU system
with setpoint input example
( but no dimmer code )
one character input menu
can start
ONE SHOT JOB or CONTI JOBs ( semiparallel )



* menu_kll_v08.zip (5.88 KB - downloaded 6 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you could start with
ARDUINO 1.0
FILE / EXAMPLES / COMMUNICATION / DIMMER

if you need more options for commands from TERMINAL
pls see a small MENU system
with setpoint input example
( but no dimmer code )
one character input menu
can start
ONE SHOT JOB or CONTI JOBs ( semiparallel )




Yeah, I was already in that example..

anyway, I figured it out, so far using the command (in terminal)

Code:
echo "\xff" > /dev/tty.DEVICEID

to turn it on or


Code:
echo "\x00\c" > /dev/tty.DEVICEID

to turn it off

however, this only works when I open the serial communicator in the IDE first..
« Last Edit: April 12, 2012, 07:18:50 pm by XynTeq » Logged

Pages: [1]   Go Up
Jump to: