Program: #include <avr/io.h> #include "avr/interrupt.h" #define F_CPU 16000000 #include <util/delay.h> #define Baudrate 9600 #define UBRR ((F_CPU / (16 * Baudrate)) - 1) enum status { ON, OFF }; enum status counterStatus = OFF; uint16_t counterValue = 65000; void initTriggerPulse() { DDRB |= (1<<DDB1);…
Arul Raj
updated on 18 Jan 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 Arul Raj (7)
Project 1 - V&V SW Analysis - I
Test Plan: Test plan is the detailed documention which covers all the necessary activities to perform to ensure the quality of the product and verifies the product meets all the requirements.Test Plans document the general testing strategy. Test plans are the necessary document used in both black box testing and white…
21 Feb 2023 07:39 PM IST
Project 2 - V&V SW Analysis II
1. Static Code Review Analysis Select single file from source Create new sequence 'arpg1' and make sure 'code coverage' enabled Run Static Analysis from source menu Generate Report 2. Integration testing Open TBurn select Multiple files from Source menu create new set with name arpg2 and select…
20 Feb 2023 02:48 PM IST
Project 2 - Measuring distance of an object using ultrasonic sensor (HC-SR04)
Program: #include <avr/io.h> #include "avr/interrupt.h" #define F_CPU 16000000 #include <util/delay.h> #define Baudrate 9600 #define UBRR ((F_CPU / (16 * Baudrate)) - 1) enum status { ON, OFF }; enum status counterStatus = OFF; uint16_t counterValue = 65000; void initTriggerPulse() { DDRB |= (1<<DDB1);…
18 Jan 2023 03:00 PM IST
Project 1 - Controlling a DC motor using PWM and monitoring its Running status
Program: #include <avr/io.h> #define F_CPU 16000000 #include "avr/interrupt.h" #include <util/delay.h> #define lcdPort PORTB #define rsHigh PORTC|=(1 << 0) #define rsLow PORTC&=~(1 << 0) #define enHigh PORTC|=(1 << 1) #define enLow PORTC&=~(1 << 1) enum STATUS { ON, OFF }; uint8_t…
11 Jan 2023 08:27 AM IST
Project 2 - Measuring the distance of an object using ultrasonic sensor and also smoothen the sensor data using moving average filter
Program: #include <Adafruit_LiquidCrystal.h> Adafruit_LiquidCrystal lcd(0); void setup() { lcd.begin(16, 2); Serial.begin(9600); } void loop() { float sum = 0, avg = 0; // using Simple Moving Average smoothen the sensor data, // add the 5 consecutive and calculate average by dividing sum for(int i = 0; i < 5;…
20 Dec 2022 06:46 AM IST
Project 1 - Interfacing a 16*2 LCD with Arduino using I2C protocol
Program: Master: #include void setup() { Serial.begin(9600); Wire.begin(1); Wire.onRequest(requestEvent); } void loop() { } void requestEvent() { float tempInCelsius = ((float(analogRead(A0))*5/1024)-0.5)/0.01; int tempInFahrenheit=(tempInCelsius*9.0/5.0)+32.0; Serial.print("Temperature reading: "); Serial.println(tempInFahrenheit);…
19 Dec 2022 06:46 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
Program: #include #include typedef enum { FALSE, TRUE } boolean; struct Node { int value; struct Node* next; }; // function return the memory allocated to the new node struct Node* createNode() { return (struct Node*) malloc(sizeof(struct Node)); } // insert the node to end of list void addValueToList(struct Node** p,…
12 Oct 2022 06:30 AM IST