Distance Sense

Distance Sense

信号调理应用程序

Ultrasonic ranging modules provide a non-contact measurement function. This design is a controller for an ultrasonic rangefinderbased on theHC-SR04

原料

  • 任何GreenPAK
  • 八个LED
  • 八个电阻

格林帕克Diagram

设计步骤

  1. 为Trig配置用于回声和输出的GPIO输入。
  2. Add LUT logic and CNT/DLY0 to create a generator with ENABLE signal.
  3. 添加管道延迟和CNT / DLY2以创建用于检测距离的发电机。
  4. Configure CNT/DLY blocks to上升边延迟mode to measure varied distances.
  5. Add and configure DFFs to latch distance data.
  6. Connect each DFF output to the desired output pins and configure as open-drain.

Resources

GreenPak设计师文件