0

The arduino due has 2 micro-usb ports that you can connect to two separate computers. I need to send different keyboard signals to each computer. How would I do this?

user3808430
  • 103
  • 2

2 Answers2

1

For one of them, use Keyboard as you normally would.

For the other, do whatever Can the 2nd MCU on the UNO R3 be used for keyboard emulation? tells you to do to reprogram the ATmega16U2 connected to the other USB connector.

Ignacio Vazquez-Abrams
  • 17,733
  • 1
  • 28
  • 32
1

While the Arduino Due has two separate USB ports, only one of them is a native port accessible to the processor. The second port is only usable for programming, and is connected to a different and much smaller chip that handles the programming task.

To connect to multiple computers from an Arduino Due, you have two options:

  • You can reprogram the second MCU to allow it to connect to the computer as a keyboard. This method is tricky because it requires an external programmer for it to work.
  • You can use a software USB implementation such as V-USB to use regular digital pins to connect to the computer. This is also tricky because it requires a little electronic know how a few extra components to make this work.

Both options require a little something else to make it work, so you will have to pick based on what you feel more comfortable doing.

Jake C
  • 1,099
  • 7
  • 18