Serial Monitor not Printing

I tried to print the BMP180 to the Serial Port yesterday, but I was not sure if it was my program or the serial.print. So I went back to the basics and made a hello.world program to see. It is STILL not printing even though the baud is consistent on both IDE and serial monitor. Code as follows(p.s the led is flashing correctly. I appreciate any help!

static const int heartbeat = 13;

void setup() {
Serial.begin(9600);
pinMode( heartbeat, OUTPUT );
}

void loop() {
digitalWrite( heartbeat, HIGH);
Serial.println("Hello");
digitalWrite( heartbeat, LOW);
delay(1000);
}

Code looks 100% kosher. I can't imagine you have disconnected it, so just make sure the monitor is turned on. It's under "Tools" or go CTRL+Shift+M.

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

What model Arduino and what version IDE are you using?

Thanks.. Tom... :slight_smile:

Hi,
Try this edit of your code;
You would have been seeing the TX LED flashing as the pin13 LED would not have been ON long enough to see.

static const int heartbeatPin = 13;


void setup()
{
  Serial.begin(9600);
  Serial.println("***Hello and LED Test Code***");
  pinMode( heartbeatPin, OUTPUT);
}
void loop()
{
  digitalWrite( heartbeatPin, HIGH);
  delay(500);
  Serial.println("Hello");
  digitalWrite( heartbeatPin, LOW);
  delay(500);
}

Tom.. :slight_smile:

Thank you all so much, turns out for some reason my mac serial ports screwed up. It works on my surface, weird stuff!

-sam

Hi,
Great to see you found the problem, thanks for letting us know the solution.
MACs are weird stuff no matter how they perform! ! ! ! :stuck_out_tongue_closed_eyes: ;D :grinning: ;D

Tom.... :slight_smile: