An sorry, I speak spanish
Hello friends, I need your help,
MICRO = MICROCONTROLLER OR MICROPROCESSOR (As required by the project).
Context:
Having two accelerometers per I2C communication protocol and a touch screen per communication protocol SPI connected to a micro and the micro is disconnected from the computer, (Autonomous).
When I of the instruction to save from the touch screen in a file can be .txt I would like it to be .doc with the information read of the accelerometers, date and time, and basic information entered from the touch screen in the micro or shield and When connecting the micro or shield to the computer via USB (Cable), the computer detects the micro as a USB (Pendrive) memory to be able to manually extract the file from windows.
example:
My Computer / (f:) Pendrive / File.txt Control + C -> C: \ Users \ User \ Documents Control + V
My questions are:
-
that Microcontroller or microprocessor serves me and that I do not run out short by reading the two sensors by I2C, the touch screen ?.
-
that micro or shield serves me so that when connecting by USB cable, the computer will detect me as a USB MEMORY (PENDRIVE) and have space to store ?.
Note: The micro is connected to the computer, for example when you connect a mobile phone cable to the computer that appears as a usb memory. EXAMPLE (F
Memory
-
Question, you can save the information read from the sensors and the screen into a word file or jpg with graphics in a micro / shield giving the command from the touch screen.
Note: Microprocessors or microcontrollers can be used.
MICRO = MICROCONTROLLER THE MICROPROCESSOR.
You're looking for a data logger that will log 2 sensors connected via I2C and a TFT connected via SPI and save the data on a USB pendrive and also prints it to prints serial.
It's much easier to save .txt files to an SD card are there are tons of breakout options to make it simple. I doubt you'll be able to write or read .doc files.
If it must be a pendrive, you'll need one of these, and you can interface with the drive with the serial port. There is an arduino library available here.
You can then use Software Serial to print the data to the serial monitor.
The TFT screen is easy you can google that. I like Adafruit's stuff and they have awesome tutorials to make it easy. You can their displays here. It is possible to display a jpeg on a TFT but not save the screen image as one.
Any of the common Aduino boards will be fine it terms of computing power. If you find a convenient shield, for an Uno, then go fat that. If you want it to be small then go for a nano.
The computer will detect the arduino as a com port and you will connect it to with the serial monitor. It's not possible for the arduino to read or write files directly off the computer port because the VDIP1 module is a host device and so is your computer port.
Sorry I only know a few words en Espanol, and probably can't spell most of them right and have no accent keys....
You can name your files anything you want within 8 characters, dot, 3 characters.
There is no magic in the dot txt or dot doc or even dot xyz, they are just names.
Will WINBLOWS recognize the name? Yes if you put it into your File Options otherwise No.
The single biggest problem you will have is making your project look like a USB drive.
If the PC has an SD reader or you have a reliable SD to USB adapter then the easy way is put an SD adapter on your Arduino (you can make your own) to log data then take the SD card out of the Arduino and read it on the PC using the media reader or SD-to-USB adapter.
Tu hablas Ingles muy bien.
Keep on going.
Arduino seems to unify people all over this planet.
However, you cannot change a TXT. file into a DOC. file that easily. It is not only the extension of the file name. DOC. files have a completely different internal format.
I got paid to write code since 1980. You can name these files whatever you want. Check your system docs.
If you name the file .doc, there may be some program(s) that won't read it but the name is up to you.
There is NOTHING magic or holy about DOSFAT file names, or Unix file names for that matter. Nothing!
Compatibility with existing systems programs is NOT a limit on file names.
Sheesh, I've used .doc in packages I wrote. Nothing stopped me. Nothing went wrong. Nothing will.
Renaming Files
Changing file names is very easy. Changing the extension from txt to pdf is very easy.
And now try to open this file in Acrobat Reader.
You will get a "wrong format" warning.
However, MS Word will accept files that have been renamed from TXT to DOC.
Please do not suggest, that changing a file name extension will make it readable for another program.
arduinoaleman:
Renaming Files
Changing file names is very easy. Changing the extension from txt to pdf is very easy.
And now try to open this file in Acrobat Reader.
You will get a "wrong format" warning.
However, MS Word will accept files that have been renamed from TXT to DOC.
Please do not suggest, that changing a file name extension will make it readable for another program.
You address what I never wrote. Try reading my posts again but this time leave your strawman out.
And by the way, when you write your own code you don't have to rename files, just name them.