Go Down

Topic: Serial communication + mouse emulation at the same time? (Read 123 times) previous topic - next topic

I would like to use the arduino due as a mouse/keyboard and at the same time use serial communication. Is this possible? If i understand it correctly, you have to use the usb native port on the due to emulate a keyboard. In the "getting started" page of the due it says it isn't that simple to use serial communication on the native port. I would be very thankful if somebody could explain (in simple language) how to set up serial communication via the native usb port (what bps rate should I use?).

MorganS

It should be possible to set up several different types of communication over one USB. Each different type (HID, Serial) can identify itself separately. It must also be possible to do several items of the same type - I have a phone that shows up as 2 storage devices when it's plugged in.

Doing that through the Arduino libraries? I think it might take a lot of deep understanding how USB really works.

SerialUSB doesn't seem to be dependent on baud rate. You declare a baud rate in the SerialUSB.begin() but it doesn't seem to matter if the serial monitor names a different baud rate.

In the worst case, plug in a second USB on the programming port and use Serial.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy