完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我一直在尝试使用VL53L0X TOF传感器来获取测距数据,但我无法找到所有寄存器的功能?我试着查看数据表和API规范,但似乎没有什么能清楚地告诉我每个寄存器的定义是什么。我在PIC24上对此进行编码,我不想使用提供的交钥匙解决方案,因为我不希望它依赖于WIN32。我只是想简单地设置I2C,以便它与传感器正确通信。如果有人能告诉我哪些寄存器需要正确获取测距数据?或者如果有寄存器地图?谢谢。
以上来自于谷歌翻译 以下为原文 I've been trying to use the VL53L0X TOF sensor to get ranging data but I'm having trouble finding what all the registers do? I tried looking through the datasheet and API specs but nothing seemed to clearly tell me what each register is defined as. I'm coding this on a PIC24 and I don't want to use the turn-key solution provided because I don't want it to be reliant on WIN32. I'm just trying to simply set up the I2C so that it communicates with the sensor properly. If someone could tell me what registers I will need to properly get the ranging data? Or if there's a register map? Thanks. |
|
相关推荐
2个回答
|
|
嗨,我也对此感到困惑,并有同样的问题,但我认为这个问题也在这个线程中描述:
https://community.st.com/message/131807 特别回答没有。 3很好。如果不是你问的问题,请告诉我。 最好的祝福 Sørenkarlsen 以上来自于谷歌翻译 以下为原文 Hi, I am confused about this too and have the same problem, but I think the problem has also been described in this thread: https://community.st.com/message/131807 Especially answer no. 3 is good.If its not what you are asking about please let me know. Best Regards Søren karlsen |
|
|
|
可以帮助你,从arduino网站获得
从API vl53l0x_device.h注册地址(按此处列出的那样排序) 枚举 regAddr { SYSRANGE_START = 为0x00 ,SYSTEM_THRESH_HIGH = 0x0C ,SYSTEM_THRESH_LOW = 为0x0E ,SYSTEM_SEQUENCE_CONFIG = 0×01 ,SYSTEM_RANGE_CONFIG = ×09 ,SYSTEM_INTERMEASUREMENT_PERIOD = 0×04 ,SYSTEM_INTERRUPT_CONFIG_GPIO = 的0x0A ,GPIO_HV_MUX_ACTIVE_HIGH = 的0x84 ,SYSTEM_INTERRUPT_CLEAR = 0x0B中 ,RESULT_INTERRUPT_STATUS = 0×13 ,RESULT_RANGE_STATUS = 0×14 ,RESULT_CORE_AMBIENT_WINDOW_EVENTS_RTN = 0xBC ,RESULT_CORE_RANGING_TOTAL_EVENTS_RTN = 将0xC0 ,RESULT_CORE_AMBIENT_WINDOW_EVENTS_REF = 0xD0 ,RESULT_CORE_RANGING_TOTAL_EVENTS_REF = 0xD4 ,RESULT_PEAK_SIGNAL_RATE_REF = 0xB6 ,ALGO_PART_TO_PART_RANGE_OFFSET_MM = 0×28 ,I2C_SLAVE_DEVICE_ADDRESS = 0x8A ,MSRC_CONFIG_CONTROL = 0X60 ,PRE_RANGE_CONFIG_MIN_SNR = 0×27 ,PRE_RANGE_CONFIG_VALID_PHASE_LOW = 0x56储存 ,PRE_RANGE_CONFIG_VALID_PHASE_HIGH = 的0x57 ,PRE_RANGE_MIN_COUNT_RATE_RTN_LIMIT = 0x64 ,FINAL_RANGE_CONFIG_MIN_SNR = 0×67 ,FINAL_RANGE_CONFIG_VALID_PHASE_LOW = 0X47 ,FINAL_RANGE_CONFIG_VALID_PHASE_HIGH = 0x48 ,FINAL_RANGE_CONFIG_MIN_COUNT_RATE_RTN_LIMIT = 0×44 ,PRE_RANGE_CONFIG_SIGMA_THRESH_HI = 0x61 ,PRE_RANGE_CONFIG_SIGMA_THRESH_LO = 0X62 ,PRE_RANGE_CONFIG_VCSEL_PERIOD = 为0x50 ,PRE_RANGE_CONFIG_TIMEOUT_MACROP_HI = 0x51 ,PRE_RANGE_CONFIG_TIMEOUT_MACROP_LO = 0×52 ,SYSTEM_HISTOGRAM_BIN = 0×81 ,HISTOGRAM_CONFIG_INITIAL_PHASE_SELECT = 0x33 ,HISTOGRAM_CONFIG_READOUT_CTRL = 0x55的 ,FINAL_RANGE_CONFIG_VCSEL_PERIOD = 0x70 ,FINAL_RANGE_CONFIG_TIMEOUT_MACROP_HI = 0x71 ,FINAL_RANGE_CONFIG_TIMEOUT_MACROP_LO = 0x72 ,CROSSTALK_COMPENSATION_PEAK_RATE_MCPS = 为0x20 ,MSRC_CONFIG_TIMEOUT_MACROP = 0×46 ,SOFT_RESET_GO2_SOFT_RESET_N = 为0xBF ,IDENTIFICATION_MODEL_ID = 将0xC0 ,IDENTIFICATION_REVISION_ID = 为0xC2 ,OSC_CALIBRATE_VAL = 0xF8的 ,GLOBAL_CONFIG_VCSEL_WIDTH = 0x32 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_0 = 0XB0 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_1 = 0xB1 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_2 = 0xB2 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_3 = 0xB3 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_4 = 0xB4 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_5 = 0xB5执行 ,GLOBAL_CONFIG_REF_EN_START_SELECT = 0xB6 ,DYNAMIC_SPAD_NUM_REQUESTED_REF_SPAD = 0x4E ,DYNAMIC_SPAD_REF_EN_START_OFFSET = 0x4F ,POWER_MANAGEMENT_GO1_POWER_FORCE = 0x80的 ,VHV_CONFIG_PAD_SCL_SDA__EXTSUP_HV = 0x89上 ,ALGO_PHASECAL_LIM = 的0x30 ,ALGO_PHASECAL_CONFIG_TIMEOUT = 的0x30 ,}; 以上来自于谷歌翻译 以下为原文 may help you, got from arduino website register addresses from API vl53l0x_device.h (ordered as listed there) enum regAddr{ SYSRANGE_START = 0x00 ,SYSTEM_THRESH_HIGH = 0x0C ,SYSTEM_THRESH_LOW = 0x0E ,SYSTEM_SEQUENCE_CONFIG = 0x01 ,SYSTEM_RANGE_CONFIG = 0x09 ,SYSTEM_INTERMEASUREMENT_PERIOD = 0x04 ,SYSTEM_INTERRUPT_CONFIG_GPIO = 0x0A ,GPIO_HV_MUX_ACTIVE_HIGH = 0x84 ,SYSTEM_INTERRUPT_CLEAR = 0x0B ,RESULT_INTERRUPT_STATUS = 0x13 ,RESULT_RANGE_STATUS = 0x14 ,RESULT_CORE_AMBIENT_WINDOW_EVENTS_RTN = 0xBC ,RESULT_CORE_RANGING_TOTAL_EVENTS_RTN = 0xC0 ,RESULT_CORE_AMBIENT_WINDOW_EVENTS_REF = 0xD0 ,RESULT_CORE_RANGING_TOTAL_EVENTS_REF = 0xD4 ,RESULT_PEAK_SIGNAL_RATE_REF = 0xB6 ,ALGO_PART_TO_PART_RANGE_OFFSET_MM = 0x28 ,I2C_SLAVE_DEVICE_ADDRESS = 0x8A ,MSRC_CONFIG_CONTROL = 0x60 ,PRE_RANGE_CONFIG_MIN_SNR = 0x27 ,PRE_RANGE_CONFIG_VALID_PHASE_LOW = 0x56 ,PRE_RANGE_CONFIG_VALID_PHASE_HIGH = 0x57 ,PRE_RANGE_MIN_COUNT_RATE_RTN_LIMIT = 0x64 ,FINAL_RANGE_CONFIG_MIN_SNR = 0x67 ,FINAL_RANGE_CONFIG_VALID_PHASE_LOW = 0x47 ,FINAL_RANGE_CONFIG_VALID_PHASE_HIGH = 0x48 ,FINAL_RANGE_CONFIG_MIN_COUNT_RATE_RTN_LIMIT = 0x44 ,PRE_RANGE_CONFIG_SIGMA_THRESH_HI = 0x61 ,PRE_RANGE_CONFIG_SIGMA_THRESH_LO = 0x62 ,PRE_RANGE_CONFIG_VCSEL_PERIOD = 0x50 ,PRE_RANGE_CONFIG_TIMEOUT_MACROP_HI = 0x51 ,PRE_RANGE_CONFIG_TIMEOUT_MACROP_LO = 0x52 ,SYSTEM_HISTOGRAM_BIN = 0x81 ,HISTOGRAM_CONFIG_INITIAL_PHASE_SELECT = 0x33 ,HISTOGRAM_CONFIG_READOUT_CTRL = 0x55 ,FINAL_RANGE_CONFIG_VCSEL_PERIOD = 0x70 ,FINAL_RANGE_CONFIG_TIMEOUT_MACROP_HI = 0x71 ,FINAL_RANGE_CONFIG_TIMEOUT_MACROP_LO = 0x72 ,CROSSTALK_COMPENSATION_PEAK_RATE_MCPS = 0x20 ,MSRC_CONFIG_TIMEOUT_MACROP = 0x46 ,SOFT_RESET_GO2_SOFT_RESET_N = 0xBF ,IDENTIFICATION_MODEL_ID = 0xC0 ,IDENTIFICATION_REVISION_ID = 0xC2 ,OSC_CALIBRATE_VAL = 0xF8 ,GLOBAL_CONFIG_VCSEL_WIDTH = 0x32 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_0 = 0xB0 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_1 = 0xB1 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_2 = 0xB2 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_3 = 0xB3 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_4 = 0xB4 ,GLOBAL_CONFIG_SPAD_ENABLES_REF_5 = 0xB5 ,GLOBAL_CONFIG_REF_EN_START_SELECT = 0xB6 ,DYNAMIC_SPAD_NUM_REQUESTED_REF_SPAD = 0x4E ,DYNAMIC_SPAD_REF_EN_START_OFFSET = 0x4F ,POWER_MANAGEMENT_GO1_POWER_FORCE = 0x80 ,VHV_CONFIG_PAD_SCL_SDA__EXTSUP_HV = 0x89 ,ALGO_PHASECAL_LIM = 0x30 ,ALGO_PHASECAL_CONFIG_TIMEOUT = 0x30 ,}; |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2632 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3607 浏览 6 评论
5987 浏览 21 评论
939浏览 4评论
1315浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
582浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1302浏览 3评论
1357浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 05:41 , Processed in 1.150095 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号