Arduino Nano-Based Dual Ultrasonic Sensor System with Buzzer and Vibration Motor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino Nano, two ultrasonic sensors, a buzzer, a vibration motor, a rocker switch, a Li-Ion battery, and a LiPo battery charger module. The circuit is designed to interface with various sensors and actuators, powered by a rechargeable battery system.
Component List
Arduino Nano
- Description: A small, complete, and breadboard-friendly board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
Ultrasonic Sensor (x2)
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Buzzer
- Description: An audio signaling device.
- Pins: PIN, GND
Vibration Motor
- Description: A small motor that provides vibration feedback.
- Pins: +, -
18650 Li-Ion Battery
- Description: A rechargeable lithium-ion battery.
- Pins: Positive, Negative
Rocker Switch
- Description: A switch that can be toggled between an on and off state.
- Pins: output, input
LiPo Battery Charger Module
- Description: A module used to charge LiPo batteries.
- Pins: B-, B+, OUT-, OUT+
Wiring Details
Arduino Nano
- GND: Connected to the GND pins of the Vibration Motor, both Ultrasonic Sensors, and the Buzzer.
- D2: Connected to the Echo pin of the second Ultrasonic Sensor.
- D3: Connected to the Trigger pin of the second Ultrasonic Sensor.
- D4: Connected to the Echo pin of the first Ultrasonic Sensor.
- D5: Connected to the Trigger pin of the first Ultrasonic Sensor.
- D6: Connected to the PIN of the Buzzer.
- D8: Connected to the PIN of the Buzzer.
- D9: Connected to the + pin of the Vibration Motor.
- VIN: Connected to the input pin of the Rocker Switch.
- 5V: Connected to the +VCC pins of both Ultrasonic Sensors.
Ultrasonic Sensor (First)
- +VCC: Connected to the 5V pin of the Arduino Nano.
- Trigger: Connected to the D5 pin of the Arduino Nano.
- Echo: Connected to the D4 pin of the Arduino Nano.
- GND: Connected to the GND pin of the Arduino Nano.
Ultrasonic Sensor (Second)
- +VCC: Connected to the 5V pin of the Arduino Nano.
- Trigger: Connected to the D3 pin of the Arduino Nano.
- Echo: Connected to the D2 pin of the Arduino Nano.
- GND: Connected to the GND pin of the Arduino Nano.
Buzzer
- PIN: Connected to the D6 and D8 pins of the Arduino Nano.
- GND: Connected to the GND pin of the Arduino Nano.
Vibration Motor
- +: Connected to the D9 pin of the Arduino Nano.
- -: Connected to the GND pin of the Arduino Nano.
18650 Li-Ion Battery
- Positive: Connected to the B+ pin of the LiPo Battery Charger Module and the output pin of the Rocker Switch.
- Negative: Connected to the B- pin of the LiPo Battery Charger Module and the GND pin of the Arduino Nano.
Rocker Switch
- input: Connected to the VIN pin of the Arduino Nano.
- output: Connected to the Positive pin of the 18650 Li-Ion Battery and the B+ pin of the LiPo Battery Charger Module.
LiPo Battery Charger Module
- B+: Connected to the Positive pin of the 18650 Li-Ion Battery and the output pin of the Rocker Switch.
- B-: Connected to the Negative pin of the 18650 Li-Ion Battery and the GND pin of the Arduino Nano.
- OUT+: Not connected in this circuit.
- OUT-: Not connected in this circuit.
Documented Code
Arduino Nano 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 Nano, with setup and loop functions defined but not yet implemented.