Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller connected to an HC-SR04 Ultrasonic Sensor. The Arduino UNO provides power to the sensor and reads the sensor's output to measure distance.
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
- Purpose in Circuit: Acts as the main controller, providing power and reading data from the ultrasonic sensor.
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for measuring distance by using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
- Purpose in Circuit: Measures distance and sends the data to the Arduino UNO.
Wiring Details
Arduino UNO
- 5V: Connected to VCC of the HC-SR04 Ultrasonic Sensor
- GND: Connected to GND of the HC-SR04 Ultrasonic Sensor
- D12: Connected to ECHO of the HC-SR04 Ultrasonic Sensor
- D11: Connected to TRIG of the HC-SR04 Ultrasonic Sensor
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V of the Arduino UNO
- GND: Connected to GND of the Arduino UNO
- ECHO: Connected to D12 of the Arduino UNO
- TRIG: Connected to D11 of the Arduino UNO
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your settings, and the loop() function is where the main code runs repeatedly.
Additional Documentation
The additional documentation file is empty and does not contain any specific information.
