This circuit is designed to interface an Arduino Nano with an HC-SR04 Ultrasonic Sensor and a buzzer. The circuit is powered by a 3xAAA battery pack with a rocker switch for power control. The Arduino Nano reads distance measurements from the ultrasonic sensor and can trigger the buzzer based on the readings.
Arduino Nano
Rocker Switch
3xAAA Battery Pack with Switch and JST
Buzzer
HC-SR04 Ultrasonic Sensor
GND is connected to:
D6 is connected to:
D7 is connected to:
D11/MOSI is connected to:
VIN is connected to:
5V is connected to:
Pin 1 is connected to:
Pin 2 is connected to:
POS is connected to:
NEG is connected to:
PIN is connected to:
GND is connected to:
VCC is connected to:
TRIG is connected to:
ECHO is connected to:
GND is connected to:
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino Nano.