- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.