Wednesday, February 23, 2011

Chumby One and Arduino

So I got a Chumby One. I loaded this up on the Arduino:

int ledPin = 13;
int i=0;

void setup() {
pinMode(ledPin, OUTPUT);

void loop()
digitalWrite(ledPin, HIGH);
digitalWrite(ledPin, LOW);

Then I plugged the Arduino into the Chumby One USB port, I turned on the Chumby sshd, ssh'ed into the Chumby One, and did this:

stty -F /dev/ttyUSB0 9600
while true; do
read LINE < /dev/ttyUSB0
echo $LINE

And boom, I started seeing data coming in from the Arduino. Wow, that was simple!

Next to get a USB hub so I can have the USB drive with Chumby Python & PySerial on it as well as connecting the Arduino. I assume that would work...

No comments: