Professional Documents
Culture Documents
on
HEIGHT MEASUREMENT
Submitted by
Y.Aravind 180040538
N.Pavan 180040554
K.Dinesh vardhan 180040667
Sec - 10
IN
IT WORKSHOP PRACTICE
VADDESWARAM-522 502
1
Koneru Lakshmaiah Education Foundation
IT Workshop practice
2019-2020
Course Coordinator
Signature of HOD
2
ACKNOWLEDGEMENT
Last but not the least we express our deep gratitude and affection to our
parents who stood behind us in all our endeavours.
Y.ARAVIND 180040538
N.PAVAN 180040554
K.DINESH VARDHAN 180040667
3
TABLE OF CONTENTS
1. Abstract 5
2. Introduction 6
3. Principle or Methodology 7
4. Architecture of project 8
5. Procedure 9
7. Working 12
8. Circuit diagram 13
9. Code 14
10. Output 15
11. Advantages 16
12. Conclusion 17
4
13. References 18
ABSTRACT
5
Introduction to arduino board
Defining Arduino:
An Arduino is actually a microcontroller based kit which can be either
used directly by purchasing from the vendor or can be made at home
using the components, owing to its open source hardware feature. It is
basically used in communications and in controlling or operating many
devices.
6
Methodology of Arduino:
Arduino:
The Arduino tool window consists of the toolbar with the buttons like
verify, upload, new, open, save, serial monitor. It also consists of a text
editor to write the code, a message area which displays the feedback like
showing the errors, the text console which displays the output and a
series of menus like the File, Edit, Tools menu. Thus the code is
uploaded by the bootloader onto the microcontroller.
7
Architecture of the project
The entire project can be divided into three basic blocks;
1) Sensor Unit
2) Processor Unit
3) Display Unit
Sensor unit:
The sensor unit is the input of the project or the module. This unit gives
the input to the Arduino.
Processor unit:
The processor unit in this project is the Arduino microcontroller board.
This Arduino process the input and gives the output to the lcd display.
Display unit:
This display unit contains lcd display in which the height will be shown.
8
Procedure:
Connect the circuit as shown in figure.
Now give the power supply to the board.
Components Required:
In this project we have used the arduino and Ultra sonic sensor along
with the jumping wires and the resistors and details list of the hard ware
components are
9
UltraSonic Sensor
Resistors
10
Jumper wires
Bread board
11
Working :
12
Circuit Diagram:
13
Code:
#include<LiquidCrystal.h>
LiquidCrystal lcd(2,3,6,7,8,9);
long duration,feet,inches,inch,cm;
void setup() {
lcd.begin(16,2);
Serial.begin(9600);
pinMode(5, OUTPUT);
pinMode(4, INPUT);
14
}
void loop() {
digitalWrite(5,LOW);
delayMicroseconds(100);
digitalWrite(5,HIGH);
delay(100);
digitalWrite(5,LOW);
delayMicroseconds(100);
duration=pulseIn(4,HIGH);
cm=0.0340*(duration/2)+4;
inch=cm*0.3937;
feet=inch/12;
inches=inch%12;
lcd.setCursor(0,0);
lcd.clear();
lcd.print("Height=");
lcd.print(cm);
lcd.print("cm");
lcd.setCursor(0,1);
lcd.print("Height=");
lcd.print(feet);
lcd.print(".");
lcd.print(inches);
lcd.print("feets");
}
Output:
Screenshot
15
16
Advantages:
Low cost:
As it is low of cost around Rs.1500/- and it can be carried anywhere.
Accuracy:
As this project is used to measure height of anything(upto 4 meters)
This gives you the perfect accuracy.
Conclusions:
17
used. We have also learnt how to write sketches for Arduino in its own
IDE (software). Developing new ideas with Arduino is endless. The
possibilities of using an Arduino to learn and develop new ideas are
infinite. Though it does have its own limitations, it is a great tool that
can be used in learning.
References:
18
[1] ARDUINO.CC, “Arduino – Introduction”, 2015 [Online] Available:
http://arduino.cc/en/Guide/Introduction. [Accessed: 25- Feb - 2015].
[2] Arduino.cc, 'Arduino - Products', 2015. [Online]. Available:
http://arduino.cc/en/Main/Products. [Accessed: 25- Feb- 2015].
[3] ArduPilot Mega, 'ArduPilot Mega', 2015. [Online]. Available:
http://www.ardupilot.co.uk/. [Accessed: 23- Nov- 2015].
[4] Wikipedia, 'ArduSat', 2015. [Online]. Available:
http://en.wikipedia.org/wiki/ArduSat. [Accessed: 23- FEB- 2015].
19