完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
是否可以将这些传感器中的两个相互间隔10厘米安装,不受干扰?当在传感器之间插入物体时,能够通过减去差异来测量该物体的厚度吗?
最后一个问题是如何执行测量读数的示例代码? 谢谢! 杰瑞T. #vl6180x 以上来自于谷歌翻译 以下为原文 Is it possible to mount two of these sensors about 10 cm apart facing each other, without interference? And when an object is inserted between the sensors be able to measure the thickness of that object by subtracting the difference? One last question is there example code of how to perform a measurement reading? Thanks! Jerry T. #vl6180x |
|
相关推荐
1个回答
|
|
你好杰里,
以下是您的问题的答案。 如果您安装两个相距10厘米的传感器并同时启动两个传感器的距离测量,那么它们将相互干扰。考虑到您的应用,您需要两个传感器来测量物体的厚度,这可以通过HOST处理器的一些帮助来完成。可以使用一个传感器来连续检测是否存在放置在视野中的物体以进行测量。一旦检测到物体,HOST处理器就可以从第二个VL6180X启动单次测距测量。最终结果是来自两个传感器的测量,这将允许HOST处理器计算所讨论的材料的厚度。 使用两个彼此面对的传感器的第二种方法是使用范围测量周期,寄存器0x001B,功能。此功能可以设置为所需的“采样”速率。如果将测量周期设置为最大收敛时间设置的4倍,并且测量开始彼此异相,则VL6180X设备不会立即相互干扰。然而,它们最终会相互干扰,但这种干扰的时间尺度尚不清楚,因为这取决于内部振荡器随时间的漂移。 对于示例代码,我绝对可以使用我们的STM32原语向您发送示例。请给我发电子邮件 邮寄地址:colin.ramrattan@st.com 用于示例代码。 以上来自于谷歌翻译 以下为原文 Hello Jerry, Here are the answers to your questions. If you mount two sensors 10 cm apart and initiate a range measurement from both of them at the same time then they will interfere with each other. Considering your application where you want two sensors to measure the thickness of an object, this can be done with some help from the HOST processor. One sensor can be used to continuously detect if there is an object placed in the field of view for measurement. Once an object is detected the HOST processor can initiate single-shot range measurements from the second VL6180X. The end result is measurement from both sensors which will allow the HOST processor to calculate the thickness of a material in question. The second way to use two sensors facing each other is to use the range intermeasurement period, register 0x001B, feature. This feature can be set for a desired “samplingâ€� rate. If the intermeasurement period is set to 4 times the max convergence time setting and the measurements are started out of phase to each other then, the VL6180X devices will not interfere with each other immediately. However, they will interfere with each other eventually but the timescale for this interference is not known as this depends on internal oscillator drifts over time. For the sample code, I can definitely send you an example using our STM32 primitives. Please email me at mailto:colin.ramrattan@st.com for the sample code. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2732 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6038 浏览 21 评论
1339浏览 4评论
201浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
443浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
274浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 19:01 , Processed in 1.275343 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号