I2C Master- Slave Communication between two arduino board
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
Awesome Vid thanks for the help!
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.
It's between two UNO boards, wire library for esp should work. If not try external pull up resistors
@@chipride8119 how should i use external pullup resistors.
@@ratnakarkarri627 Also check on latest esp8266 version for I2C.
how should i wire two arduino if one breaks down the other takes over
Can you be little clear on what you are trying to do
How can you get device ID 8?
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
Also I'm building a iron man suit that is arduino based
Good to know Rashaan
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.
check code & connection
@@chipride8119 I have tested 10 month ago
@@charnjit525 Ok
@@chipride8119 I tested it uno+ nano . I think this not matter.
@@charnjit525 try using external pullup resistor 4.7k or 10k
Just talk a little slower it's hard to keep up I subscribed we should talk I need help with arduino i2c
I will take your feedback. We can discuss for sure
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.
to check I2C buffer availablity of bytes of data
@@chipride8119 Yes, I understand that... but why does it have to be greater than 1 (and not 0)