Using USB with Arduino MEGA 2560

Hi, I have an arduino MEGA 2560, and I have a female USB with soldered cables connected to some digital pins.
I just wanted to know if i could connect to it some devices (I know I can connect a PS/2 keyboard but i wanted to know if i can connect something else).

Thanks

that's a female USB socket

is this what you have?

Yes, I have this!

So what do you want to connect and where ?

You need USB host code for that "something else", which you would upload to the ATmega16U2 USB interface chip.

I just want to know what i can connect to the USB socket that can work with the Arduino Mega 2560

Not much of anything, on the Mega2560. However, the Raspberry Pi works very well as a USB host, out of the box.

So can't I connect anything with a USB to the arduino other than a PS/2 protocol keyboard?

You might be able to, if you can find USB host code specific to your device, written for the Mega2560.

However, it is very unlikely that you will find any, because it is so much trouble to write, and the Mega2560 is so limited.

Oh, so you don't know any code for any USB device i can connect to the arduino?

No, sorry.

No problem, thanks for your time!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.