I want take data upto 10 kb from one device serially and send that data to pc serially using arduino is it possible?

i use below code . In simulation its working properly and able to send large data. but is it work in hardware? . I am using arduino uno r3.

#define SERIAL_BUFFER_SIZE 256
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.begin(16, 2);
Serial.println("Data & Time, Mesurement");

}

void loop() {
// put your main code here, to run repeatedly:
while(Serial.available()==0);

char val = Serial.read();
Serial.write(val);
lcd.write(val);

//Serial.print(",");
// Serial.println();

}

can i send large amount of data upto 10kb usnig this code??
#define SERIAL_BUFFER_SIZE 256
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.begin(16, 2);
Serial.println("Data & Time, Mesurement");

}

void loop() {
// put your main code here, to run repeatedly:
while(Serial.available()==0);

char val = Serial.read();
Serial.write(val);
lcd.write(val);

//Serial.print(",");
// Serial.println();

}

You can send as much data as you like through a serial port, but not with that code, it won't work.

See Serial Input Basics - updated for advice on using serial.

If it’s static data, you’re limited by the amount of FLASH, if it’s stored in variables - you’re limited by RAM…
if it’s generated programmatically, or off chip (SD card etc, or network), effectively no limit.

Do you want to 'read' the data into the Arduino (UNO ?)
OR
Send the data from the Arduino.

To send just use
Serial.print(...) as often as you need.

See Arduino Serial I/O for the Real World for problems that can arise sending / receiving lots of data while trying to do other things.

I tried this solution but I don't get any output

You may find that you're limited by the LCD write rate.

Please remember to use code tags when posting code

Duplicate topics merged

Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

lcd is optional want only data in pc. if i done hardware also it will work??

sorry, i am new on forum.

As stated in reply #3, you can send as much data as you want, serially to a PC.

Of course not. Read reply #3 and follow the advice (link) given.

@kd2000
Topic locked, you don't seem to be properly engaging with the advice given or providing much information for people to help you with. Please read the forum instructions shown to you in reply #10

Thanks