Go Down

Topic: how fast can you send 1meg to the arduino using serial? (Read 1 time) previous topic - next topic


you should be able to send it in about 87seconds or some thing.

has any one done this? can they confirm it only takes a few mins?



Code: [Select]

void setup()
  Serial.println("I am Arduino");

void loop()
  unsigned long start = millis();
  for ( long i = 0; i< 1024L * 1024L; i++)
  Serial.print("\n\ndone: ");
  Serial.println(millis() - start);

outputs :
... (lots of lines)

done: 89130 so about a minute and a half under optimal conditions.. If your sketch has to sample a sensor, read eeprom whatever it will take more time.

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)


Assuming serial, at 115200 bps that's roughly 11,520 bytes a second or 87 seconds so you're right.

Depending on what devices we're talking about you can use SPI or I2C which are faster.

What are you going to do with all this data?

Rob Gray aka the GRAYnomad www.robgray.com


building a arduino 2 channel mp3 audio board, and will be storing the mp3 data on dataflash not sd card.  so need a way to get the data onto the flash lol, so will just downloading it using the serial interface. 87sec a meg is not bad as my samples will be small and will probably only add up to a few meg.

I read on this forum u can actually speed up that transfer. where or not it works i dont no hehe

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131