Circuit Documentation
Summary
This circuit integrates an HC-SR04 Ultrasonic Sensor, a Water Level Sensor, a buzzer, and an Arduino UNO microcontroller. The primary function of this circuit is to measure distances using the ultrasonic sensor and detect water levels with the water level sensor. The buzzer serves as an output device to provide audible feedback based on sensor readings. The Arduino UNO is the central processing unit that controls the sensors and the buzzer, executing the embedded code to perform the desired operations.
Component List
HC-SR04 Ultrasonic Sensor
- Pins: VCC, TRIG, ECHO, GND
- Description: A sensor that measures distance by emitting ultrasonic waves and measuring the time taken for the echo to return.
Water Level Sensor
- Pins: SIG, VCC, GND
- Description: A sensor that detects the level of water by measuring the electrical conductivity between its contacts.
Arduino UNO
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
- Description: A microcontroller board based on the ATmega328P, with digital and analog I/O pins.
Buzzer
- Pins: PIN, GND
- Description: An electromechanical component that emits sound when an electrical signal is applied.
Wiring Details
HC-SR04 Ultrasonic Sensor
- VCC: Connected to the 5V output from the Arduino UNO.
- TRIG: Connected to digital pin D9 on the Arduino UNO.
- ECHO: Connected to digital pin D10 on the Arduino UNO.
- GND: Connected to the ground (GND) on the Arduino UNO.
Water Level Sensor
- SIG: Connected to digital pin D7 on the Arduino UNO.
- VCC: Connected to the 5V output from the Arduino UNO.
- GND: Connected to the ground (GND) on the Arduino UNO.
Buzzer
- PIN: Connected to digital pin D11 on the Arduino UNO.
- GND: Connected to the ground (GND) on the Arduino UNO.
Arduino UNO
- 5V: Provides power to the HC-SR04 Ultrasonic Sensor and the Water Level Sensor.
- GND: Common ground for the HC-SR04 Ultrasonic Sensor, Water Level Sensor, and buzzer.
- D9: Sends trigger signal to the HC-SR04 Ultrasonic Sensor.
- D10: Receives echo signal from the HC-SR04 Ultrasonic Sensor.
- D7: Receives signal from the Water Level Sensor.
- D11: Controls the buzzer.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional logic. It needs to be populated with the setup and loop functions to control the sensors and the buzzer based on the requirements of the circuit.