Ultrasonic distance measurement with PSoC5

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

We are 4 students in electronics engineering and we have the project to mesure a distance with a PSoC component.

   

We want to generate a square waveform with a 40 kHz frequency and to measure the time response.

   

We only have the PSoC Creator 1.0 software.

   

We're just beginning with this software.

   

To generate the signal, we use a pwm with a 6 MHz clock and a period of 150.

   

But how to retrieve the reflective signal ? We have seen some examples for the PSoC 3 with a counter but ours is different.

   

Thanks in advance for your help,

   

Best regards,

   

Adrien.

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Probably you can use the sonar sender as a receiver (with a bit amplification) as well if you do not have got one.

   

The principle is: Send a send a blip (usually 10 ms), then listen for an answer and start  a counter which captures its value when an echo-blip arrives, this will let you calculate the time.

   

 

   

Bob

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

These mighjt help with principles -

   

 

   

    

   

          

   

http://www.cypress.com/?rID=65556    AN76350     PSOC 1, but could adapt to PSOC 3/4/5

   

 

   

http://www.element14.com/community/docs/DOC-63719/l/project-38--ultrasonic-distance-measurement-psoc...     PSOC 4 Ultrasonic Approach

   

 

   

Regards, Dana.

0 Likes