久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開始

搜索
查看: 7088|回復(fù): 2
打印 上一主題 下一主題
收起左側(cè)

vl5310x 激光傳感器

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
ID:183944 發(fā)表于 2017-3-27 21:07 | 只看該作者 回帖獎(jiǎng)勵(lì) |倒序?yàn)g覽 |閱讀模式
程序/* This example shows how to get single-shot range
measurements from the VL53L0X. The sensor can optionally be
configured with different ranging profiles, as described in
the VL53L0X API user manual, to get better performance for
a certain application. This code is based on the four
"SingleRanging" examples in the VL53L0X API.

The range readings are in units of mm. */

#include <Wire.h>
#include <VL53L0X.h>

VL53L0X sensor;


// Uncomment this line to use long range mode. This
// increases the sensitivity of the sensor and extends its
// potential range, but increases the likelihood of getting
// an inaccurate reading because of reflections from objects
// other than the intended target. It works best in dark
// conditions.

//#define LONG_RANGE


// Uncomment ONE of these two lines to get
// - higher speed at the cost of lower accuracy OR
// - higher accuracy at the cost of lower speed

//#define HIGH_SPEED
//#define HIGH_ACCURACY


void setup()
{
  Serial.begin(9600);
  Wire.begin();

  sensor.init();
  sensor.setTimeout(500);

#if defined LONG_RANGE
  // lower the return signal rate limit (default is 0.25 MCPS)
  sensor.setSignalRateLimit(0.1);
  // increase laser pulse periods (defaults are 14 and 10 PCLKs)
  sensor.setVcselPulsePeriod(VL53L0X::VcselPeriodPreRange, 18);
  sensor.setVcselPulsePeriod(VL53L0X::VcselPeriodFinalRange, 14);
#endif

#if defined HIGH_SPEED
  // reduce timing budget to 20 ms (default is about 33 ms)
  sensor.setMeasurementTimingBudget(20000);
#elif defined HIGH_ACCURACY
  // increase timing budget to 200 ms
  sensor.setMeasurementTimingBudget(200000);
#endif
}

void loop()
{
  Serial.print(sensor.readRangeSingleMillimeters());
  if (sensor.timeoutOccurred()) { Serial.print(" TIMEOUT"); }

  Serial.println();
}

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩

相關(guān)帖子

回復(fù)

使用道具 舉報(bào)

沙發(fā)
ID:216250 發(fā)表于 2017-7-1 00:28 | 只看該作者
本帖最后由 ChristinaAPI 于 2017-7-1 03:19 編輯

Can we see what your .h files you're using look like?

#include <wire.h>
#include <VL53L0X.h>
Edit:
Nevermind I think I found the sample you mentioned here: https://github.com/pololu/vl53l0x-arduino
Thank you so much for this post it really helped out alot !!

評(píng)分

參與人數(shù) 1黑幣 +100 收起 理由
admin + 100 共享資料的黑幣獎(jiǎng)勵(lì)!

查看全部評(píng)分

回復(fù)

使用道具 舉報(bào)

板凳
ID:1 發(fā)表于 2017-7-1 03:27 | 只看該作者
ChristinaAPI 發(fā)表于 2017-7-1 00:28
Can we see what your .h files you're using look like?

#include  

And thanks to American friends, too
也很感謝美國的的朋友
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 欧美视频在线看 | 久久久久久国产精品 | 第一色在线 | 国产精品久久网 | 天天综合天天 | 一区二区三区电影网 | 亚洲国产一区二区三区在线观看 | 中文字幕久久精品 | 国产精品久久久久久238 | 一区二区三区高清在线观看 | 中文字幕欧美在线观看 | 国产精品成人久久久久 | 成年网站在线观看 | 国产蜜臀 | 亚洲国产精品成人综合久久久 | 成人欧美一区二区三区黑人孕妇 | 亚洲 欧美 日韩 在线 | 久久久久久亚洲国产精品 | 欧美精品日韩精品 | 午夜影院| 久久福利网站 | 亚洲激情在线观看 | 国产精品国产 | 欧美久久一区二区 | 先锋资源在线 | 国产精品呻吟久久av凹凸 | 91视频一区二区三区 | 日韩精品视频在线 | 国产精品久久久久久久久久 | 免费在线观看91 | 亚洲精品福利在线 | 精品视频一区二区三区在线观看 | 亚洲一区在线播放 | 一区二区免费视频 | 91精品久久久久久久久久 | 91毛片在线看 | 一区观看 | 日韩成人高清 | 成人免费大片黄在线播放 | 视频一区在线观看 | 中文字幕一区二区三区在线观看 |