Trying to establish SPI communication between two Arduinos
I'm trying to establish SPI communication between two Arduinos. When I directly wire pins 10, 11, 12, and 13 of both Arduinos, it works well and I can make them send and receive data.
For a project I'm working on, my idea is to develop a quick connection between both Arduinos, something like a plug-and-play connection, so I thought it was a good idea to use a USB-C adapter to easily connect them. I chose USB-C because it is a cheaper solution in terms of adapters and cables.
I imagine it is a bad idea since it's not working; there's no communication between the Arduinos.
Could you tell me is this diagram is right or not + can anyone help me with a code to transfer ultrasonic sensor data?
Attached is the wiring diagram.
For a project I'm working on, my idea is to develop a quick connection between both Arduinos, something like a plug-and-play connection, so I thought it was a good idea to use a USB-C adapter to easily connect them. I chose USB-C because it is a cheaper solution in terms of adapters and cables.
I imagine it is a bad idea since it's not working; there's no communication between the Arduinos.
Could you tell me is this diagram is right or not + can anyone help me with a code to transfer ultrasonic sensor data?
Attached is the wiring diagram.

