Go Down

Topic: it is possible to read a .txt file from the pc???  (Read 137 times) previous topic - next topic

AlanBrito123

I've been looking a way to read a text file from the pc so i can get the values from.

i only found that is possible to read fro a SD but i will like to read directly from the PC using the filepath.

any help??

UKHeliBob

Unless there is program running on the PC that is sending the data then the Arduino cannot read from the PC.  Haw big is the file that you want to read ?
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

AlanBrito123

What program could i use? the data is just a few  KB just a couple of numbers to give the values for variables on the program.

septillion

A program you write ;)

Aka, out of the box there isn't a way (unless you can find a project that did exactly that).
Use fricking code tags!!!!
I want x => I would like x, I need help => I would like help, Need fast => Go and pay someone to do the job...

NEW Library to make fading leds a piece of cake
https://github.com/septillion-git/FadeLed

MorganS

Better serial terminals do exist. Something like RealTerm can pick a file and transmit it to the Arduino.
"The problem is in the code you didn't post."

DrAzzy

You do realize that a file of "several kb" may be a problem to fit in the memory of an AVR arduino (Uno has 2k of ram, mega 8k, wifi rev 2 6k). The ones based on SAMD or some of the higher performance third party boards have more RAM).
ATTinyCore and megaTinyCore for all ATtiny, DxCore for DA/DB-series! github.com/SpenceKonde
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Go Up