Arduino UNO and ESP8266-Based Ultrasonic Distance Sensor with GSM Communication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that integrates an Arduino UNO, an Ultrasonic Sensor, a SIM 800L V2.0 GSM module, an ESP8266 NodeMCU, and power sources. The circuit is designed to utilize the Arduino UNO as the central microcontroller, interfacing with various sensors and communication modules to perform specific tasks.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0, +, -
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
SIM 800L V2.0 GSM
- Description: A GSM module used for communication over cellular networks.
- Pins: SIM_TXD, VDD, SIM.RXD, 5V/4V, GND, RST
ESP8266 NodeMCU
- Description: A low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller capability.
- Pins: D0, D1, D2, D3, D4, 3V3, GND, D5, D6, D7, D8, RX, TX, A0, RSV, SD3, SD2, SD1, CMD, SD0, CLK, EN, RST, VIN
6 AA Battery Holder
- Description: A battery holder for 6 AA batteries.
- Pins: +VCC, GND
3xAA Battery
- Description: A battery pack consisting of 3 AA batteries.
- Pins: VCC, GND
Wiring Details
Arduino UNO
- 5V: Connected to +VCC of the Ultrasonic Sensor, 5V/4V of the SIM 800L V2.0 GSM, and VIN of the ESP8266 NodeMCU.
- GND: Connected to GND of the Ultrasonic Sensor, GND of the SIM 800L V2.0 GSM, GND of the ESP8266 NodeMCU, and GND of the 6 AA Battery Holder.
- D2: Connected to D2 of the ESP8266 NodeMCU.
- D3: Connected to D3 of the ESP8266 NodeMCU.
- Vin: Connected to +VCC of the 6 AA Battery Holder.
- D9: Connected to Trigger of the Ultrasonic Sensor.
- D8: Connected to Echo of the Ultrasonic Sensor.
- D1: Connected to SIM_TXD of the SIM 800L V2.0 GSM.
- D0: Connected to SIM.RXD of the SIM 800L V2.0 GSM.
Ultrasonic Sensor
- +VCC: Connected to 5V of the Arduino UNO.
- Trigger: Connected to D9 of the Arduino UNO.
- Echo: Connected to D8 of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
SIM 800L V2.0 GSM
- SIM_TXD: Connected to D1 of the Arduino UNO.
- 5V/4V: Connected to 5V of the Arduino UNO.
- SIM.RXD: Connected to D0 of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
ESP8266 NodeMCU
- VIN: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- D2: Connected to D2 of the Arduino UNO.
- D3: Connected to D3 of the Arduino UNO.
6 AA Battery Holder
- +VCC: Connected to Vin of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
3xAA Battery
- VCC: Not connected in the provided net list.
- GND: Not connected in the provided net list.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code running on the Arduino UNO.