Issue with serial to 20X4 LCD


hi guys,
i reading in serial data using software serial port arduino on bluetooth.
i have loop reads in characters string called "indata", prints fine serial monitor whilst being read in im trying use substring function print data 20x4 lcd, doesn't seem work.

i having issues before serial data becoming corrupted or skipping characters when trying write 20x4.

i've included receiver code, ideas or modifications?

code: [select]

void loop() {
  while(rfserial.available() > 0)  //was while
    {
        char recieved = rfserial.read();
        indata += recieved;
     
serial.print(indata);

lcd.print(indata.substring(2,10));
indata="";

        }
}

hi guys,
i reading in serial data using software serial port arduino on bluetooth.
i have loop reads in characters string called "indata", prints fine serial monitor whilst being read in im trying use substring function print data 20x4 lcd, doesn't seem work.

i having issues before serial data becoming corrupted or skipping characters when trying write 20x4.

i've included receiver code, ideas or modifications?

code: [select]

void loop() {
  while(rfserial.available() > 0)  //was while
    {
        char recieved = rfserial.read();
        indata += recieved;
     
serial.print(indata);

lcd.print(indata.substring(2,10));
indata="";

        }
}

would post code have in context.


Arduino Forum > Using Arduino > Displays > Issue with serial to 20X4 LCD


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???