Garbage data in the serial Monitor !! Need Help


hi all,

i have question regarding unwanted/garbage data shown in serial monitor while running serialevent example. .

well, project sending soil temperature sensor other arduino uno using arduino uno in sender side xbee(type zigbee series 2) connected using arduino wireless sd shield has place xbee & sd card, receiver side have same components arduino uno, xbee ,arduino wireless sd shield & sd card. .

i want transmit data of sensor receiver , saving them in sd card, problem when receive data , receive them unwanted data in beginning of each line of results , seen in picture in attachment !

i think problem code of serialevent .

the code receiver  in attachment !

please need ur fast possible !!

this line wrong
serialevent(); //call function
you don't call serialevent() - happens automatically.


serialevent() bit of nonsense. same code
code: [select]
void loop() {
  // other code
  if (serial.available() > 0) {
     myserialreadfunction();
  }
}


have @ serial input basics - simple reliable ways receive data

...r


Arduino Forum > Using Arduino > Programming Questions > Garbage data in the serial Monitor !! Need Help


arduino

Comments