Project tutorial
Calculate You Own Height Using Arduino

Calculate You Own Height Using Arduino

So Basically it is a device which helps us to know the height of the person and this is one of the best projects of my life !!!!!!!

  • 7 views
  • 0 comments
  • 2 respects

Components and supplies

Apps and online services

About this project

One Day I was Seating alone wondering what type of projects can be made using Ultrasonic Sensor then I thought that let's make a device which helps us to know the height of a person Then I have made this project this project is very interesting I hope you'll love it !!!!!!!!

here's the video link:-

How to know your own height using arduino

and also subscribe our channel and also follow me on hackster.io

Code

CodeArduino
// Created by Rohan Barnwal!!!!!!!! 
// -:AATAM NIRBHAR BHARAT:- 
#include <LiquidCrystal.h> 

// includes the LcdBarGraph Library
#include <LcdBarGraph.h>

// Maximum distance we want to ping for (in centimeters).
#define max_distance 200

// Creates an LCD object. Parameters: (rs, enable, d4, d5, d6, d7)
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); 

LcdBarGraph lbg(&lcd, 16, 0, 1); // Creates an LCD Bargraph object.

const int trigPin = 9;
const int echoPin = 10;
long duration;
int distance;
int distance1;
int speakerPin = 8;
void setup() 
{
  lcd.begin(16,2); // Initializes the interface to the LCD screen
  
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}

void loop() 
{
  // Write a pulse to the HC-SR04 Trigger Pin
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);
  
  // Measure the response from the HC-SR04 Echo Pin
  duration = pulseIn(echoPin, HIGH);
  
  // Determine distance from duration
  // Use 343 metres per second as speed of sound
  distance= duration*0.034/2;
  distance1= 180 - distance ;
  // Prints "Distance: <value>" on the first line of the LCD

  if (distance1 > 100) {
   tone (speakerPin, 1000);
  
   } else {
    noTone (speakerPin);

  }
  lcd.setCursor(0,0);
  lcd.print("HEIGHT: ");
  lcd.print(distance1);
  lcd.print("  cm  ");

  // Draws bargraph on the second line of the LCD
  lcd.setCursor(0,1);
  lbg.drawValue(distance1, max_distance);
  delay(500);
}

Custom parts and enclosures

Basic 3d Model

Schematics

Connection
Distance claculator sfybk8dl1u

Comments

Similar projects you might like

The Magnetic Field and RGB Tester

Project tutorial by Kutluhan Aktar

  • 5,485 views
  • 0 comments
  • 18 respects

Touchless faucet with door control system for COVID-19

Project tutorial by Rucksikaa Raajkumar

  • 1,440 views
  • 0 comments
  • 14 respects

Pressure Pad Interfacing with Arduino

Project tutorial by Ashish Kumar Senapati

  • 21,464 views
  • 2 comments
  • 17 respects

Light Striker

Project tutorial by Team Pharout Fotons

  • 1,200 views
  • 0 comments
  • 6 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 13,974 views
  • 8 comments
  • 31 respects

Alexa Powered Arduino Kitchen Assistant

Project tutorial by TheParticleGuy

  • 4,448 views
  • 1 comment
  • 17 respects
Add projectSign up / Login