Uno writing / reading data to / from Computer HD

Hi,

I have read a number of posts but they describe hooking a HD up to the UNO board which is not what I am looking for at all.

I have two cases to consider.

  1. I have one integer number that I would like to read from a file on my HD as part of the UNO programming and use it in the program being downloaded to the UNO. As part of the program, I would manipulate the number and then would like to write it back to the same file on my HD. Then the programming of the UNO could commence with the manipulated number.

  2. Is similar to 1 but slightly more involved. I have 10 numbers in a csv file on my HD. [I am not sure of the best file type but csv seems like it might work.] As part of the program, I would like to read the numbers from the file and populate an array. I would manipulate the array and write the numbers back to the same file on the HD. Then the programming of the UNO could commence with the manipulated array.

I am not sure if this is possible and I am not sure what to search for to help figure this out so I thought I would ask for advice here.

Thanks in advance for your help!

You hint that you already have the HDD connected to the Arduino and can seek/read/write with the HDD. Is this true?

Paul

If the hard disk is on a PC then it can only be read by a program running on the PC.

You could write a PC program that listens for messages from your Arduino and which can respond to those messages by getting data from the hard disk and passing the data to the Arduino.

…R

What about an SD card? You could write your CSV file to the SD card on the pc and then insert it into an SD card adaptor attached to the Arduino. The Arduino can read & update the file. Later, you can transfer the SD card back to the pc and copy the file to the hd.

Do you have a web server? An Arduino with WiFi or Ethernet could request the data from the server. A PHP script on the server could respond to the request by reading the data from the hd and sending this back to the Arduino. Later, the Arduino could send another request to the server to save the updated values. A second PHP script would read the request and update the file on the hd.

Hi,
What is the application that needs to change a file contents on a HD by a microcontroller?

Tom.. :slight_smile:

Hello all,

I guess I confused you all. I have a Uno connected to my laptop with the standard USB cable. What I want to do is as part of the Sketch I would like to read from and write to a file on the laptop HD.

I do not want to add a HD to the UNO or add an SD card.

Is that clearer?

Thanks in advance for your help!

See reply #2

Techhack:
Hello all,

I guess I confused you all. I have a Uno connected to my laptop with the standard USB cable. What I want to do is as part of the Sketch I would like to read from and write to a file on the laptop HD.

I do not want to add a HD to the UNO or add an SD card.

Is that clearer?

Thanks in advance for your help!

gobetwino is/was a decent pc app that does just that among tasks though the site seems dead now…

I don't think we were the confused ones.

Paul

sherzaad:
gobetwino is/was a decent pc app that does just that among tasks though the site seems dead now...

Thank you this looks like just what I was asking about