I'm trying to build a split keyboard and need some help understanding how to connect the pins of the USB C connectors to the Arduino boards.
What I want to achieve is something like this:
- The outer USB C connectors on each PCB (gray boxes) can be connected to the PC, but only 1 at a time, and these will be connected internally to the Arduino boards USB C connectors.
It says USB-C there, most likely I will just either put the Arduino there directly or an extension cable that will be plugged in the Arduinos USB C port.
- The halves cannot be connected through a USB hub, as they need to communicate to trigger certain functionality on both boards at the same time with a single trigger (switch or something else).
Here are some pictures of another split keyboard I found that has this setup on their PCBs (SOL 3, if anyone's interested).
The USB C connector has the following pins
There are quite a few examples on how to interconnect arduinos directly through SPI, and which pins on each board you can use for that.
For example: Do you know Arduino? – SPI and Arduino SPI Library – E-Tinkers
But how do I connect the Arduino pins to the USB C connector?
GND is obvious (A1, A12, B12 or B1), but what about the 5V, MOSI, MISO, SS and SCK pins?
Also, do I need to add any other components like resistors between the pins of the Arduino board and the USB C connector?