Wi-Fi Controlled Distance Measurement System using ESP-8266 and HC-SR04
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP-8266 microcontroller and an HC-SR04 ultrasonic sensor. The ESP-8266 is used to control the HC-SR04 sensor, which measures distance by sending out ultrasonic waves and receiving the echo. The connections between the components are detailed below, along with the purpose of each component in the circuit.
Component List
ESP-8266 Controller
- Description: A Wi-Fi enabled microcontroller used for various IoT applications.
- Pins: A0, RSV, SD3, SD5, SD1, CMD, D0, D1, D2, D3, D4, 3V3, GND, D5, D6, SD0, CLK, RST, EN, D7, D8, RX, TX, Vin, 5V
- Purpose in Circuit: Acts as the main controller, processing data from the ultrasonic sensor and potentially sending it to a server or other device via Wi-Fi.
HC-SR04 Ultrasonic Sensor
- Description: A sensor used to measure distance by emitting ultrasonic waves and measuring the time it takes for the echo to return.
- Pins: VCC, TRIG, ECHO, GND
- Purpose in Circuit: Measures the distance to an object and sends the data to the ESP-8266 controller.
Wiring Details
ESP-8266 Controller
- D5: Connected to ECHO pin of the HC-SR04 Ultrasonic Sensor
- D6: Connected to TRIG pin of the HC-SR04 Ultrasonic Sensor
- GND: Connected to GND pin of the HC-SR04 Ultrasonic Sensor
- Vin: Connected to VCC pin of the HC-SR04 Ultrasonic Sensor
HC-SR04 Ultrasonic Sensor
- ECHO: Connected to D5 pin of the ESP-8266 Controller
- TRIG: Connected to D6 pin of the ESP-8266 Controller
- GND: Connected to GND pin of the ESP-8266 Controller
- VCC: Connected to Vin pin of the ESP-8266 Controller
Code
There is no code provided for the microcontrollers in this circuit.
This document provides a comprehensive overview of the components and their connections in the circuit. The ESP-8266 controller and HC-SR04 ultrasonic sensor are connected in a way that allows the ESP-8266 to control and receive data from the sensor, enabling distance measurement functionality.