STM32F103C8T6 and HC-SR04 Ultrasonic Sensor Distance Measurement System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an HC-SR04 Ultrasonic Sensor and an STM32F103C8T6 microcontroller. The circuit is designed to interface the ultrasonic sensor with the microcontroller to measure distance. The document includes a list of components, wiring details, and any associated code.
Component List
HC-SR04 Ultrasonic Sensor
- Description: The HC-SR04 is an ultrasonic sensor used for distance measurement. It emits an ultrasonic wave and measures the time it takes for the echo to return.
- Pins: VCC, TRIG, ECHO, GND
STM32F103C8T6
- Description: The STM32F103C8T6 is a 32-bit microcontroller from STMicroelectronics. It features a Cortex-M3 core and is used for various embedded applications.
- Pins: GND, 3.3V, reset, B11, B10, B1, B0, A7, A6, A5, A4, A3, A2, A1, A0, C15, C14, C13, VBT, 3.3, 5V, B12, B13, b14, B15, A8, A9, A10, A11, A12, A15, B3, B4, B5, B6, B7, B8, B9, SWIO, SWCLK
Wiring Details
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V on STM32F103C8T6
- TRIG: Connected to B9 on STM32F103C8T6
- ECHO: Connected to B8 on STM32F103C8T6
- GND: Connected to GND on STM32F103C8T6
STM32F103C8T6
- 5V: Connected to VCC on HC-SR04 Ultrasonic Sensor
- B9: Connected to TRIG on HC-SR04 Ultrasonic Sensor
- B8: Connected to ECHO on HC-SR04 Ultrasonic Sensor
- GND: Connected to GND on HC-SR04 Ultrasonic Sensor
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including the components used and their interconnections. The HC-SR04 Ultrasonic Sensor is interfaced with the STM32F103C8T6 microcontroller to measure distance, with specific pins connected as detailed above.