Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with two HC-SR04 Ultrasonic Sensors and two Coreless Vibration Motors. The Arduino UNO is used as the central processing unit to control the ultrasonic sensors for distance measurement and to drive the vibration motors based on sensor inputs.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins Used: IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
- Purpose: Acts as the central controller for the circuit, interfacing with sensors and motors.
HC-SR04 Ultrasonic Sensor (x2)
- Description: An ultrasonic distance sensor capable of measuring distances from 2cm to 400cm.
- Pins Used: VCC, TRIG, ECHO, GND.
- Purpose: To measure the distance to objects in front of the sensor.
Coreless Vibration Motor (x2)
- Description: A small motor that vibrates when electricity is applied.
- Pins Used: positive, negative.
- Purpose: To provide haptic feedback or alerts based on sensor inputs.
Wiring Details
Arduino UNO
- 5V connected to VCC of both HC-SR04 Ultrasonic Sensors.
- GND connected to GND of both HC-SR04 Ultrasonic Sensors and negative of both Coreless Vibration Motors.
- D3 connected to positive of one Coreless Vibration Motor.
- D2 connected to positive of the other Coreless Vibration Motor.
- D7 connected to TRIG of one HC-SR04 Ultrasonic Sensor.
- D6 connected to ECHO of the same HC-SR04 Ultrasonic Sensor.
- D5 connected to TRIG of the other HC-SR04 Ultrasonic Sensor.
- D4 connected to ECHO of the other HC-SR04 Ultrasonic Sensor.
HC-SR04 Ultrasonic Sensor
- VCC connected to 5V on the Arduino UNO.
- GND connected to GND on the Arduino UNO.
- TRIG connected to a digital pin on the Arduino UNO (D7 or D5).
- ECHO connected to a digital pin on the Arduino UNO (D6 or D4).
Coreless Vibration Motor
- positive connected to a digital pin on the Arduino UNO (D3 or D2).
- negative connected to GND on the Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional code. It needs to be populated with the logic for controlling the HC-SR04 Ultrasonic Sensors and the Coreless Vibration Motors based on the sensor readings.