Skip to content
Snippets Groups Projects
Commit 736c455a authored by Mitalee Parikh's avatar Mitalee Parikh
Browse files

nc update 4

parent 7672183e
No related branches found
No related tags found
No related merge requests found
Pipeline #227853 passed
# Networking & Communication
##### Week of 29 January 2020
#### [notes](http://academy.cba.mit.edu/classes/networking_communications/index.html) + [video](https://vimeo.com/415632350)
---
This week's class had a lot of new information, so it was quite difficult for me to follow everything.
To understand basics of communication protocols, this [basics of protocols series on circuitsbasics.com](https://www.circuitbasics.com/basics-of-the-spi-communication-protocol) was very useful. For effective communication between electronic devices, they need to use the same language. This language is called communication protocol. Some basic protocols are SPI, I2C and UART. These are generally slower than protocols like USB, ethernet, bluetooth and wifi, but are ideal for communication between microcontrollers and sensors where the large amounts of high-speed data does not need to be transferred.
To understand basics of communication protocols, this [basics of protocols series on circuitsbasics.com](https://www.circuitbasics.com/basics-of-the-spi-communication-protocol) was very useful. For effective communication between electronic devices, they need to use the same language. This language is called communication protocol. Some basic protocols are *SPI, I2C and UART.* These are generally slower than protocols like *USB, ethernet, bluetooth and wifi*, but are ideal for communication between microcontrollers and sensors where the large amounts of high-speed data does not need to be transferred.
Since I do not have access to a lab or a lot of inventory right now, I chose to understand wired communication protocols - SPI & I2C, with Arduino Unos that I do have access to. When I'm in the lab, or get more access to parts, I want to learn about the other wireless protocols too.
......@@ -13,25 +16,22 @@ In parallel communication, multiple bits are transferred at the same time throug
![Parallel v Series Communication](./images/nc/parallelvseriescommunication.jpg)
### [SPI protocol](https://www.circuitbasics.com/basics-of-the-spi-communication-protocol)
---
Serial-Peripheral Interface
### [UART protocol](https://www.circuitbasics.com/basics-uart-communication/)
---
Universal Asynchronous Receiver/Transmitter
### [I2C protocol](https://www.circuitbasics.com/basics-of-the-i2c-communication-protocol/)
---
I2C stands for-Inter Integrated Circuit.
I2C communication allows for a single or multiple masters(unlimited) to talk to a single or multiple slaves(max. 1008). It uses two wires to transmit data between devices. Since it follows series communication, it transfers bits one by one through the same wire.
I2C communication allows for a single or multiple masters (unlimited) to talk to a single or multiple slaves (max. 1008). It uses two wires to transmit data between devices. Since it follows series communication, it transfers bits one by one through the same wire.
![SDA & SCL](./images/nc/sdascl.jpg)
* SDA (Serial Data) - to send as well as receive data between the master/s and slave/s
* SCL (Serial Clock) - sends the clock signal
The clock signal is controlled by the master, and the data is synchronized to the bit sampling.
* **SDA (Serial Data)** - to send as well as receive data between the master/s and slave/s
* **SCL (Serial Clock)** - sends the clock signal
The clock signal is controlled by the master, and the data is *synchronized* to the bit sampling.
Data is sent in messages. Here is a diagram of the structure of a message.
![Message Structure](./images/nc/message.jpg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment