#include <avr/io.h>#include "avr/interrupt.h"#define F_CPU 16000000L#include <util/delay.h>#define lcdport PORTD //object macro for PORTB#define rs_high() PORTB |= (1<<7); //object macro for PORTB7 set#define rs_low() PORTB &= ~(1<<7); //object macro for PORTB7 reset#define en_high() PORTB |=…
Karmegan C
updated on 27 Nov 2022
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 Karmegan C (13)
Project 1 - V&V SW Analysis - I
if(owner long press the power button) { open the company logo at centre; } else if(customer press the power button) { open the apps in grid; } else if(owner power on the phone) { shows call the phone icon on first position at bottom; } else if(owner power on the phone) { shows Dictionary icon on second position at bottom;…
03 Dec 2022 08:25 AM IST
Project 2 - V&V SW Analysis II
PDF INLUDED BELOW
03 Dec 2022 08:21 AM IST
Project 2 - Measuring distance of an object using ultrasonic sensor (HC-SR04)
#include <avr/io.h>#include "avr/interrupt.h"#define F_CPU 16000000L#include <util/delay.h>#define lcdport PORTD //object macro for PORTB#define rs_high() PORTB |= (1<<7); //object macro for PORTB7 set#define rs_low() PORTB &= ~(1<<7); //object macro for PORTB7 reset#define en_high() PORTB |=…
27 Nov 2022 01:27 PM IST
Project 1 - Controlling a DC motor using PWM and monitoring its Running status
#include <avr/io.h>#define F_CPU 16000000L#include <util/delay.h>#include "avr/interrupt.h"#define sw_dir (PIND&(1<<1))#define sw_spd (PIND&(1<<2))#define pw (PINC&(1<<3))#define RS_high PORTD |= (1<<5)#define RS_low PORTD &=~ (1<<5)#define EN_high PORTD |= (1<<6)#define…
26 Nov 2022 08:44 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
//Master device//Header to use LCD functions#include// Header to use I2C communication#include//pin connected to LCD#includeLiquidCrystal lcd(12,11,5,4,3,2); void setup(){ lcd.begin(16,2);//(16,2)lcd clum and row lcd.setCursor(0,0); lcd.print("Hai iam Deva"); lcd.setCursor(0,1); lcd.print("I2C ARDUINO 2 ARDUINO");//printing…
26 Nov 2022 07:07 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
//Master device//Header to use LCD functions#include// Header to use I2C communication#include//pin connected to LCD#includeLiquidCrystal lcd(12,11,5,4,3,2); void setup(){ lcd.begin(16,2);//(16,2)lcd clum and row lcd.setCursor(0,0); lcd.print("Hai iam Deva"); lcd.setCursor(0,1); lcd.print("I2C ARDUINO 2 ARDUINO");//printing…
26 Nov 2022 07:01 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
//Master device//Header to use LCD functions#include// Header to use I2C communication#include//pin connected to LCD#includeLiquidCrystal lcd(12,11,5,4,3,2); void setup(){ lcd.begin(16,2);//(16,2)lcd clum and row lcd.setCursor(0,0); lcd.print("Hai iam Deva"); lcd.setCursor(0,1); lcd.print("I2C ARDUINO 2 ARDUINO");//printing…
25 Nov 2022 06:08 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
//I2C Master code#include //Library for I2C communication#include //Library for LCD display functionLiquidCrystal lcd(2,7,8,9,10,11);//Define LCD module pinvoid setup(){ lcd.begin(16,2);//initialize LCD display lcd.setCursor(0,0);//set cursor at first line of display lcd.print("skill");//print in LCD lcd.setCursor(0,1);//set…
23 Nov 2022 08:49 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
//Master device//Header to use LCD functions#include<LiquidCrystal.h>// Header to use I2C communication#include<Wire.h>//pin connected to LCD#include<LiquidCrystal.h>LiquidCrystal lcd(12,11,5,4,3,2); void setup(){ lcd.begin(16,2);//(16,2)lcd clum and row lcd.setCursor(0,0); lcd.print("Hai iam Deva");…
23 Nov 2022 08:30 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
//I2C Master code#include<Wire.h> //Library for I2C communication#include<LiquidCrystal.h> //Library for LCD display functionLiquidCrystal lcd(2,7,8,9,10,11);//Define LCD module pinvoid setup(){ lcd.begin(16,2);//initialize LCD display lcd.setCursor(0,0);//set cursor at first line of display lcd.print("skill");//print…
19 Nov 2022 09:25 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
#include #include #include // Link list nodestruct Node{ int data; struct Node* next;};//function declarationvoid push(struct Node** head_ref, int new_data);int isPresent(struct Node* head, int data);// Function to get union of two linked lists head1 and head2struct Node* getUnion(struct Node* head1, struct Node*…
16 Nov 2022 12:09 PM IST
Project 2 - Implement the Code for controlling the retraction and extension of Airplane’s landing gear
#include // header files#includetypedef enum//enum declaration for lever position{down,raising,up,falling}liverpos;liverpos a; typedef enum//enum declaration for limit switch{open,close }limit; typedef enum//enum declaration for squat switch{closee,openn}squat; typedef struct finit //structure declaration for various states…
14 Nov 2022 05:11 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
#include #include #include // Link list nodestruct Node{ int data; struct Node* next;};//function declarationvoid push(struct Node** head_ref, int new_data);int isPresent(struct Node* head, int data);// Function to get union of two linked lists head1 and head2struct Node* getUnion(struct Node* head1, struct Node*…
06 Nov 2022 03:18 PM IST