Arduino I2c Serial Communication | Arduino Master Slave Tutorial | Tinkercad

preview_player
Показать описание
In this tutorial we are going to see about Arduino master slave serial communication. Arduino I2c communication between Arduinos, it can be helpful to set up two (or more!) Arduino boards to share information with each other. Connect pin A5 (the clock, or SCL, pin) and pin A4 (the data, or SDA, pin) on the master Arduino to their counterparts on the slave board. Make sure that both boards share a common ground. In order to enable serial communication, the slave Arduino must be connected to your computer via USB.
===========================================
Reference:
===========================================
Git hub for code:
===========================================

Follow me @:
-----------------------------------------------------------------------------------

Music credit: "Royalty Free Music from Bensound"
Рекомендации по теме
Комментарии
Автор

Short, yet well explained and, it works. Thank You :)

garyrowlands
Автор

Very interesting....Even more from the fact...that you program the event in the void setup....and even when there is nothing in the void loop() ....the event is properly acknowledged. Excellent demonstration!!!!

learningpower
Автор

what if I added one more slave then what will be the change in master unit program

Sun_God_
Автор

Hey, this video helped me a lot. I just wanted to ask one quick thing. In Master code at "EndTransmission()" do I have to add the number I put in "beginTransmittion(1)" in this case the "1"? And the same thing on Slave code at "Wire.read()" do I put the same number as in "Wire.begin(1)" the "1"? I wanted to ask this because I dont know if when using more slaves and coding "endTransmission()" it would end all transmissions or only the number I put in. Thank you.

enea.crazzolara
Автор

why you use digitalRead when you should be using analogRead? You are reading from A0 not from a D pin. No?

manuelmatus
Автор

What is the maximum distance between the master and slave? I need to separate them 20ft appart and I doubt if that will work. Thank you!

emilielaplante
Автор

Can data be sent vice versa?
If you can help me with an example please?

constantin
Автор

Hi!
I am trying to connect two Arduino Mega 2560 via SPI (Master - Slave) and it does not work. I used various examples from internet (most of them are Uno to Uno) but nothing. Please, can you make an example:
Mega 2560 Master - > SPI -> Mega 2560 Slave
with the working code and how to do it? I am really in the situation to give up...
(I am using built-in SPI library but I am not sure that it covers other micros except UNO. Is there be problem with SPI pins?).

pecilijevelicanstveni
Автор

i wonder how could this be possible using Mblock. I am looking forward to program my robot using 2 arduinos ans mblock.

diye.
Автор

Hi im haviong an issue with the wire library this is my code for some reason the if statements arent working it just does imediatly the Wire.write(0x00); and after Wire.write(0x01); can you help me?
if (buton == 0);{

first PCF
Wire.write(0x00);
Wire.endTransmission();
}
if (buton == 1);{
first PCF
Wire.write(0x01);
Wire.endTransmission();
}

rafaeloliveira
Автор

i follow your code on thinker cad. but invalid header file .. can you help me

MOTRETKITO
Автор

Bonjour ;-) BRAVO & MERCI, tutoriel simple et efficace.

remim
Автор

Why is it showing invalid header file after compilation?

shashankkachouli
Автор

arduino nano to arduino uno ko led blinking program karen with smartphone

sunilminz
Автор

that is very cool .how can i connect 2 arduino that already have midi code

dnyautechnology
Автор

After every second sentence, You are saying "okay?" 😮😮 this is Horrible 🤮🤮

t.n.
Автор

not work, sangat tidak bermanfaat, membuang-buang waktu

insanfadhilmaulana
Автор

I want to help you with something. How can I contact you privately

mothnaalzouabi
Автор

Why does the code just show an error saying invalid header file?

AniruddhKommajosyulaeeb
join shbcf.ru