Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

MODIFICATION OF ULTRASONIC DISTANCE MEASUREMENT

samplus

Newbie
Joined
Aug 1, 2020
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
10
I have this design, its ultrasonic distance measurement, working perfectly, but I want to modify it by adding a buzzer (1) To beep once when it measures a distance equal to 1m and (2) To increase the frequency of beeping whenever the distance is less than 1m. I have the program just the circuit design. I need help, please. Thank you
 

Attachments


KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
17,428
Helped
3,938
Reputation
7,874
Reaction score
3,809
Trophy points
113
Activity points
115,559
Hi,

I recommend to modify the code, but we just see a block diagram and a schematic....

Klaus
 

paulfjujo

Advanced Member level 4
Joined
Jun 9, 2008
Messages
1,349
Helped
275
Reputation
550
Reaction score
268
Trophy points
1,363
Location
France 01800
Activity points
9,458
Hello,

What accuracy do you need 1Meter +- xx mm ? xx cm ?
What is the global range of measurement ... example: 4meters maxi ?
Maybe you wil have to add , temperature compensation for Speed velocity in the air
What is your FOSC ? 12MHZ ? 1 cycle=1µS ?
time duration for ultrason travel (x 2 ) by timer1 ?
Minimum distance = low limit for measurement = xx cm ? example 8cm

i think with your 8051, you will get a poor resolution
but maybe enough for you .

Ultrasonic velocity in the air : 5.88 µS/mm parcouru à 20°C (340M/sec)
1 meter => 5.88mS
Threshold value to detect this limite

i tested a HCSR04 with PIC18F26K22 at 16MHz ( 1 cycle=0,25µS)
Drift of measure observed within 60 samples
Delta maximal de 0,35% sur 1,7M (observé sur 1 minute de mesure ) 60 mesures
with air temp compensation via LM35DZ sensor
 
Last edited:

Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top