Sign up ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free.

I have a Sparkfun EL sequencer board, which uses the FTDI interface to connect to a USB cable. I would like to hook up a MakeyMakey via USB and communicate between the two. I have not had any success by hooking the two via a USB hub.

Is it possible to communicate between the FTDI/USB cable to another USB? Do I need to wire these together directly via USB? Are then even compatible?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

No, it is not possible to interconnect two USB slave devices, even with a hub. You would need to have a USB host device upstream of the hub to shuffle data between them.

There exist embedded USB host devices which could be made to do this, but programming them for one peripheral is tricky enough. Therefore instead of using one to shuffle data between two slaves, it is probably more practical to use the embedded USB host to talk to only device, and use it's serial UART (pretty much all, except perhaps for highly specialized chips would have them) in place of the USB serial cable, as this will make the overall software simpler than trying to juggle two slaves downstream of a hub. An exception would be if the embedded hub is really a miniaturized full featured computer with a conventional operating system and USB host stack; ie, on something like a raspberry pi you would just want to write software to shuffle data between the peripherals, possibly even (depending on the slaves and drivers) using serial APIs rather than USB APIs.

Another option, if both USB slave devices are ultimately USB-serial converters, would be to disable that functionally and directly connect their serial UARTS with a crossover cable (and any voltage translation such as 3.3v - 5v that might be necessary).

share|improve this answer
    
Thanks for the info. I've found what looks like a reasonable alternative I can try: arduino.cc/en/Tutorial/MasterWriter – Diodeus Sep 13 '13 at 17:20
1  
Sure, if you have available I2C ports on both boards, you can probably use that instead of USB or asynchronous serial. It will likely require changes to their software, but probably simpler than making an embedded host juggle two USB slaves. – Chris Stratton Sep 13 '13 at 17:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.