I did not ask Serial.print to print me squares!

Hello everyone!

I was trying out this program:

//Ports
const int tb = 3; //Top button
const int bb = 4; //Bottom button
const int vp = 5; //Vibrator pin
//tb
bool tbposition;
long tbinitialtime;
long tbpresenttime;
bool tbprevposition = 0;
long tbpushtime;
//1-bb
bool bbposition;
bool morsevoice = 0;

void setup(){
  Serial.println("ONE is go");

The rest of the code is unimportant. There's nothing relevant in it. The problem is somewhere above.

When I start the program, the Serial monitor should print "ONE is go".

However, what's happening is that when I upload the program onto my Uno R3, three squares appear in the Serial monitor. Afterwards, when I press the reset button on the Arduino, a blank line appears every time I reset, like an ENTER.

Does anyone know what's happening? Could someone help me out?

Thanks!

WB

It will when you actually invoke the serial connection. Look at sample programs that come with your IDE and they will show you what you missed.

1 Like

Ah ... I get it.

I just forgot to put "Serial.begin(9600)" BEFORE!

HAHA Thanks for your help ... silly mistake!

WB

I knew you would find it. Much better that just writing code for you! Good luck!

Thanks!