© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
DevHeads IoT Integration ServerDIIS
DevHeads IoT Integration Server•2y ago•
13 replies
aymen ammari

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.
file0.jpg
Solution
This is it

https://circuitdigest.com/microcontroller-projects/arduino-spi-communication-tutorial
How to use SPI (Serial Peripheral Interface) in Arduino to Communic...
How to use SPI (Serial Peripheral Interface) in Arduino to Communic...
Jump to solution
DevHeads IoT Integration Server banner
DevHeads IoT Integration ServerJoin
The DevHeads IoT Integration Server accelerates technology engineering by helping pro devs learn, share and collaborate.
2,984Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

When to use I2C, SPI, or UART Communication Protocols in Arduino-Based Embedded System?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
3y ago
What is the difference between the two transistors referred to!!
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago
What is the difference between the two transistors referred to!!
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago
Should I Connect the 120Ω Resistor on UART-to-RS485 Converter for 2-Module Communication?
DevHeads IoT Integration ServerDIISDevHeads IoT Integration Server / 🟩-pcb-and-analog
2y ago