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?
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,would post code have in context.
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="";
}
}
Arduino Forum > Using Arduino > Displays > Issue with serial to 20X4 LCD
arduino
Comments
Post a Comment