Arduino write data - serial

And what code have you got already?

Your task breaks down into several parts - even you’ve described them!

First you will need to read the data from the file. You can do this using readStrings().

Then you want to loop over all the data line by line. You can do this with a for loop.

For each line of data, you probably want to split it into numbers. You can use the split() function to do this.

Finally, you will want to write the numbers to a serial port. You probably don’t want to use the delay() function! Instead, you will probably want to use millis(), or a check to see if your serial port is ready for more data.


Develop your code one step at a time.
Start with the step that reads the data from the file.
Make sure you have the data read correctly before moving on!

Or maybe you already have the data being read and parsed properly? WE CAN’T TELL BECAUSE YOU HAVEN’T POSTED ANY CODE. Show us what you already have working so we can help you specifically with the parts that AREN’T working.