PROTOCOLOS: UART - I2C - SPI - Comunicación Serie #001
ELECTRONOOBS en Español
12 min, 13 sec
The video explains serial communication and three main protocols: UART, I2C, and SPI, with demonstrations using an Arduino.
Summary
- Serial communication is introduced as a method of sending digital data using fewer connections with various protocols, with a focus on those popular for microcontrollers like Arduino and Pico.
- UART communication is detailed, explaining the transmission of data over a single wire plus a ground reference, including start and stop bits, and setting baud rate, data length, and parity.
- I2C protocol is explained, highlighting the need for two wires (SDA for data, SCL for clock) plus ground, addressing for multiple devices, and synchronous clocking.
- SPI communication is discussed, showcasing its full-duplex capability, higher speeds, and lower power consumption, but it is limited in terms of distance compared to UART and I2C.
Chapter 1
![Overview of serial communication, its usefulness, and popular protocols.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxODk4LCJwdXIiOiJibG9iX2lkIn19--22cc712364a600e31a2afb58b9fdf32fb897b093/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_7.jpg)
Overview of serial communication, its usefulness, and popular protocols.
- Serial communication is useful for sending digital data with fewer connections.
- There are many protocols, but some are more popular for basic microcontrollers like Arduino and Pico.
![Overview of serial communication, its usefulness, and popular protocols.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxODk4LCJwdXIiOiJibG9iX2lkIn19--22cc712364a600e31a2afb58b9fdf32fb897b093/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_7.jpg)
Chapter 2
![Introduction to three main serial communication protocols: UART, I2C, and SPI.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTA0LCJwdXIiOiJibG9iX2lkIn19--5b413382a456e8a934e6745746fc2d6d39209d52/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_28.jpg)
Introduction to three main serial communication protocols: UART, I2C, and SPI.
- The video will explain UART, I2C, and SPI, their main characteristics, how they work, reasons for choosing one over another, and a practical example using Arduino.
- Viewing the signals on an oscilloscope will provide a better understanding.
![Introduction to three main serial communication protocols: UART, I2C, and SPI.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTA0LCJwdXIiOiJibG9iX2lkIn19--5b413382a456e8a934e6745746fc2d6d39209d52/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_28.jpg)
Chapter 3
Chapter 4
![Serial communication is a method of transmitting data one after the other.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTEyLCJwdXIiOiJibG9iX2lkIn19--ee660ca4fd6cb59244df4ab2988181c5c6b9555d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_149.jpg)
Serial communication is a method of transmitting data one after the other.
- Serial communication allows the transmission of digital data in a sequence, as opposed to parallel communication that sends multiple bits simultaneously.
- The main advantage is fewer connections needed, and the main disadvantage is slower data transfer as it requires more time to transmit the same amount of data.
![Serial communication is a method of transmitting data one after the other.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTEyLCJwdXIiOiJibG9iX2lkIn19--ee660ca4fd6cb59244df4ab2988181c5c6b9555d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_149.jpg)
Chapter 5
![UART, a basic asynchronous serial communication, uses a single data wire plus ground.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTE2LCJwdXIiOiJibG9iX2lkIn19--db7befd880109847361fb8027f01463c5824f200/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_312.jpg)
UART, a basic asynchronous serial communication, uses a single data wire plus ground.
- UART requires common configurations between the transmitter and receiver, including transmission speed, data length, and parity.
- Start and stop bits are used to frame the data bits, with the timing determined by the baud rate.
- UART is widely used in Arduino for code uploading and serial monitoring and has additional pins for flow control.
![UART, a basic asynchronous serial communication, uses a single data wire plus ground.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTE2LCJwdXIiOiJibG9iX2lkIn19--db7befd880109847361fb8027f01463c5824f200/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_312.jpg)
Chapter 6
![I2C is a synchronous serial communication protocol that uses two wires plus ground.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTIwLCJwdXIiOiJibG9iX2lkIn19--4ced7fa6212de8cd94c6c9f1cf9ee370f934ba1c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_511.jpg)
I2C is a synchronous serial communication protocol that uses two wires plus ground.
- I2C requires a data wire (SDA) and a clock wire (SCL), and operates at around 400 KHz.
- It uses addressing for multiple devices and allows multiple receivers with different slave addresses.
- An example with the MPU6050 module demonstrates the I2C signal on an oscilloscope.
![I2C is a synchronous serial communication protocol that uses two wires plus ground.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTIwLCJwdXIiOiJibG9iX2lkIn19--4ced7fa6212de8cd94c6c9f1cf9ee370f934ba1c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_511.jpg)
Chapter 7
![SPI is a synchronous serial communication that supports full-duplex data transfer.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTI0LCJwdXIiOiJibG9iX2lkIn19--dab2705a946c8b0c02307e875b1902f66da29e31/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_629.jpg)
SPI is a synchronous serial communication that supports full-duplex data transfer.
- SPI uses a clock wire and separate wires for master input/slave output (MISO) and master output/slave input (MOSI).
- A chip select wire is used to initiate communication with each slave device.
- SPI can transmit and receive simultaneously, offers higher speeds and lower power consumption than I2C and UART, but cannot send data over long distances.
![SPI is a synchronous serial communication that supports full-duplex data transfer.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTI0LCJwdXIiOiJibG9iX2lkIn19--dab2705a946c8b0c02307e875b1902f66da29e31/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_629.jpg)
Chapter 8
![Summary and invitation to engage with more content.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTI2LCJwdXIiOiJibG9iX2lkIn19--51a6b4e641388b662119b0821d5d60e64e85c301/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_706.jpg)
Summary and invitation to engage with more content.
- The video concludes with a recap of UART, I2C, and SPI protocols and their uses with common microcontrollers like Arduino.
- Viewers are encouraged to like the video, subscribe, activate notifications, and comment for more content.
![Summary and invitation to engage with more content.](https://www.videogist.co/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTMxOTI2LCJwdXIiOiJibG9iX2lkIn19--51a6b4e641388b662119b0821d5d60e64e85c301/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls3MjAsbnVsbF19LCJwdXIiOiJ2YXJpYXRpb24ifX0=--c9426325207613fdd890ee7713353fad711030c7/7729_706.jpg)