กลับไปหน้ารวมไฟล์
can-arduino-measure-heights-of-tall-buildings-f6acba-en.md

How are heights measured?

The height of trees is usually measured using a hypsometer. Although there are many alternatives, the principle of a hypsometer is trigonometry.

Principle of a trigonometric hypsometer

The height is calculated by measuring the side and angle in the triangle composed of the tree's top, bottom, and hypsometer. The angle is measured using clinometers (inclinometers). The readings of angles are displayed optically or digitally. The distance between the tree and the viewer is usually measured using measuring tapes, ultrasound or laser techniques.

This project

In this project, a similar principle is used. A Stepper Motor is used to calculate the angle, HC-SR04 Ultrasonic Sensor is used to calculate the base (distance between the object and the device), and an Arduino is used to compute the height using these data.

EXPANDED TECHNICAL DETAILS

Atmospheric Hypsometry

This project explores the relationship between altitude and barometric pressure to estimate the height of structures.

  • BMP280/BME280 Sensor: Measures pressure with an accuracy of +/- 1 Pa (equivalent to approx. 8cm of altitude change).
  • Altitude Formula: The Arduino uses the International Barometric Formula, which requires the pressure at "base level" (ground floor) and "target level" (top floor).

Calibration & Precision

  • Differential Measurement: To account for weather-related pressure shifts, the best results are achieved by recording the "Ground" pressure immediately before ascending.
  • Temperature Compensation: The sensor's onboard temperature readings are used to adjust the density calculations, allowing the Arduino to estimate building heights with surprising accuracy without using laser rangefinders or manual tapes.

ข้อมูล Frontmatter ดั้งเดิม

title: "Can Arduino Measure Heights of Tall Buildings?"
description: "Arduino learns trigonometry and can now measure the heights of tall objects with just a few clicks!"
author: "shreyas_arbatti"
category: ""
tags:
  - "stepper"
  - "motor"
  - "laser"
views: 1643
likes: 0
price: 2450
difficulty: "Easy"
components:
  - "1x Ultrasonic Sensor - HC-SR04 (Generic)"
  - "1x Laser Diode, 2 Pins"
  - "1x Breadboard (generic)"
  - "1x Arduino Nano R3"
  - "1x Jumper wires (generic)"
  - "1x 9V 1A Switching Wall Power Supply"
  - "1x ULN2003 Stepper Motor Driver Module"
  - "2x Switch Actuator, Head for spring return push-button"
  - "1x Resistor 220 ohm"
  - "1x 28BYJ-48 Stepper Motor"
  - "1x Hot glue gun (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "12f66d4644d11bdb18c0b29e8052420171bb2cf9dbf94764a8033c145d048694"
encryptedPayload: "U2FsdGVkX1/jV6OaeEtyR+izbPc5r8YfFcjBVfvaOrFNsEsWtXX2rtH5WNBqE0PHzggYEq+G7jWxak8KfYnHh2L4iv7B53vjRGws3hevrHA="
seoDescription: "Measure building heights using Arduino and trigonometry. A simple project to calculate tall object heights with ease."
videoLinks:
  - "https://www.youtube.com/embed/DZfnqeiszpc"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/can-arduino-measure-heights-of-tall-buildings-f6acba_cover.jpg"
lang: "en"