cover photo

BLOG · 1/6/2023

Monthly Report

May 2023

Bhuvan K
Bhuvan K
OP
Monthly Report
This Article is yet to be approved by a Coordinator.

Task 2 - SPI communication\n\nAim: To Understand and perform SPI communication between two Arduino boards.\n\nComponents used: Two Arduino UN Two 5mm LED Two Push buttons, Two 220 ohm resistors, Two 10k ohm resistors\ Connecting Wires, Breadboard.\n\nCircuit Diagram referenced: \n\n\n\n### Date: 12th MAY 2023\n\nThis day I learned about the theory of SPI Communication.\n\nTheory:\n\n1.Communication between electronic devices is like communication between humans. Both sides need to speak the same language. In electronics, these languages are called communication protocols.\n\n2.SPI communication is ideal between microcontrollors and between microcontrollors and sensors.\n\n3. Any number of bits can be sent or received in a continuous stream.\n\n4.Devices communicating via SPI are in a master-slave relationship. The master is the controlling device, while the slave takes instruction from the master. The simplest configuration of SPI is a single master, single slave system, but one master can control more than one slave.\n\nReferring the below resource:\n\nhttps://www.circuitbasics.com/basics-of-the-spi-communication-protocol/\n\n\nThis day I tried to implement the SPI protocol in the simulation tool like tinkerCad and was not able to implement due to some software issue even if the circuit connections and the code was written properly.\n\n### Date: 18th MAY 2023\n\nThis day I directly tried to implement the task on the hardware.\nI made all the circuit connections and verified it. Then uploaded the code and it worked and there was SPI communication established between the Two arduino boards.\n\nProblem faced:\n\n1.Was not able to implement it in tinkerCad.\n\n2.Got confused with the order of connections of wire for SPI communication.\n\n# Task 3 - I2C Control\n\nAim: To Understand and perform SPI communication between two Arduino boards.\n\nComponents used: Arduino Uno (2-Nos 16X2 LCD display modul 10K Potentiometer (4-Nos Breadboar Connecting Wires.\n\nCircuit Diagram referred:\n\n\n\n### Date: 19th MAY 2023\n \nI learned the theory of I2C communication protocol.\n\nTheory :\n\n1.If there are more than one microcontroller in a project that need to be masters then I2C is used. I2C communication is generally used to communicate with Gyroscope, accelerometer, barometric pressure sensors, LED displays etc.\n\n2. I2C is a synchronous communication protocol meaning, both the devices that are sharing the information must share a common clock signal. \n\n3.I2C communication is used only for short distance communication.\n\n### Date: 23rd MAY 2023\n\nI implemented the task using the hardware.I did the circuit connections by looking into the diagram. I uploaded the code but It was not working for what it needed to. The mistake I did was in the new versions of arduino uno there is dedicated pins for I2C protocol but not the analog pins.Later when I rectified this problem I was able to get the intended output.\n\nProblem faced:\n\n In the new versions of arduino uno there is a separate pins for I2C protocols.\n\n\n#### Respective Videos and arduino code of all executed tasks are in the given drive link below\nhttps://drive.google.com/drive/folders/1S9Kuxy6Pm7a74kbxTyXh7KtAa3b_P0Za\n\n

UVCE,
K. R Circle,
Bengaluru 01