I2C Master- Slave Communication between two arduino board

Sdílet
Vložit
  • čas přidán 16. 07. 2019
  • #led #education #electronic #diy #circuit #technology #arduino #viral #trending #arduino #embeddedsystems #espressif #esp32project #esp32 #arduinoproject #experiment #microcontrollers
    In this video, I have explained Master and slave code provided by arduino and also I have modified code for testing the master write to slave and read from slave to have a better understanding.
    SPI communication between two arduino boards
    • Watch how the data sit...
    Arduino register level programming
    • Arduino - Register lev...
    Click here to watch my video on I2C protocol:
    • Video
    Click below to get download the code:
    drive.google.com/open?id=12g_...
    Get connected to internet using w5500 ethernet module
    • Video
    Log data to memory card
    • Video
    Thanks for watching, for future notification subscribe and click on bell icon next to subscribe button

Komentáře • 22

  • @kareemsalem7950
    @kareemsalem7950 Před 4 lety +1

    Awesome Vid thanks for the help!

  • @ratnakarkarri627
    @ratnakarkarri627 Před 3 lety

    which model you are using? i am using two esp8266 boards but i am not able to get the data on serial monitor(master is writing the data,slave is receiving).can you please help me out.

    • @chipride8119
      @chipride8119  Před 3 lety

      It's between two UNO boards, wire library for esp should work. If not try external pull up resistors

    • @ratnakarkarri627
      @ratnakarkarri627 Před 3 lety

      @@chipride8119 how should i use external pullup resistors.

    • @chipride8119
      @chipride8119  Před 3 lety

      @@ratnakarkarri627 Also check on latest esp8266 version for I2C.

  • @imanealaouiismaili6599

    how should i wire two arduino if one breaks down the other takes over

    • @chipride8119
      @chipride8119  Před 4 lety

      Can you be little clear on what you are trying to do

  • @sisirghosh1978
    @sisirghosh1978 Před 4 lety

    How can you get device ID 8?

    • @chipride8119
      @chipride8119  Před 4 lety

      I2C slave devices will have its own address which you can find in datasheet. Device ID 8 is just used here and slave is made to join that address

  • @rashaan64
    @rashaan64 Před 5 lety

    Also I'm building a iron man suit that is arduino based

  • @charnjit525
    @charnjit525 Před 3 lety

    Main hairaan Hoon . Jab value x>9 Hai . To slave serial monitor mien x value toot nahin rahi Hai. Jab k x ki bytes jab 2 ya jyada hoti Hai . Wo receiver main as integer dikhyi nahi deti.

    • @chipride8119
      @chipride8119  Před 3 lety

      check code & connection

    • @charnjit525
      @charnjit525 Před 3 lety

      @@chipride8119 I have tested 10 month ago

    • @chipride8119
      @chipride8119  Před 3 lety

      @@charnjit525 Ok

    • @charnjit525
      @charnjit525 Před 3 lety

      @@chipride8119 I tested it uno+ nano . I think this not matter.

    • @chipride8119
      @chipride8119  Před 3 lety

      @@charnjit525 try using external pullup resistor 4.7k or 10k

  • @rashaan64
    @rashaan64 Před 5 lety

    Just talk a little slower it's hard to keep up I subscribed we should talk I need help with arduino i2c

    • @chipride8119
      @chipride8119  Před 5 lety +1

      I will take your feedback. We can discuss for sure

  • @ziadkassab5312
    @ziadkassab5312 Před 2 lety +1

    Great vid! but why did you put while (Wire.available() > 1) {}, I did not understand the comment near this particular code "Loop through all but the last", why do you want Wire.available() to be greater than 1.

    • @chipride8119
      @chipride8119  Před 2 lety

      to check I2C buffer availablity of bytes of data

    • @ziadkassab5312
      @ziadkassab5312 Před 2 lety +1

      @@chipride8119 Yes, I understand that... but why does it have to be greater than 1 (and not 0)