FD2C3n

Ultrasonic ranging based on 51 microcontroller

 
Overview
The system description required by the question
: Ultrasonic ranging can be used for car reversing radar, obstacle avoidance of robots and cars, liquid level detection, etc. It is a convenient, fast and reliable non-contact detection method. This design uses an ultrasonic probe to make an automatic ranging device.
System functional requirements: (1) The ultrasonic transmission and reception functions are normal and can display the distance of obstacles in real time (digital tube or LCD display is not limited); (2) This design requires the ultrasonic probe to design the transmission and reception circuit by yourself, and the use of ready-made modules is not allowed. (3) Differentiate alarms when the distance is less than 30cm and 15cm. Less than 30cm is the warning distance and less than 15cm is the danger distance; the measurement distance error is less than 2%; it has a mechanical installation design, is easy to use and has good practicality.
Tips:
1. This design requires a certain foundation in analog electronics and good circuit welding skills. Unreasonable circuit welding, component layout and wiring may directly lead to failure;
2. Differentiate between R and S probes;
3. Check the quality of the probe before welding to ensure that the probe is normal.
Problem Analysis
Hints: Analyze and explain the entire problem or the main part of the problem content.
 
Hints: Overall design scheme block diagram: Schematic diagram design description
Ultrasonic module schematic diagram (refer to CS100A ultrasonic transceiver module design circuit)
Microcontroller minimum system:
(1) Type-C power supply
(2) P0 output pull-up
 
buzzer alarm circuit:
Ancient LCD display:
PCB design instructions
Hints: Here are some design instructions for the PCB, such as: PCB layout, wiring, line width, spacing and other design considerations
Software instructions
Hints: Software can be nested using code blocks. It is not necessary to explain all parts of the software. Only the important parts need to be explained. Code block:
#include
void main()
{
printf(""/n);
Physical

Demonstration Instructions
and Precautions
: This section outlines some important considerations during the creation of your work (optional).
Demonstration Video
Instructions: Upload your demonstration video as an attachment. Attachments can only be uploading files up to 50MB. Files larger than 50MB can be hosted on other cloud storage services or video websites; simply include the link here.
Other Attachment Upload
Instructions: Entries participating in this event must upload all relevant program attachments to an open-source platform or your personal code storage cloud. Attachments can be uploaded up to a maximum of 50MB (please do not upload to the LCSC workspace, as there are limitations).
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-27 23:42:41

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号