Arduino UNO Based Ultrasonic Distance Measurement with Voice Playback
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with an ISD 1820 voice recording and playback module, a loudspeaker, and an HC-SR04 ultrasonic sensor. The Arduino UNO serves as the central processing unit, controlling the operations of the ultrasonic sensor and the voice module. The ultrasonic sensor is used to measure distance via ultrasonic waves, and the ISD 1820 module is used for recording and playing back audio through the connected loudspeaker.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
ISD 1820
- Description: A voice recording and playback module.
- Pins: SP-, SP+, VCC, GND, P-E.
Loudspeaker
- Description: An electroacoustic transducer used to produce sound.
- Pins: pin1, pin2.
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic ranging module that provides 2cm to 400cm non-contact measurement functionality.
- Pins: VCC, TRIG, ECHO, GND.
Wiring Details
Arduino UNO
- 5V connected to VCC of HC-SR04 Ultrasonic Sensor and ISD 1820.
- GND connected to GND of HC-SR04 Ultrasonic Sensor and ISD 1820.
- D9 connected to TRIG of HC-SR04 Ultrasonic Sensor.
- D8 connected to ECHO of HC-SR04 Ultrasonic Sensor.
- D6 connected to P-E of ISD 1820.
ISD 1820
- VCC connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO.
- P-E connected to D6 of Arduino UNO.
- SP- connected to pin1 of Loudspeaker.
- SP+ connected to pin2 of Loudspeaker.
Loudspeaker
- pin1 connected to SP- of ISD 1820.
- pin2 connected to SP+ of ISD 1820.
HC-SR04 Ultrasonic Sensor
- VCC connected to 5V of Arduino UNO.
- TRIG connected to D9 of Arduino UNO.
- ECHO connected to D8 of Arduino UNO.
- GND connected to GND of Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes
- The code provided for the Arduino UNO is a template with empty setup and loop functions. The actual implementation should include initialization of the pins and the logic for controlling the HC-SR04 Ultrasonic Sensor and the ISD 1820 module.
- The
D6pin on the Arduino UNO is used to trigger playback on the ISD 1820 module. - The
D9andD8pins on the Arduino UNO are used to control the HC-SR04 Ultrasonic Sensor's trigger and echo functions, respectively.