Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

MODIFICATION OF ULTRASONIC DISTANCE MEASUREMENT

Status
Not open for further replies.

samplus

Newbie
Newbie level 1
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

  • UDMD.png
    UDMD.png
    106.8 KB · Views: 149
  • buzzer cct.png
    buzzer cct.png
    14.5 KB · Views: 160

Hi,

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

Klaus
 

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:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top