But I have questions/comments. So first up, the USB connection on the Cortex is only good for code download and talking on the VEXnet. So it’s not possible for it to read a flashdrive.
My question is, how are you running out of space? Do you have that much code? Or are you trying to load data into the EEPROM?
Thats what we are trying to figure out. Basically, our partner switch will be used for mainly sounds and aesthetics. However, we cant seem to find out how to maximize our Cortex storage. A single 30 second song takes up like half of the storage.
technically it is possible if you can modify the master firmware to read from the flash drive ( modifying firmware ruled illegal though ) but as discussed on another thread its easier to just use a i2c sd card reader
You could look into playing notes rather than wav files. This is a lot more efficient storage but a little more difficult to make the melody come through.
Ah yes, “in theory” I weigh my ideal weight of 185, “in practice” not so much.
In another thread James said that he put the I2C routines in RobotC, so some bright roboteer could find a low cost board and write some code to make it work.
On the other hand, it may be easier to write a program to take a MP3 file and turn it into notes to be played…
On the other, other hand, some people find the robot music annoying …
there are MP3 to MIDI programs, pretty easy to make one, just take the FFT data and get the equivalent notes to get as close to the original as possible
I years ago, when I played piano, took sheet music and just a list of what piano notes frequencies were and made song that I thought came out pretty well.