Skip to content

Measure and calibrate distance sensor data using and show in a web page.

Notifications You must be signed in to change notification settings

jonascarvalh/distance-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hc-sr04

Distance Sensor

Measure and calibrate distance sensor data using and show in a web page.

🎴 Preview

Dashboard

✨ Features

  • 📏 Measurement and calibration of the HC-SR04 sensor;
  • 📶 Communication via MQTT protocol and API;
  • 📈 Dashboard made through a web page.

🖥️ Systems

  • ESP32 Code;
  • Client MQTT;
  • API;
  • Web Page.

📚 How it work?

This project aims to collect measurements from the HC-SR04 ultrasonic sensor, sending them to an MQTT Broker, which in turn will provide the data to the MQTT Client, which will be responsible for performing the calibration based on the flight time received. After that, the Client will send the calibrated data to an API, which will register it in a database. Thus, a web application will consume this API and visually display the obtained data.

Calibration is done using statistical calculations such as linear regression to estimate the measurement, combined and expanded uncertainty to estimate measurement error.

Project Architecture

Attention: Each folder has a specific functionality related to the project, they also have a readme file.