首页>>科技 >>内容

用于探测的超声波频率范围是多少,超声波探测器DIY图解

发布时间:2023-12-31 17:34:14编辑:温柔的背包来源:

很多朋友对用于探测的超声波频率范围是多少,超声波探测器DIY图解不是很了解,每日小编刚好整理了这方面的知识,今天就来带大家一探究竟。

用于探测的超声波频率范围是多少,超声波探测器DIY图解

第一步:它是如何工作的?定位系统由三个带有超声波探测器的传感器站组成。id_node 1,2,3形成矩形或正方形,掠角如图,它们之间的距离已知。const float distance between 1 and 2=60.0;const float distance between 2 and 3=75.0;这些传感器测量id_node大于3的其他物体的距离和角度扫描角度,超声波探测器在170。

这些都是利用无线通信将距离、测量角度、id_node发送到另一个主站进行分析,利用三角测量计算出物体的位置并进行识别。/p"为了避免干扰,主站以这种方式同步所有超声波探测器,每个探测器只测量一个超声波探测器后的时间,并使用串行通信。主站向加工草图发送信息(角度、距离、id_object)以绘制结果。步骤2:如何配置三个传感器站和对象

每个传感器站唯一的作用就是检测物体,发送距离列表,测量主站的角度和id节点。所以你必须更新允许的最大探测距离(“valid_max_distance”)和最小值(“valid _ min _ distance”)(cm)来提高探测,限制探测区域:int valid _ max _ distance=80int valid _ min _ distance=1;这些传感器站的id节点(以下代码中的“this_node”)为1、2、3,主站的id节点为0。

Const uint16 _ t this _ node=01//the address of this node in octal format (Node01, Node02, node03) constuint16 _ other _ node=00; //The address of the master node (Node00) in octal format is scanned by each sensor station and the angle is 100 ("maximum angle"in the following code) # Define minimum angle 0 # Define maximum angle 100.

如前所述,物体的唯一功能是检测物体,并将测得的距离、角度、id物体列表发送给主站。对象的id(以下代码中的“this_node”)必须大于3。扫描每个对象,角度为170。如上所述,最大和最小检测距离可以更新。const uint16 _ t this _ node=04//八进制格式的节点地址(Node04,Node05,)const uint16 _ t other _ node=00//八进制格式的主节点(Node00)的地址

int valid _ max _ distance=80int valid _ min _ distance=1;# define min _ angle 0 # define max _ angle 170第三步:如何配置主站主站的功能是接收传感器站和物体的传输,利用串口将结果发送给加工草图进行绘制。此外,所有对象和三个传感器站都以这种方式同步,每次只测量其中一个,以避免干扰。首先,您必须更新传感器1和2之间的距离(cm)以及传感器2和3之间的距离。const float distance between 1 and 2=60.0;

const float distance between 2 and 3=70.0;草图以如下方式计算物体的位置:对于物体的所有传输(id_node大于3),在超声波传感器的每次传输(id_node 1、2或3)中发现相同的距离。所有这些点形成一个“候选”列表(距离、角度、id_node)作为对象的位置(草图中的“过程_点对象_具有_点传感器”)。

For each"candidate"in the previous list, the function"candidate _ selected _ between _ sensors 2 and 3"calculates which of them matches the following triangle condition (see pictures 2 and 3) from the perspective of ultrasonic sensors 2 and 3: float distance froms2=sin (radian (angle)) * distance; Float distancefroms3=cos (radian (angle _ candidate)) * distance _ candidate; //trigonometric condition 1 ABS (distance froms2 distance froms3-distance between 2 and 3)"=float (max _ difference _ distance)

As mentioned above, for each"candidate"in the previous list, which of the functions"candidate _ selected _ between _ sensors 1 and 2"2 matches the following triangular relationship (see Figure 2 and Figure 3): float distance froms1=sin (radian (angle)) * distance; Float distancefroms2=cos (radian (angle _ candidate)) * distance _ candidate; //trigonometric condition 2 ABS (distance froms1 distance froms2-distance between 1 and 2)"=float (max _ difference _ distance)

只有匹配三角测量条件1和2的候选(距离、角度、id_node)才是由传感器站1、2和3检测的识别对象。之后,主站将结果发送给加工草图进行绘制。第四步:材料清单一个传感器站或者一个物体需要的材料清单如下:纳米板超声波传感器微伺服电机NRF24L01无线模块NRF24L01适配器和主站的材料清单如下:纳米板NRF24L01无线模块NRF24L01适配器。

以上知识分享希望能够帮助到大家!