Shoe is not part of project.
Project Requirements:
- Arduino Nano microcontroller
- Ultrasonic sensor (HC-SR04 commonly used)
- Buzzer
- Breadboard
- 9V Battery with Clip
- Jumper Wire’s
Objective:
- Measure object distance using the ultrasonic sensor.
- Generate buzzer beeps with on/off durations varying based on the measured distance:
- 40 cm distance: 600 ms on, 600 ms off
- 30 cm distance: 450 ms on, 450 ms off
- 20 cm distance: 300 ms on, 300 ms off
- 10 cm distance: 150 ms on, 150 ms off
Improved Response:
Hardware Connections:
- Ultrasonic Sensor:
- VCC pin to Arduino’s 5V pin.
- GND pin to Arduino’s GND pin.
- TRIG pin to any Arduino digital pin (e.g., D2).
- ECHO pin to another Arduino digital pin (e.g., D3).
- Buzzer:
- Choose a buzzer suitable for Arduino’s voltage (usually 5V or 3.3V) and connect it in series with a resistor (e.g., 220 ohms) to protect it from excessive current. Resistor is optional.
- Connect the resistor-buzzer combination to a PWM-capable Arduino pin (e.g., D8 or D9).
Reviews
There are no reviews yet.