Go Down

Topic: Text from .csv or .txt file (Read 539 times) previous topic - next topic

Kelly

Hey everyone! Just want to start off saying thank you for all the input you gave me, I now have an arduino uno!!!! and a LCD keypad shield.

MY QUESTION
I would like the Arduino to look for a .csv or .txt file on my computer say C: for instances. I would like it to display the text with in that file and show it on the screen.
It wont ever be more then 16 characters long and more then 2 rows. I would like it to reload the file every 60sec. and if it has been changed show the new text on the screen.
I will provide some code below that i am using now to make the screen work (i found this on google im still new to codeing and trying to learn~!)
Thank you for all your help again!

Here is the code i have now

Code: [Select]

#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.setCursor(0,0);
  lcd.print("Line #1 only 16.");
  lcd.setCursor(0,1);
  lcd.print("Line #2 only 16.");
}

void loop() {
}



WizenedEE

Quote
I would like the Arduino to look for a .csv or .txt file on my computer say C: for instances. I would like it to display the text with in that file and show it on the screen.


A serial device such as the arduino can't access files on your computer. You can write a program that runs on your computer that finds the file and sends it over the serial port to the arduino.

rockwallaby

Quote

A serial device such as the arduino can't access files on your computer.

I have an idea that that statement is not necessarily correct, maybe true if you work with the Microsoft windows OS, but with other operating systems for instance, under Unix or Linux I dare say you can.

Paul

PeterH


I would like the Arduino to look for a .csv or .txt file on my computer say C: for instances.


That looks like a Windows drive designation - is your PC running Windows? If so you can use Gobetwino to enable your Arduino to read the contents of a file on the PC.
I only provide help via the forum - please do not contact me for private consultancy.

PaulS

Quote
but with other operating systems for instance, under Unix or Linux I dare say you can.

You want to back that assertion up with some Arduino code that talks to the serial port and actually makes the serial port, that nothing is listening to, access a file on the PC and spool its contents back?

Go Up