Arduino Nano-Controlled Ultrasonic Distance Sensor with Vibration Feedback
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino Nano microcontroller with an HC-SR04 Ultrasonic Sensor and a Vibration Motor. The circuit is powered by an 18650 battery in a holder, which is regulated by a PowerBoost 1000 Basic Pad USB to provide a stable 5V supply. The Arduino Nano controls the Vibration Motor and reads distance measurements from the HC-SR04 Ultrasonic Sensor. The ground connections are unified across the components, and the power supply is distributed accordingly.
Component List
Arduino Nano
- Description: A compact microcontroller board based on the ATmega328P.
- Pins: D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, GND, RST, RX0, TX1, D13, 3V3, REF, A0, A1, A3, A4, A5, A6, A7, 5V, VIN
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic distance sensor capable of measuring distances by emitting ultrasonic waves and measuring the time taken for the echo to return.
- Pins: VCC, TRIG, ECHO, GND
Vibration Motor
- Description: A small motor that vibrates when powered, typically used for haptic feedback.
- Pins: POS, NEG
18650 Battery in Holder
- Description: A rechargeable lithium-ion battery in a holder, providing a nominal voltage typically around 3.7V.
- Pins: GND, VCC
PowerBoost 1000 Basic Pad USB
- Description: A power supply module that boosts the voltage from the 18650 battery to a regulated 5V output.
- Pins: VBAT, GND, ENABLE, LBO, 5.0V
Wiring Details
Arduino Nano
- D4 connected to Vibration Motor POS
- D3 connected to HC-SR04 TRIG
- D2 connected to HC-SR04 ECHO
- GND connected to Vibration Motor NEG, HC-SR04 GND, and PowerBoost GND
- VIN connected to PowerBoost 5.0V
HC-SR04 Ultrasonic Sensor
- VCC connected to Arduino Nano VIN
- TRIG connected to Arduino Nano D3
- ECHO connected to Arduino Nano D2
- GND connected to Arduino Nano GND
Vibration Motor
- POS connected to Arduino Nano D4
- NEG connected to Arduino Nano GND
18650 Battery in Holder
- GND connected to PowerBoost GND
- VCC connected to PowerBoost VBAT
PowerBoost 1000 Basic Pad USB
- VBAT connected to 18650 Battery VCC
- GND connected to 18650 Battery GND, Arduino Nano GND
- 5.0V connected to Arduino Nano VIN
Documented Code
No code has been provided for the microcontroller(s) in this circuit. The documentation of the code would typically include the embedded software that runs on the Arduino Nano, detailing the setup and loop functions, libraries used, and descriptions of custom functions and routines. Since no code is available, this section is left blank. If code becomes available, it should be documented here with comments explaining the functionality and logic of the code.