Hello,
my program was working normally until yesterday. Then I add some arrays in the program, changed nothing in the setup but I cannot even see the messages in setup.
Here are what I added, and my setup function which is the same as before:
char* responses_array[]={
"80","81","82"};
char* alive_array[]={
"75","76","77"};
char* responses_to_wait[NUMBER_OF_BODIES];
char* alive_to_wait[NUMBER_OF_BODIES];
int positions[NUMBER_OF_BODIES];
int bodies_to_send_to[NUMBER_OF_BODIES];
void setup()
{
Serial.begin(57600);
Serial.println( "Arduino started sending bytes via XBee Vol.2" );
// set the data rate for the SoftwareSerial port
xbee.begin(9600);
lcd.begin(16,2); // columns, rows. use 16,2 for a 16x2 LCD, etc.
lcd.clear(); // start with a blank screen
lcd.setCursor(0,0); // set cursor to column 0, row 0 (the first row)
lcd.print(upRow); // change this text to whatever you like. keep it clean.
lcd.setCursor(0,1); // set cursor to column 0, row 1
lcd.print(bottomRow);
for(int i=0;i<NUMBER_OF_BODIES;i++){
positions[i]=0;
Serial.print("Setting position at 0: ");
Serial.print(i);
}
Serial.println(" ");
}
in the Serial I see something like this:
¬Hø¬Hø¬Hø¬Hø¬Hø¬HøÔ
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
¬Hø¬Hø¬Hø¬Hø¬Hø¬HøÔ
Ô
¬Hø¬Hø¬Hø¬HøÔ
Ô
Ô
Ô
Ô
¬Hø¬Hø¬Hø¬Hø¬Hø¬HøÔ
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
Ô
¬Hø¬Hø¬Hø¬Hø¬Hø¬HøÔ
I have tried with two different arduino UNO, and cables but still nothing.
When I upload the program, TX and RX blink at the same time, and then TX blinks so fast.
As I remember before, TX was not blinking that fast.
If I run the last code, it runs without any problem.