Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Battery-Powered Ultrasonic Distance Sensor with LED Indicator using NodeMCU

View and Edit Project In Cirkit DesignerImage of Battery-Powered Ultrasonic Distance Sensor with LED Indicator using NodeMCU

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes an HC-SR04 Ultrasonic Sensor, a red LED, a resistor, a 1N4007 rectifier diode, a 18650 Li-ion battery, a USB plug, and a NodeMCU V3 ESP8266 microcontroller. The circuit is designed to interface the ultrasonic sensor with the NodeMCU for distance measurement, and it includes an LED indicator powered through a resistor. The power supply is managed through a 18650 Li-ion battery and a USB plug.

Component List

  1. HC-SR04 Ultrasonic Sensor

    • Pins: VCC, TRIG, ECHO, GND
    • Description: Ultrasonic distance sensor used for measuring distance by sending and receiving ultrasonic waves.
  2. LED: Two Pin (red)

    • Pins: Cathode, Anode
    • Description: Red LED used as an indicator.
  3. Resistor

    • Pins: Pin1, Pin2
    • Description: 220 Ohms resistor used to limit current through the LED.
    • Properties:
      • Resistance: 220 Ohms
  4. 1N4007 Rectifier Diode

    • Pins: Cathode, Anode
    • Description: Diode used for rectification and protection.
  5. 18650 Li-ion Battery

    • Pins: +, -
    • Description: Rechargeable lithium-ion battery used as the power source.
  6. USB Plug

    • Pins: GND, D+, D-, 5V+, Out
    • Description: USB plug used for power supply and data communication.
  7. NodeMCU V3 ESP8266

    • Pins: A0, GND, VU, S3, S2, S1, SC, S0, SK, 3V3, EN, RST, Vin, D0, D1, D2, D3, D4, D5, D6, D7, D8, RX, TX
    • Description: Microcontroller with Wi-Fi capabilities used for controlling the circuit and interfacing with the ultrasonic sensor.

Wiring Details

HC-SR04 Ultrasonic Sensor

LED: Two Pin (red)

Resistor

1N4007 Rectifier Diode

18650 Li-ion Battery

USB Plug

NodeMCU V3 ESP8266

Code

There is no code provided for the microcontrollers in this circuit.