Skip to main content
deleted 8 characters in body
Source Link
Ricardo
  • 6.2k
  • 20
  • 54
  • 89

ImI'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 dontdon't understand how I can do this,. I wrote following programmprogram:

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 doesntdoesn't work, since Serial1 isdoes not existing.exist. Could you give me a hint? I dontcan't find anything understandable (for me) inthat I can understand on the internet..Internet. Thanks!

Im 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 dont understand how I can do this, I wrote following programm

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 doesnt work, since Serial1 is not existing.. Could you give me a hint? I dont find anything understandable (for me) in the internet... Thanks!

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.

Source Link

Olimex/ATMega328 Reading from UART and sending to USB

Im 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 dont understand how I can do this, I wrote following programm

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 doesnt work, since Serial1 is not existing.. Could you give me a hint? I dont find anything understandable (for me) in the internet... Thanks!