commonrelop.blogg.se

Arduino wire library example
Arduino wire library example




arduino wire library example

An interesting example is the communication between several Arduino boards. With the I2C protocol, it is also possible to communicate between different systems (sensors, LCD screen, Raspberry Pi, etc.).

  • Jumper cable M / M x3 times the number of cardsĬonnection diagram of the I2C bus between Arduino boards.
  • arduino wire library example

    We had seen the communication via the Serial port (called UART) which is used to send the code to the Arduino by a computer or to connect two devices in particular in Bluetooth. It allows asynchronous connections between several components to share information via a “common bus”.

    arduino wire library example

    The I2C protocol is a method which makes it possible to connect several “Master” cards and several “Slave” cards and to communicate up to 128 devices. One of the commonly used techniques is the I2C (or TWI) protocol. It can be practical, especially in home automation projects, to communicate between several devices.






    Arduino wire library example