I just installed Ubuntu 7.04 on my laptop. I removed the brltty package and I can upload code to the arduino just fine. The problem is I can't get minicom to read data from the arduino.
The code on the arduino is:
#include <stdio.h>
#include <string.h>
void
setup ()
{
beginSerial (19200);
digitalWrite (13, HIGH); //turn on debugging LED
}
// MAIN CODE
void
loop ()
{
Serial.print("hello\n");
delay(100);
}
My minicom settings are:
pu port /dev/ttyUSB0
pu baudrate 19200
Before I installed Ubuntu, I ran SUSE 10 and this program would work fine. Now the TX light will not even blink. I can program the arduino just fine, so this has me stumped.
Any ideas what I might have wrong?
thanks
chad
Ok, now I am wondering if I may have fried the board. I am trying to run code to just turn on an led:
#include <stdio.h>
#include <string.h>
void
setup ()
{
digitalWrite (13, HIGH); //turn on debugging LED
}
// MAIN CODE
void
loop ()
{
digitalWrite (13, HIGH); //turn on debugging LED
}
I put an led on pin13/GND. When I press the reset button, the LED flashes 3 times. But then my code should turn the LED on, but after the 3 flashes, the LED never turns on.
So now I am thinking my serial communication problem is actually a problem with the board.
Am I correct that the above code should turn on the LED? Any other simple tests I can run to see if the board is working? It was working fine last week.
thanks
chad
hi
check to see if you have selected the appropriate microcontroller, either Atmega168 or Atmega8, under tools>microcontroller.
D
That was it! Thanks a million.