Circuit Documentation
Summary
This circuit integrates various components controlled by an Arduino Nano microcontroller. It includes two HC-SR04 Ultrasonic Sensors for distance measurement, a buzzer and a buzzer module for audio feedback, a vibration motor for haptic feedback, a 9V battery with a voltage regulator to provide a stable power supply, and a rocker switch to control power flow. The circuit is designed to interact with the environment by measuring distances and providing alerts through sound and vibration.
Component List
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic distance sensor that uses sonar to determine the distance to an object.
- Pins: VCC, TRIG, ECHO, GND
Arduino Nano
- Description: A small, complete, and breadboard-friendly microcontroller board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2 to D13, VIN, 5V, A0 to A7, AREF, 3V3
Buzzer
- Description: An electromechanical component that produces a loud sound or tone when an electrical signal is applied.
- Pins: PIN, GND
Buzzer Module
- Description: A module that includes a buzzer and can be easily interfaced with microcontrollers.
- Pins: GND, Vcc, I/O
Vibration Motor
- Description: A small motor that vibrates when electricity is applied, used for haptic feedback.
- Pins: POS, NEG
9V Battery
- Description: A standard 9V battery used as the power source for the circuit.
- Pins: +, -
Rocker Switch
- Description: A switch that rocks back and forth to open or close the circuit.
- Pins: 1, 2
Voltage Regulator
- Description: A component that maintains a constant voltage level to the load.
- Pins: IN, GND, OUT
Wiring Details
HC-SR04 Ultrasonic Sensor
- VCC: Connected to the 5V output from the Voltage Regulator.
- TRIG: Connected to digital pins D9 and D5 on the Arduino Nano for the two sensors.
- ECHO: Connected to digital pins D10 and D6 on the Arduino Nano for the two sensors.
- GND: Connected to the common ground in the circuit.
Arduino Nano
- 5V: Receives power from the Voltage Regulator.
- GND: Connected to the common ground in the circuit.
- D9, D5: Connected to the TRIG pins of the HC-SR04 Ultrasonic Sensors.
- D10, D6: Connected to the ECHO pins of the HC-SR04 Ultrasonic Sensors.
- D7: Connected to the POS pin of the Vibration Motor.
- D11/MOSI: Connected to the PIN pin of the buzzer.
- D12/MISO: Connected to the I/O pin of the Buzzer Module.
Buzzer
- PIN: Connected to digital pin D11/MOSI on the Arduino Nano.
- GND: Connected to the common ground in the circuit.
Buzzer Module
- Vcc: Connected to the 5V output from the Voltage Regulator.
- I/O: Connected to digital pin D12/MISO on the Arduino Nano.
- GND: Connected to the common ground in the circuit.
Vibration Motor
- POS: Connected to digital pin D7 on the Arduino Nano.
- NEG: Connected to the common ground in the circuit.
9V Battery
- +: Connected to the IN pin of the Voltage Regulator and one terminal of the Rocker Switch.
- -: Connected to the common ground in the circuit.
Rocker Switch
- Terminal 1: Connected to the + pin of the 9V Battery.
- Terminal 2: Connected to the IN pin of the Voltage Regulator.
Voltage Regulator
- IN: Connected to the + pin of the 9V Battery through the Rocker Switch.
- GND: Connected to the common ground in the circuit.
- OUT: Provides a regulated 5V to the Arduino Nano, HC-SR04 Ultrasonic Sensors, and Buzzer Module.
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not include specific functionality. It needs to be completed with the logic for interacting with the ultrasonic sensors, buzzer, buzzer module, and vibration motor.