MASTER CODE: #include <Wire.h> void setup(){ Wire.begin(4); // join i2c bus } void loop(){ char *x = "Project1 - I2C "; Wire.beginTransmission(4); // transmit to device #4 Wire.write(x); // sends one byte Wire.endTransmission(); // stop transmitting delay(500);} SLAVE CODE: #include <Wire.h>#include<LiquidCrystal.h>LiquidCrystal…
SHARMILA LALAM
updated on 05 Jul 2023
Project Details
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Read more Projects by SHARMILA LALAM (9)
Project 2 - V&V SW Analysis II
1. Static Code Review Analyisis : step-1 : To load the file go to SOURCE tab select the Testrain.c file, we can see it in FILE VIEW window. step-2 : To do Static Code Analysis: 1.Set LDRA Testbed configuration option, go to CONFIGURE tab and select STATIC option and set…
22 Jul 2023 06:47 PM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
#include<stdio.h> //including the libraries used #include<stdlib.h> //prototypes of the functions used void Initiate_State_Machine(); void GearDown(); void CheckingBeforeTakeOFF(); void RaisingGear(); void GearUp(); void CheckBeforeLanding(); void LoweringGear(); //Array of functions static void(*statetable[])(void)={GearDown,…
21 Jul 2023 05:39 PM IST
Project 3
#include <iostream> // include the iostream library for standard input/output //functions#include <vector> // include the vector library for dynamic arrays#include <limits> // include the limits library for numeric limits using namespace std; // use the standard namespace // Define an enumeration type…
21 Jul 2023 08:07 AM IST
Project 2 - Measuring distance of an object using ultrasonic sensor (HC-SR04)
#include <avr/io.h> #define F_CPU 16000000L #include <util/delay.h> #define rs_high PORTD |=(1<<0);//DEFINE BIT FOR RS_HIGH #define rs_low PORTD &=~(1<<0);//DEFINE BIT FOR RS_LOW #define en_high PORTD |= (1<<2);//DEFINE BIT FOR EN_HIGH #define en_low PORTD &=~(1<<2);//DEFINE…
07 Jul 2023 11:21 AM IST
Project 1 - Controlling a DC motor using PWM and monitoring its Running status
#include <avr/io.h> // including IO header filr for using input and output operations #define F_CPU 16000000ul // defining the crystal frequency #include "avr/interrupt.h" // including…
06 Jul 2023 01:31 PM IST
Project 1 - V&V SW Analysis - I
Test id User Test Case Title - Requirement Test Precondition Test Procedure Expected Result US-1 Product owner When Power button is long pressed, phone should switch ON with a company logo at the centre of the screen Phone should be in Switch OFF state 1. Long Press the Power button 2. Short press the Power button 3. Not…
05 Jul 2023 01:51 PM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
#define WINDOW_SIZE 5 //defining macro WINDOW_SIZE as 5int cm = 0; //initialising variable to store the received distance in cmint inches = 0; //intialising variable to store distance in inchesint Data = 0;int Total = 0;int Average = 0;int Reading[WINDOW_SIZE]; //intialising the array to store consequent readingsint index…
05 Jul 2023 10:06 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
MASTER CODE: #include <Wire.h> void setup(){ Wire.begin(4); // join i2c bus } void loop(){ char *x = "Project1 - I2C "; Wire.beginTransmission(4); // transmit to device #4 Wire.write(x); // sends one byte Wire.endTransmission(); // stop transmitting delay(500);} SLAVE CODE: #include <Wire.h>#include<LiquidCrystal.h>LiquidCrystal…
05 Jul 2023 05:43 AM IST
Project 1 - Creation of user defined data type to implement the user interfaces for working with ‘Set’ (Mathematical Set theory) using Linked List
/* algorithm of the program for getting union and intersection of two sets :Step-1: taking number of elements in set-A, creating node, taking element and storing element in each node, also storing base address of set-AStep-2: taking number of elements in set-B, creating node, taking element and storing elements in each…
06 Apr 2023 06:58 AM IST