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.
attachment 0
12 Replies
Joseph Ogbonna
Joseph Ogbonna•2w ago
Ok got it. Your connection is right. I will send a Guideline right away
Joseph Ogbonna
Joseph Ogbonna•2w ago
How To Mechatronics
Ultrasonic Sensor HC-SR04 and Arduino - Complete Guide
In this tutorial we will learn how to use the HC-SR04 Ultrasonic sensor with Arduino. It's the most popular sensor for measuring distance.
aymen ammari
aymen ammari•2w ago
I'm not sure this is the right link to me, I'm not confused about ultrasonic sensor, I'm looking for a way to transfer data between 2 arduinos using USB type C. Any thoughts?
Joseph Ogbonna
Joseph Ogbonna•2w ago
Are both end of the cable using type C port ?
aymen ammari
aymen ammari•2w ago
Yes Sir
aymen ammari
aymen ammari•6d ago
Did you find any interesting information about that mr joseph?
Joseph Ogbonna
Joseph Ogbonna•6d ago
I think is to get a type C female connector for both end and use it on the design. Just my thoughts 🤔
aymen ammari
aymen ammari•6d ago
Yes that's what I did but I just missing the code between them to transfer data
Joseph Ogbonna
Joseph Ogbonna•6d ago
Let me confirm if I can find a library for this
aymen ammari
aymen ammari•6d ago
Please, it will help me a lot
Joseph Ogbonna
Joseph Ogbonna•6d ago
I would say you should the original one. Because I onced got an stlink V2, and most of the time my system couldn't detect it right away. So I say get the original
Want results from more Discord servers?
Add your server
More Posts
How can we strike a balance between security and performance in IoT devices?How can we strike a balance between security and performance in IoT devices, especially low-power onManaging Priorities in a CAN Bus Network with Arduino Uno and MCP2515 Moduleshello everyone, i have a project of realizing CAN bus, to achieve it i use two Arduinos uno and two How do I set and manage interrupt priorities in FreeRTOS?@Middleware & OS How do I set and manage interrupt priorities in FreeRTOS? My higher priority interIf I write a Python program with a GUI, can I launch it from the Linux CLI and still get the GUI?I'm expecting the answer to be no, but I want to confirm. If I write a Python program with a GUI, caSeeking open-source project without ST HAL for learning low-level drivers & best practices.@Middleware & OS I'm a Newbie in STM32 dev for few months now. Seeking open-source project without Is it good practice to use MQTT to setdata for an IoT device?Hey guys @IoT Cloud I know MQTT uses publish/subscribe, meaning all clients can pub/sub to any topicI need help on secure communication.Hello all, I need help on secure communication. If any of you happen to know which library for mqtt-What are the benefits of using 64 priority levels in ThreadX with CMSIS-RTOS?Good day everyone, I am trying to use ThreadX with CMSIS RTOS in a project. The `cmsis_os2.c` file sHas anyone here encountered UML being used in your firmware development experience?@Middleware & OS I have found this UML diagrams, sequence diagrams and class diagrams in particular,Simple IP based intercom device voice communication protocolI like to know , which voice communication protocol helps me to setup and make voice communication b