I2C Part 1 - Using 2 Arduinos

I2C Part 1 - Using 2 Arduinos

DroneBot Workshop

5 лет назад

415,405 Просмотров

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


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

@diye.28
@diye.28 - 21.05.2022 18:31

I wonder is there any way this could be possiblee (connection 2 arduinos) in mblock. I would be highly appreciated any sort of help because im teaching to kids and we are using code blocking

Ответить
@ztiger09
@ztiger09 - 03.06.2022 23:29

can you connect wemos D1 R and adruino uno?

Ответить
@tanmeowsoon5252
@tanmeowsoon5252 - 15.06.2022 05:11

Hi Sir good day where can i get your program so i can test and run it

Ответить
@andrewparker2751
@andrewparker2751 - 24.06.2022 19:07

That was the best description & explanation of I2C I've found. Excellent work, and thanks for the video!

Ответить
@dsbohra
@dsbohra - 21.07.2022 05:27

Excellent explanation.

Ответить
@andrei2652
@andrei2652 - 21.07.2022 22:10

i don't know how the i2c transfer demonstration worked here in this video, did exactly the same in tinkercad and the code it's full orange of errors everywhere. double checked everything it doesn't make any sense at all.

Ответить
@mehmetaltinsoy525
@mehmetaltinsoy525 - 29.08.2022 22:22

Great video. Thanks

Ответить
@ΑντώνιοςΜανώλακας
@ΑντώνιοςΜανώλακας - 08.09.2022 00:11

Just perfect. Thanks

Ответить
@richardbrown2290
@richardbrown2290 - 11.09.2022 17:15

maybe I missed this... why do you use slave_address 9? the bit pattern is 1001. Is that the reason? Thanks Richard.. OK figured it out.. must be a number between 8 and 127.. any number.. Thanks..

Ответить
@rwurttem
@rwurttem - 18.09.2022 21:33

Great video! Thank you! Question... The receiveEvent() and requestEvent() functions, do those just get forked off into the background and run on their own separate thread waiting for a request?

Ответить
@Red_Fang.
@Red_Fang. - 27.09.2022 09:18

Hello, i have a same project about i2c, and my problem is i'm using Arduino DUE as Master and Nano as Slave, and Arduino DUE has 3.3V operating voltage and nano is 5V, can you explain about I2C with Arduino DUE ? because the i2c won't work, as far as i can, the i2c for DUE can do only scanning and other example as master reader and slave receiver, but can't do for any projects , thank you

Ответить
@zaheersuhabuth2677
@zaheersuhabuth2677 - 03.10.2022 18:51

I am using ESP32 to get values through I2C from MAX17043. What should be the pull resistors value?

Ответить
@T-Series-scenario
@T-Series-scenario - 10.10.2022 20:53

excellent

Ответить
@T-Series-scenario
@T-Series-scenario - 10.10.2022 20:54

Sir how i use only Digital input output this programme?

Ответить
@T-Series-scenario
@T-Series-scenario - 12.10.2022 08:37

How long it’s work?

Ответить
@henkoegema6390
@henkoegema6390 - 14.10.2022 20:53

Was I2C developed by PHILLIPS or by PHILIPS? 🤔

Ответить
@MyJaniu
@MyJaniu - 02.11.2022 17:27

Wielkie dzięki za konkretną informację . Pozdrawiam.

Ответить
@devikwolf
@devikwolf - 04.11.2022 20:23

I've been playing with circuits and microcontrollers for a couple decades at this point... but thanks to your videos, a lot of things which I had previously learned to do 'by rote' I now have a better fundamental understanding of. You importantly explain not only the 'how' but also the 'why' when you do something, and that 'why' is what really allows ME to engage my own creativity!

Ответить
@gustje0493
@gustje0493 - 25.11.2022 02:16

Hello this is a great Video but please i2c is pronounced eye square c not i tow c

Ответить
@bc-se6kb
@bc-se6kb - 08.12.2022 23:11

👍

Ответить
@brianjirvin
@brianjirvin - 15.12.2022 04:36

So what exactly is the resistor used that I see attached to the voltage out on arduinos to the scl and sda?

Ответить
@blackbox330
@blackbox330 - 02.01.2023 10:33

Sir, Great video

Ответить
@PLanBBeaTZ
@PLanBBeaTZ - 16.02.2023 21:25

Very clear to the point video! Thanks for uploading

Ответить
@mauipomare3232
@mauipomare3232 - 28.02.2023 12:02

You speak to fast and don't explain very well, don't make these videos if you can't explain it clearly your just wasting people's time

Ответить
@hedalen001
@hedalen001 - 25.03.2023 11:56

a very great video, i learned a lot of this, but i still wonder, how i can let the master send commands to make some ports of the slave high or low

Ответить
@ezangrobotsvideos9286
@ezangrobotsvideos9286 - 18.04.2023 18:38

Thanks , great info

Ответить
@bbutcher-mo4rp
@bbutcher-mo4rp - 06.05.2023 01:57

Thanks for the very well done video that explains how this is supposed to work. I am trying to implement this using two ESP8266 Wemos D1 R2 boards. I have two issues. The code as written would not compile. The receiveEvent method is missing something that may be unique to these boards. I had to include an int being received from the Wire.onReceive() function. The resulting method looks like this
void receiveEvent(int howMany) {
rd = Wire.read();
Serial.println(rd);
}
What number do I put in for howMany? I tried various numbers but it would not compile unless I put in a variable. Perhaps I need to change the mode on my SDA and SCL pins? I am pulling them up with 4.7K resistors to 3.3V, and grounds are connected between boards.
I tried implementing both examples you showed in the video. The first slave example seemed to receive data occasionally, and tried to send a response back to the master, but it never printed Hello. It would usually print a blank line, but sometimes ???????. The second example slave never received any data from the master.

Ответить
@Stagmike
@Stagmike - 04.06.2023 02:49

Hey I have 2 Arduinos that I have separated programs, can I connect both to pc with usb and take the info to pure data?

Ответить
@t.n.1056
@t.n.1056 - 30.07.2023 11:04

I never never watch your videos 😂😂 never. Because your videos are tooooooo lomg 😮😮

Ответить
@Zocht-Kocht
@Zocht-Kocht - 03.08.2023 19:49

If your devise already hase a resistor, can you still Pot the 10k resistor in the circuit or will IT Not Work then?

Ответить
@doncarleone973
@doncarleone973 - 05.08.2023 13:36

I know squared is the right way to say but sounds better at I2C 🤷

Ответить
@erinasimpson4289
@erinasimpson4289 - 07.08.2023 13:43

I have no idea who you are, but I would like you to know that you have saved my life

Ответить
@stu6097
@stu6097 - 07.08.2023 23:41

what kind of delay is their between the adjustment of the potentiometer and the change in blink rate of the red led? The video makes it seem like a lot. Is their a way to display the delay time?

Ответить
@stu6097
@stu6097 - 11.08.2023 21:27

why is the slave address 9 and what are the possible other numbers to use?

Ответить
@LtShifty
@LtShifty - 21.08.2023 01:54

Thanks so much for this video, ots exactly what i wanted to learn. Im looking to build a home cockpit and one of my requirements is to use a single USB (or a max of 3) for the entire thing.

This looks perfect to wire up all of thr switches and controls on micro pros and then run them all from just one or two masters. The coding for this is remarkably simple as well.

Ответить
@wolf33b
@wolf33b - 01.10.2023 17:20

hey just wonder. i used to make same master to slave with Arduino. but at that time i use mega as master while 3 uno connect to serial port on mega. the mega is self i use as data hub/sort to computer to but wonder if it better to use i2c for multiple uno instead what i made that time?

Ответить
@nixonmewengkang1030
@nixonmewengkang1030 - 18.11.2023 03:32

Is it also possible for Arduino nano?

Ответить
@abdenurmohammed2472
@abdenurmohammed2472 - 26.11.2023 12:35

Extraordinary

Ответить
@donkeypoopdragon
@donkeypoopdragon - 18.12.2023 18:39

If you guys are getting an error with the onRecieve() function, add "int howMany" in the onRecieve parentheses ex.. onRecieve(int howMany).

Ответить
@ObsequiousV4
@ObsequiousV4 - 28.01.2024 19:03

so many video intro pun opportunities in this one but NSFW lmao

Ответить
@黄西安
@黄西安 - 07.02.2024 18:42

🙏

Ответить
@jirkabendl
@jirkabendl - 11.02.2024 01:52

Díky!

Ответить
@knightyyz
@knightyyz - 08.03.2024 20:21

Hi Bill, i know this is an old video but how do you get away with not using pull up resistors on your projects?

Ответить
@angelramos8962
@angelramos8962 - 12.04.2024 07:09

can i get in touched with the person in the video, im a student and i am curently stuck in a part of my project

Ответить
@siryow7906
@siryow7906 - 12.05.2024 12:26

Can i use this for long range?

Ответить
@jeffbluejets2626
@jeffbluejets2626 - 18.05.2024 06:01

Is it possible to run say two Arduino pro mini and one DS3231 RTC on the one I2C bus line....use data from the RTC to one Arduino to run an analog clock display on an Oled screen 128 x 96 or similar.............use other data from the DS3231 RTC to check a struct for matching birthday events in the other Arduino pro mini and bring up bitmap photo of a matching birthday on a separate TFT ILI9431 spi display.

Ответить
@themecue9732
@themecue9732 - 16.07.2024 07:28

Where's the multi master video?

Ответить
@khomo12
@khomo12 - 12.08.2024 16:09

Very, very nice!😊

Ответить