MENU

Fun & Interesting

Effortlessly Communicate Between Two Arduinos with Just Two Wires!

The Last Outpost Workshop 15,632 lượt xem 2 years ago
Video Not Working? Fix It Now

Discover how to easily enable communication between two Arduinos using only two wires in this beginner-friendly tutorial.
Compatible with Nano or Uno boards, this guide will walk you through the process of setting up serial communication on SDA and SCL interfaces using code that hides the complexity.

🔔 Support the channel🔔
https://www.buymeacoffee.com/thelastoutpostworkshop

Arduino Nano:
https://amzn.to/3DnUH7f

Please note that the product links are Amazon affiliate links. As an Amazon Associate, I earn from qualifying purchases at no additional cost to you. This helps support the channel and allows me to continue creating content for you. Thank you for your support!

Get the code and the library :
Arduino A : https://dev.azure.com/overlording/The%20Last%20Outpost%20Workshop/_git/CommArduinoA

Arduino B:
https://dev.azure.com/overlording/The%20Last%20Outpost%20Workshop/_git/CommArduinoB

Chapters:
0:00 Intro
0:53 Wiring Nano, Uno
2:11 Setup in Arduino IDE
3:04 Install the library for Arduino A
3:46 Selecting the right COM port
6:36 Using the library
8:25 Get Incoming Messages
10:00 Code for Arduino B
11:45 Arduino B send a message to Arduino A
13:16 Arduino B send a number to Arduino A
14:23 Arduino A send a message and a number to Arduino B
15:32 Wiring for using a push button and LED on each Arduino
17:05: Arduino A control LED of Arduino B
28:42: Arduino B control LED of Arduino A
30:20: A use case for communication between two Arduino







#arduino #programming #coding #beginners #tutorial #guide #stepbystep #ArduinoCommunication #TwoWire #ArduinoTutorial

Comment