MODIFICATION OF ULTRASONIC DISTANCE MEASUREMENT

Status
Not open for further replies.

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

  • UDMD.png
    106.8 KB · Views: 111
  • buzzer cct.png
    14.5 KB · Views: 126

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…