Go Down

Topic: Control Uno "dimmer" example from OS X terminal (Read 1 time) previous topic - next topic

XynTeq

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!

kllsamui

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 )



XynTeq

#2
Apr 12, 2012, 03:52 am Last Edit: Apr 13, 2012, 02:18 am by XynTeq Reason: 1

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: [Select]
echo "\xff" > /dev/tty.DEVICEID

to turn it on or


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

to turn it off

however, this only works when I open the serial communicator in the IDE first..

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy