Help with reading and writing data serially using arduino

Need help in a project of mine.
I have a project wherein i need to display data serially on a PC. But the data is already given in a text file.
My only constraint is that it has to be displayed at variable speeds which i need to accomplish using multiple push buttons.
How do i get about sending the text file to arduino so that it can display it.

How do i get about sending the text file to arduino so that it can display it.

To the Arduino?

What text file?

Display it where?

.

Where is the text file containing the data?

If it is already on the PC and you want to view the data on a PC why is there a need for an Arduino?

You need to provide a proper description of your project if you want useful advice.

...R

AnkitSancheti:
Its already on the pc but the display back has to be such that on triggering the push buttons the delay changes.
So the text file needs be displayed at variable delays.

I don't understand. Is the word I have highlighted a typo and should it be "display"?

In any case there should be no problem writing a PC program that could receive messages from an Arduino when a button connected to the Arduino is pressed. Then the PC program can change its behaviour depending on the message.

You really need to give us a comprehensive description of your whole project - not just little snippets.

...R

If you have a file on a SD card that is inserted into a module connected to the Arduino, it's simple to read and send over the serial port. See the Arduino SD reference for ideas

Your push button(s) is also reasonably simple. With a single button, you can cycle through a set of delays every time it's pressed; e.g. 100ms per line delay, 200ms per line delay, 500ms per line delay etc. Or inter-character delays if that is what is needed.

For push buttons, see e.g. the debounce and the state change detection examples that come with the IDE.

sterretje:
If you have a file on a SD card that is inserted into a module connected to the Arduino, it's simple to read and send over the serial port. See the Arduino SD reference for ideas

Indeed.

But why go to all that trouble when the file is already on the PC. :slight_smile:

...R

Robin2:
Indeed.

But why go to all that trouble when the file is already on the PC. :slight_smile:

...R

Maybe I misinterpreted "I have a project wherein i need to display data serially on a PC" from the opening post ?? :smiley:

Maybe OP wants to send the file to the Arduino and delay the echoing back. No idea actually :wink:

And maybe the pushbuttons are actually windows form controls (or so); again no idea actually :wink: Except that it will not be an Arduino question in that case :smiley:

I. too, may have misinterpreted stuff. I was relying on these words in Reply #4

Its already on the pc

We await the return of the OP with enlightenment.

...R