USB Extensions (using a hub)

From the QandA forum


Karthik answered No.

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?

Sound Files pretty much.

Last year’s 1727B had a whole bunch of songs on their robot (made with RTTTL) and they didn’t need to do anything weird to it.

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.

last year they had most of the partner joystick just controlling songs, and they definitely had at least 3 or 4 songs.

technically it is possible if you can modify the master firmware to read from the flash drive ( modifying firmware ruled illegal though :frowning: ) 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.

Alrighty, Thanks for the advice! I will defiantly try that.

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 …

Boop Boop, Beep Bop, BING!

If you want some music:

Halo Theme:

Ghost Busters (stereo with 2 robots):

This was done by taking a MIDI file, stripping it to 1 (or 2) tracks converting the MIDI to a note list with times, and then into code.

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.