Cypress技术论坛
直播中

徐振方

7年用户 150经验值
私信 关注
[问答]

如何用PSOC5进行超声波测距

你好,
我们是电子工程系的4名学生,我们有一个项目与一个PSoC组件保持距离。
我们希望产生一个40 kHz频率的方波,并测量时间响应。
我们只有PSoC创建者1软件。
我们刚刚开始使用这个软件。
为了产生信号,我们使用具有6 MHz时钟和150周期的PWM。
但是如何提取反射信号呢?我们已经看到了一些具有计数器的PSoC 3的例子,但是我们的例子是不同的。
谢谢你的帮助,
最好的问候,
阿德里安。
JPG
40.3 K

以上来自于百度翻译


     以下为原文
  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.


回帖(2)

王琳

2019-7-16 11:12:23
也许你可以使用声纳发送器作为一个接收器(有点放大),如果你没有一个。
原理是:发送一个点(通常10毫秒),然后听一个答案,并启动一个计数器,当回声出现时捕捉它的值,这将让你计算时间。
鲍勃

以上来自于百度翻译


     以下为原文
  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
举报

杨军

2019-7-16 11:30:23
这些都有助于原则。
HTTP://www. CyPress?COM/?RID=65556 AN76350 PSoC 1,但能适应PSoC 3/4/5。
HTTP://www. eltMe1.com /DOCS/DOC-63619/L/StudioStudio3-超声测距- PSOC-4先锋-KIT-PoC PSOC 4超声方法
问候,Dana。

以上来自于百度翻译


     以下为原文
  These mig*** 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-4-pioneer-kit-community     PSOC 4 Ultrasonic Approach
     
    Regards, Dana.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分