Re: [Eu 3.1]How to send many files to Arduino via USB?
- Posted by ryanj Mar 24, 2014
- 2277 views
Hi all, I used to be here and contribute a little, not much, been away, not really back, not any more proficient coding than I was then, but I do need some help trying to be able to load a bunch of .mp3 files into a MP3/SDcard daughter board ("shield") on an Arduino Uno.
I have a VS1053 MP3 Codec + SD dboard to use with Arduino Uno, which can store .mp3 files on the SD card to play through the VS1053, but I'll be mounting the assembly in such a way that makes it too hard to remove the microSD card from it to routinely change its contents; so I'm looking for a way to command delete specific files and then add a directory full of new .mp3 via the USB link from my laptop.
The command delete might be easy, through the Arduino IDE and its serial monitor, and I should be able to easily enough reprise selecting a directory & working through it here on the computer side, but I know nothing about serial, nor if Euphoria can even access the USB port.
Don't think I saw anything here that was directly related, though I might have missed it, so any help would be appreciated.
Dan
Hello Dan.
I'm not very familiar with Arduino, but i do play with the Propeller micro-controller. I have been working on a library that can interface with FTDI USB serial devices, and it works well, although it is incomplete.
Bummer, i just looked it up, and unfortunately, "The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega16U2 (Atmega8U2 up to version R2) programmed as a USB-to-serial converter." I haven't looked into it, but if the driver is as simple as FTDI, it shouldn't be too hard to wrap the dll file. If you can find the documentation for that, it may be possible to write a euphoria wrapper without too much trouble. After you get the basic tx/rx working, you would have to spend some time designing a communication protocol and some sort of command system (if there isn't already a library out there for that).