Arduino Tutorial #10: Arduino to Arduino I2C

Arduino Tutorial #10: Arduino to Arduino I2C

humanHardDrive

11 лет назад

169,652 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Ysharafaty
@Ysharafaty - 05.11.2023 20:20

i need to use an mpu6050 and L293D motor driver shield on I2C at the same time can you help write a code and explain it you do a great job explaining codes
Thanks

Ответить
@Clip7heApex
@Clip7heApex - 17.07.2022 19:13

Is there a way to identify the piece of information sent? For example if my slave has 10 temperature sensors, 1 in each room, and I want the master to display the readings. How would I distinguish the temperature readings from each other. Or how would I get the master to ask for a specific piece of information like living room temperature?

Ответить
@sebastiancacerespinzon6074
@sebastiancacerespinzon6074 - 21.05.2021 10:54

Thank you so much you help me a lot, excellent video, 10/10

Ответить
@mrstanlez
@mrstanlez - 31.03.2020 21:28

I m using it without resistors and all run smoothly. Thank you. I have the question how to put master in state of sending and receiving messages like strings to/from slave. That because master arduino will read sensors from slave, but sending some instruction to move motors on slave side.


Thank you in advance

Ответить
@Jensettiman
@Jensettiman - 02.03.2020 15:59

Can anyone think of any reason why I cannot get my setup to work? I have connected everything identically and typed in the code exactly like in the video, but the slave board does not respond when I type H or L in the serial monitor on the master. I have also tried going from A4 and A5 to the same on both boards, as well as using the dedicated SDA and SCL pins. I can't tell if it's the master not sending the Wire data to the slave, or the slave not parsing the data.

Ответить
@benkoley9591
@benkoley9591 - 11.02.2020 00:10

Wondering if this would work without connecting the resistors?

Ответить
@NavyGunner1980
@NavyGunner1980 - 31.08.2019 19:24

please stop touching the board with the conductive graphite pencil lead

Ответить
@CN-kc3em
@CN-kc3em - 11.07.2019 10:53

U can show circut map, the tutorial very good, but why not transmit and recieved by 0,1 port.

Ответить
@DiyintheGhetto
@DiyintheGhetto - 14.06.2019 05:09

Hello what if i want to put multiple messages for example hello in one send message and world another send message, How would i be able to display that on the receiver Serial monitor?

Ответить
@ninovitaliano7943
@ninovitaliano7943 - 06.06.2019 15:48

the closest resistor i had to 4.7Kohm was 5K1 would that work?

Ответить
@ImSyed109
@ImSyed109 - 28.05.2019 11:25

what if i want to power up the slave arduino with another power source so that they are both isolated. will they still communicate?

Ответить
@digihz_data
@digihz_data - 04.05.2019 23:07

Excellent explained.

Ответить
@pietmatsobane6790
@pietmatsobane6790 - 09.04.2019 10:20

Thanks Alot . . . really helped me big time

Ответить
@sgtfoose8842
@sgtfoose8842 - 30.12.2018 23:48

Perfect, thanks!

Ответить
@liveniftychart348
@liveniftychart348 - 28.12.2018 11:27

Hlo sir
How can jump from void loop() back to void setup() ?

Ответить
@amitg7034
@amitg7034 - 08.12.2018 20:56

Can you please upload the schematic
Thanks

Ответить
@kasekuchentv7869
@kasekuchentv7869 - 16.11.2018 19:53

Really nice and really helpfull. Keep making videos please.

Ответить
@1978tarun
@1978tarun - 24.08.2018 17:53

👍🏻 good one!

Ответить
@taranagnew436
@taranagnew436 - 05.07.2018 06:44

can someone recomend a wire library that works?

Ответить
@MicheleHjorleifsson
@MicheleHjorleifsson - 19.05.2018 06:02

I just want to say thanks for this video I've been struggling with i2c for sending text back and forth for two days and this is simple and works perfect

Ответить
@punroonraungrit4136
@punroonraungrit4136 - 12.05.2018 10:10

thanks a lots

Ответить
@MultiRdh
@MultiRdh - 01.05.2018 13:22

did i2c work on long distance like 12 meters??

Ответить
@LUCKY007725
@LUCKY007725 - 14.04.2018 19:49

Very useful tutorial
I have DHT sensor connected with arduino slave1, same set for slave2 and one Arduino as master.
Could you please guide me, how I can read the values from both
Regards

Ответить
@brdane
@brdane - 02.04.2018 02:20

I know that if you enable serial to be read from the arduino software it slows processing down a bit, when you use i2c does it slow it down too?

Ответить
@AmitKumar-fg9qr
@AmitKumar-fg9qr - 23.03.2018 04:39

You are the Bucky Roberts of electronics 😉

Ответить
@metradon100
@metradon100 - 06.01.2018 15:58

Great tutorial! Thanks!!!

Ответить
@barmetler
@barmetler - 09.12.2017 14:12

Wire. write(c);

Ответить
@verylongchannelhandle
@verylongchannelhandle - 03.11.2017 15:55

Can i use 1k ohm resistors?

Ответить
@LetsLiveConsciously
@LetsLiveConsciously - 17.10.2017 16:04

Did u just say, "I am human hard drive?"

Ответить
@borutonarutonextgeneration691
@borutonarutonextgeneration691 - 09.09.2017 20:31

How will it work with an arduino nano and arduino nano

Ответить
@alkanakisu4626
@alkanakisu4626 - 05.09.2017 20:16

Its i square c btw

Ответить
@Waylander131
@Waylander131 - 19.07.2017 10:09

Fantastic tutorial, simple and easy to follow. Can you do similar for the case when we have more than one master in an i2c network of several arduinos? I'd really like to see how the Arbitration works in multi-master case. I am building a system of 4 to 6 arduinos connected to various sensors and indicators and communicating between each other over i2c.

Ответить
@beicel
@beicel - 23.05.2017 23:57

@humanHardDrive, I really liked this tutorial, but I wonder, how can I pass from the Terminal window from the Master, like number "21" and the Slave receives it? Thank you!

Ответить
@headstonegraveyards5370
@headstonegraveyards5370 - 09.05.2017 21:38

Excellent tutorial, thanks!

Ответить
@qwerkek
@qwerkek - 03.05.2017 20:30

just perfect, thanks A F*CKING LOT BROAAAAAAAh

Ответить
@SanjaySingh-pn5uc
@SanjaySingh-pn5uc - 23.03.2017 07:04

very nice explanation... this helped me alot in my project, THANKS...

Ответить
@Xenorki
@Xenorki - 28.02.2017 13:42

very good tuto!

Ответить
@kekecjan
@kekecjan - 13.02.2017 23:10

hey, in school i have been doing i2c communication with two arduinos. Master arduino has adding +1 (x=x+1) and sending to slave but the problem was when it reaches 255 it goes back to 0, i don't know why.Do you know how to do it?It has to go at least over 50 000 or more but without string has to be integer.

Ответить
@nikolaskurnia7404
@nikolaskurnia7404 - 09.02.2017 21:25

How come the Wire.onReceive(receiveEvent) can be put on void setup instead of loop??

Ответить
@UnapologeticallyNerd
@UnapologeticallyNerd - 23.01.2017 22:50

Thanks!

Ответить
@nikolastoimenov8981
@nikolastoimenov8981 - 24.12.2016 12:41

can you use the i2c with two arduino unos

Ответить
@luisponce898
@luisponce898 - 25.11.2016 21:49

que le paso a mcqueen?

Ответить
@rajpalvishwakarma7613
@rajpalvishwakarma7613 - 01.11.2016 14:31

Hi, I am connecting to same as well as you shown a video , but in my case Arduino does not working . nothing happen when i press in the Serial monitor 'H' ... it just blinking master Arduino led. could you please help me some one.

Ответить
@jeremylim5636
@jeremylim5636 - 14.10.2016 15:16

Thank you very much

Ответить
@procrafers
@procrafers - 09.09.2016 08:25

you have 1 sub extra

Ответить
@kevheys2897
@kevheys2897 - 31.08.2016 00:19

Great Tutorial. Easy explanations and was able to follow exactly step by step. Great Job!

Ответить
@joe_mckirdy
@joe_mckirdy - 26.06.2016 03:38

Couple questions: Can two slaves send messages to each other and can there be multiple lines of communication. Perhaps a lines from a master to slaves and then a different communication line from the slave to other arduinos.

Ответить
@teslacoil20kv55
@teslacoil20kv55 - 24.04.2016 13:01

Why you din't not use github... ??

Ответить