I'm getting frustrated with my electronic knowledge, because I want to do this simple thing:
Olimex 328/ATMega328 reads data from UART (Olimex MOD-PULSE or whatever) and forwards it to the USB Port (my computer).
I don't understand how I can do this. I wrote following program:
void setup() // run once, when the sketch starts
{
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() // run over and over again
{
Serial.println(Serial1.read()); // prints hello with ending line break
}
But it doesn't work, since Serial1 does not exist. Could you give me a hint? I can't find anything that I can understand on the Internet.