{"id":861,"date":"2020-02-16T13:32:24","date_gmt":"2020-02-16T04:32:24","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=861"},"modified":"2020-12-06T12:46:59","modified_gmt":"2020-12-06T03:46:59","slug":"vl53l0x%e3%81%ae%e3%81%a4%e3%82%82%e3%82%8a%e3%81%a7%e8%b2%b7%e3%81%a3%e3%81%9f%e6%b8%ac%e8%b7%9d%e3%82%bb%e3%83%b3%e3%82%b5%e3%83%bc%e3%81%aevl53lxx%e3%82%92arduino%e3%81%a7%e4%bd%bf%e3%81%a3","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2020\/02\/16\/861\/","title":{"rendered":"VL53L0X\u306e\u3064\u3082\u308a\u3067\u8cb7\u3063\u305f\u6e2c\u8ddd\u30bb\u30f3\u30b5\u30fc\u306eVL53LXX\u3092Arduino\u3067\u4f7f\u3063\u3066\u307f\u305f\u3044"},"content":{"rendered":"<h1>VL53LXX<\/h1>\n<p>\u4eca\u6c17\u3065\u3044\u305f\u3093\u3067\u3059\u304c\u3001VL53L0X\u3092\u8cb7\u3063\u305f\u3064\u3082\u308a\u304cVL53LXX\u3063\u3066\u5370\u5b57\u3055\u308c\u3066\u308b\u3084\u3064\u304c\u5c4a\u3044\u305f\u3002\u9055\u3046\u3058\u3083\u3093\u3002\u3069\u3046\u3057\u3088\u3046\u3001VL53L0X\u3068\u540c\u3058\u3088\u3046\u306a\u611f\u3058\u3067\u4f7f\u3048\u3093\u306e\u304b\u306a\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5301.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-862\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5301-156x300.png\" alt=\"\" width=\"156\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5301-156x300.png 156w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5301.png 492w\" sizes=\"auto, (max-width: 156px) 100vw, 156px\" \/><\/a><\/p>\n<p>\u8d85\u97f3\u6ce2\u4f7f\u3046\u3084\u3064\u306f\u3053\u306e\u524d\u4f7f\u3063\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u306a\u3093\u304b\u3067\u3063\u304b\u3044\u306e\u3067\u3001\u3061\u3063\u3061\u3083\u3044\u3084\u3064\u3092\u63a2\u3057\u305f\u3089\u898b\u3064\u3051\u305f\u3002\u30ec\u30fc\u30b6\u30fc\u3067\u3059\u3063\u3066\u3002\u3059\u3054\u3044\u3058\u3083\u3093\u3002\u305f\u3060\u63a5\u7d9a\u304cI2C\u306a\u306e\u3067\u3001\u8d85\u97f3\u6ce2\u306e\u3084\u3064\u3092\u5f15\u3063\u3053\u629c\u3044\u3066\u4ee3\u308f\u308a\u306b\u3076\u3063\u633f\u3059\u3063\u3066\u3044\u3046\u4f7f\u3044\u65b9\u306f\u3067\u304d\u306a\u3044\u3002\u3067\u304d\u306a\u3044\u306e\u306d\u3002\u3060\u304b\u3089\u52d5\u304b\u3057\u3066\u307f\u3066\u904a\u3093\u3060\u3060\u3051\u3067\u3059\u3002<\/p>\n<h2>\u304a\u8cb7\u3044\u7269<\/h2>\n<p><a href=\"https:\/\/www.ebay.com\/itm\/1pcs-GY-VL53L0XV2-L53L0X-TOF-Time-Of-Flight-Distance-Sensor-940nm-Laser-Ranging\/183687917709\">https:\/\/www.ebay.com\/itm\/1pcs-GY-VL53L0XV2-L53L0X-TOF-Time-Of-Flight-Distance-Sensor-940nm-Laser-Ranging\/183687917709<\/a><\/p>\n<p>\u3053\u308c\u8cb7\u3063\u305f\u3093\u3059\u3088\u3002\u3067\u3082\u5370\u5b57\u9055\u3046\u306e\u3002<\/p>\n<h3>VL53L0X\u306e\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8<\/h3>\n<p><a href=\"https:\/\/www.st.com\/resource\/en\/datasheet\/vl53l0x.pdf\">https:\/\/www.st.com\/resource\/en\/datasheet\/vl53l0x.pdf<\/a><\/p>\n<h2>\u63a5\u7d9a<\/h2>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5302.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-863\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5302-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5302-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5302-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5302.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Arduino &#x2194; VL53LXX<br \/>\n5V &#x2194; VIN<br \/>\nSDA &#x2194; SDA<br \/>\nSCL &#x2194; SCL<br \/>\nGND &#x2194; GND<\/p>\n<p>\u3053\u3093\u306a\u304b\u3002VL53LXX\u306bGPIO1\uff0cXSHUT\u3066\u3044\u3046\u30d4\u30f3\u304c\u3042\u308b\u3051\u3069\u4f7f\u308f\u306a\u3044\u3002\u3066\u3044\u3046\u304b\u4f55\u306b\u4f7f\u3046\u306e\u304b\u3088\u304f\u5206\u304b\u3089\u3093\u3002<\/p>\n<h2>\u30b9\u30b1\u30c3\u30c1\u4f8b\u3092\u4f7f\u3063\u3066\u307f\u308b<\/h2>\n<h3>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-865\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303-300x169.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303-768x433.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303-120x68.png 120w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303-160x90.png 160w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303-320x180.png 320w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5303.png 786w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u308c\u304b\u306a\u3041\u3068\u601d\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002VL53L1X\u3063\u3066\u3044\u3046\u306e\u3082\u3042\u308b\u3093\u3060\u306d\u3002GitHub\u306f<\/p>\n<p><a href=\"https:\/\/github.com\/pololu\/vl53l0x-arduino\">https:\/\/github.com\/pololu\/vl53l0x-arduino<\/a><\/p>\n<p>\u3053\u3061\u3089\u3002<\/p>\n<h3>\u30b9\u30b1\u30c3\u30c1\u4f8b\u3092\u958b\u3044\u3066\u66f8\u304d\u8fbc\u307f<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5304.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-866\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5304-236x300.png\" alt=\"\" width=\"236\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5304-236x300.png 236w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5304.png 553w\" sizes=\"auto, (max-width: 236px) 100vw, 236px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3002Continuous\u3068Single\u306e\u9055\u3044\u306f\u306a\u3093\u3058\u3083\u308d\u30fc\u3002\u30c7\u30fc\u30bf\u30b7\u30fc\u30c8\u304b\u3089\u5f15\u7528\u3059\u308b\u3068<\/p>\n<blockquote><p>1. Single ranging<br \/>\nRanging is performed only once after the API function is called. System returns to SW standby automatically.<br \/>\n2. Continuous ranging<br \/>\nRanging is performed in a continuous way after the API function is called. As soon as the measurement is finished, another one is started without delay. User has to stop the ranging to return to SW standby. The last measurement is completed before stopping.<\/p><\/blockquote>\n<p>\u305d\u3082\u3053\u306eVL53L0X\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306fAPI\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3057\u306a\u304d\u3083\u306a\u3089\u3093\u305d\u3046\u3067\u3002Single\u306e\u5834\u5408\u3001API\u3092\u30b3\u30fc\u30eb\u3059\u308b\u3068VL53L0X\u306f1\u56de\u3060\u3051\u6e2c\u8ddd\u3059\u308b\u3002Continuoous\u306e\u5834\u5408\u3001API\u3092\u30b3\u30fc\u30eb\u3057\u305f\u3089stop\u3057\u306a\u3044\u9650\u308a\u6e2c\u8ddd\u3057\u7d9a\u3051\u308b\u3002\u3066\u3044\u3046\u306e\u306f\u5206\u304b\u3063\u305f\u3093\u3060\u3051\u3069\u3001\u305d\u3046\u3059\u308b\u3068\u3069\u3046\u306a\u308b\u306e\u304b\u304c\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3002\u3069\u3063\u3061\u304b\u304c\u7cbe\u5ea6\u9ad8\u304f\u306a\u308b\u3068\u304b\u5fdc\u7b54\u304c\u65e9\u3044\u3068\u304b\u3042\u308b\u3093\u3060\u308d\u3046\u304b\u3002\u307e\u3041\u3069\u3063\u3061\u3067\u3082\u3044\u3044\u306e\u3067\u958b\u3044\u3066\u3001\u66f8\u304d\u8fbc\u3093\u3067\u307f\u3066\u3001\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u3092\u958b\u304f\u3068\u3001\u51fa\u305f!\u3048\u3089\u3044\u30b9\u30d4\u30fc\u30c9\u3067\u8a08\u6e2c\u7d50\u679c\u304c\u6d41\u308c\u3066\u3044\u304f\u3001\u306e\u3067\u30011\u79d2\u30c7\u30a3\u30ec\u30a4\u3092\u5165\u308c\u305f\u3002\u304a\u30fc\u52d5\u304f\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-867\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305-300x170.png\" alt=\"\" width=\"300\" height=\"170\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305-300x170.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305-120x68.png 120w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305-160x90.png 160w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305-320x180.png 320w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5305.png 648w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u30b9\u30de\u30db\u30ab\u30e1\u30e9\u3067\u64ae\u308b\u3068\u30ec\u30fc\u30b6\u30fc\u304c\u51fa\u3066\u308b\u306e\u304c\u5206\u304b\u308b\u306d\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5306.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-868\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5306-227x300.png\" alt=\"\" width=\"227\" height=\"300\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5306-227x300.png 227w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5306.png 758w\" sizes=\"auto, (max-width: 227px) 100vw, 227px\" \/><\/a><\/p>\n<h2>\u5b9f\u6e2c\u5024\u3068\u6bd4\u8f03\u3057\u3066\u307f\u308b<\/h2>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306ereadme\u3092\u898b\u308b\u3068mm\u3067\u51fa\u529b\u3055\u308c\u308b\u3089\u3057\u3044\u3093\u3060\u3051\u3069\u3001\u3069\u3046\u3082\u30ba\u30ec\u3066\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u3066\u306a\u3089\u306a\u3044\u306e\u3067\u3001\u5b9a\u898f\u3092\u4f7f\u3063\u3066\u73fe\u5b9f\u306e\u5024\u3068\u6bd4\u8f03\u3057\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5307.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-871\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5307-300x225.png\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5307-300x225.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5307-768x576.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2020\/02\/vl5307.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u3002\u3053\u306e\u7cbe\u5ea6\u304c\u9ad8\u304f\u306d\u30fc\u3058\u3083\u3093\u3068\u8a00\u3044\u305f\u304f\u306a\u308b\u3067\u3057\u3087\u3046\u304c\u5c02\u9580\u7684\u306a\u88c5\u7f6e\u306a\u3093\u3066\u6301\u3063\u3066\u306a\u3044\u306e\u3067\u3053\u308c\u3067\u6e2c\u308b\u3002<\/p>\n<h3>\u7d50\u679c<\/h3>\n<table width=\"191\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"58\"><\/td>\n<td style=\"text-align: center;\" width=\"39\">5cm<\/td>\n<td style=\"text-align: center;\" width=\"47\">10cm<\/td>\n<td style=\"text-align: center;\" width=\"47\">15cm<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">1\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">50<\/td>\n<td style=\"text-align: center;\">100<\/td>\n<td style=\"text-align: center;\">153<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">2\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">47<\/td>\n<td style=\"text-align: center;\">100<\/td>\n<td style=\"text-align: center;\">160<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">3\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">50<\/td>\n<td style=\"text-align: center;\">99<\/td>\n<td style=\"text-align: center;\">152<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">4\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">45<\/td>\n<td style=\"text-align: center;\">101<\/td>\n<td style=\"text-align: center;\">152<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">5\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">49<\/td>\n<td style=\"text-align: center;\">98<\/td>\n<td style=\"text-align: center;\">150<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">6\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">48<\/td>\n<td style=\"text-align: center;\">97<\/td>\n<td style=\"text-align: center;\">152<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">7\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">49<\/td>\n<td style=\"text-align: center;\">96<\/td>\n<td style=\"text-align: center;\">152<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">8\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">48<\/td>\n<td style=\"text-align: center;\">101<\/td>\n<td style=\"text-align: center;\">152<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">9\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">48<\/td>\n<td style=\"text-align: center;\">97<\/td>\n<td style=\"text-align: center;\">150<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">10\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">47<\/td>\n<td style=\"text-align: center;\">97<\/td>\n<td style=\"text-align: center;\">151<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3042\u308c?\u610f\u5916\u3068\u3044\u30fc\u3058\u3083\u3093!\u3082\u3063\u3068\u30ac\u30c3\u30c4\u30ea\u5909\u3067\u3001\u6821\u6b63\u5165\u308c\u308b\u611f\u3058\u306b\u306a\u308b\u304b\u306a\u30fc\u3068\u304b\u601d\u3063\u305f\u3051\u3069\u5927\u4e08\u592b\u306a\u6c17\u304c\u3059\u308b\u3002<\/p>\n<h2>\u30d0\u30e9\u30c4\u30ad\u3092\u306a\u3093\u3068\u304b\u3057\u305f\u3044<\/h2>\n<p>\u3064\u3063\u3066\u3082\u3001\u6570\u5024\u304c\u30d0\u30e9\u3064\u304f\u3002\u307e\u3041\u305d\u3093\u306a\u7cbe\u5ea6\u6c42\u3081\u3066\u308b\u308f\u3051\u3067\u3082\u306a\u3044\u3057\u3001\u53d6\u5f97\u983b\u5ea6\u304c\u9ad8\u3044\u308f\u3051\u3067\u3082\u306a\u3044\u3093\u3060\u3051\u3069\u3001\u306a\u3093\u304b\u6c17\u6301\u3061\u60aa\u3044\u306e\u3067\u3002\u3053\u3046\u3044\u3046\u6642\u306f\u5024\u3092\u6ed1\u3089\u304b\u306b\u3059\u308b\u3088\u3046\u306a\u30d5\u30a3\u30eb\u30bf\u3092\u304b\u3051\u308c\u3070\u3088\u304b\u3063\u305f\u3093\u3060\u3063\u305f\u3002\u305d\u3046\u3044\u3084\u65b9\u4f4d\u8a08\u7b97\u3059\u308b\u6642\u3084\u3063\u305f\u306a\u3002\u79fb\u52d5\u5e73\u5747\u3068\u3001\u30ed\u30fc\u30d1\u30b9\u3068\u3001\u4e2d\u592e\u5024\u3092\u8a66\u3057\u3066\u307f\u308b\u3002<\/p>\n<h3>\u79fb\u52d5\u5e73\u5747<\/h3>\n<pre><code class=\"cpp\">#include &lt;Wire.h&gt;\r\n#include &lt;VL53L0X.h&gt;\r\n\r\n#define SAMPLE_SIZE 10 \/\/20, 50, 100\r\n\r\nint count = 0;\r\nint discardcount = 0;\r\nuint16_t temp[SAMPLE_SIZE];\r\nuint16_t sum = 0;\r\nuint16_t average = 0;\r\n\r\nVL53L0X sensor;\r\n\r\nvoid setup()\r\n{\r\n  Serial.begin(9600);\r\n  Wire.begin();\r\n\r\n  sensor.setTimeout(500);\r\n  if (!sensor.init())\r\n  {\r\n    Serial.println(\"Failed to detect and initialize sensor!\");\r\n    while (1) {}\r\n  }\r\n\r\n  sensor.startContinuous();\r\n}\r\n\r\nvoid loop() {\r\n\r\n  temp[count] = sensor.readRangeContinuousMillimeters();\r\n  if (sensor.timeoutOccurred()) {Serial.print(\" TIMEOUT\");}\r\n  count++;\r\n  \r\n  if (count == SAMPLE_SIZE) {\r\n    count = 0;\r\n  }\r\n\r\n  if (discardcount &lt; SAMPLE_SIZE) {\r\n    discardcount++;\r\n    return;\r\n  }\r\n\r\n  for (int i = 0; i &lt; SAMPLE_SIZE; i++) {\r\n    sum += temp[i];\r\n  }\r\n\r\n  average = sum \/ SAMPLE_SIZE;\r\n  sum = 0;\r\n\r\n  Serial.print(average);\r\n  Serial.println();\r\n}<\/code><\/pre>\n<p>Continuous\u306e\u30b9\u30b1\u30c3\u30c1\u4f8b\u3092\u3053\u3093\u306a\u611f\u3058\u3067\u66f8\u304d\u63db\u3048\u305f\u3002\u76f8\u5909\u308f\u3089\u305a\u30b9\u30b3\u30fc\u30d7\u304c\u5206\u304b\u3089\u3093\u3002\u5b9f\u6e2c\u5024\u309210cm\u3067\u3001\u6a19\u672c\u6570\u309210, 20, 50, 100\u306b\u3057\u3066\u8a66\u3057\u3066\u307f\u308b\u3068<\/p>\n<table width=\"640\">\n<tbody>\n<tr>\n<td width=\"58\"><\/td>\n<td width=\"141\">10<\/td>\n<td width=\"150\">20<\/td>\n<td width=\"141\">50<\/td>\n<td width=\"150\">100<\/td>\n<\/tr>\n<tr>\n<td>1\u56de\u76ee<\/td>\n<td>22:08:20.964 -&gt; 96<\/td>\n<td>22:08:55.446 -&gt; 101<\/td>\n<td>22:09:28.327 -&gt; 99<\/td>\n<td>22:10:06.548 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td>2\u56de\u76ee<\/td>\n<td>22:08:20.998 -&gt; 96<\/td>\n<td>22:08:55.481 -&gt; 101<\/td>\n<td>22:09:28.362 -&gt; 99<\/td>\n<td>22:10:06.595 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td>3\u56de\u76ee<\/td>\n<td>22:08:21.032 -&gt; 97<\/td>\n<td>22:08:55.481 -&gt; 101<\/td>\n<td>22:09:28.396 -&gt; 99<\/td>\n<td>22:10:06.595 -&gt; 100<\/td>\n<\/tr>\n<tr>\n<td>4\u56de\u76ee<\/td>\n<td>22:08:21.066 -&gt; 97<\/td>\n<td>22:08:55.514 -&gt; 101<\/td>\n<td>22:09:28.431 -&gt; 99<\/td>\n<td>22:10:06.642 -&gt; 100<\/td>\n<\/tr>\n<tr>\n<td>5\u56de\u76ee<\/td>\n<td>22:08:21.100 -&gt; 97<\/td>\n<td>22:08:55.548 -&gt; 101<\/td>\n<td>22:09:28.465 -&gt; 99<\/td>\n<td>22:10:06.689 -&gt; 100<\/td>\n<\/tr>\n<tr>\n<td>6\u56de\u76ee<\/td>\n<td>22:08:21.134 -&gt; 97<\/td>\n<td>22:08:55.581 -&gt; 101<\/td>\n<td>22:09:28.499 -&gt; 99<\/td>\n<td>22:10:06.689 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td>7\u56de\u76ee<\/td>\n<td>22:08:21.168 -&gt; 97<\/td>\n<td>22:08:55.615 -&gt; 102<\/td>\n<td>22:09:28.533 -&gt; 99<\/td>\n<td>22:10:06.736 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td>8\u56de\u76ee<\/td>\n<td>22:08:21.201 -&gt; 97<\/td>\n<td>22:08:55.649 -&gt; 102<\/td>\n<td>22:09:28.568 -&gt; 99<\/td>\n<td>22:10:06.782 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td>9\u56de\u76ee<\/td>\n<td>22:08:21.235 -&gt; 97<\/td>\n<td>22:08:55.682 -&gt; 101<\/td>\n<td>22:09:28.604 -&gt; 99<\/td>\n<td>22:10:06.782 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td>10\u56de\u76ee<\/td>\n<td>22:08:21.270 -&gt; 97<\/td>\n<td>22:08:55.716 -&gt; 101<\/td>\n<td>22:09:28.638 -&gt; 99<\/td>\n<td>22:10:06.829 -&gt; 99<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3064\u3044\u3066\u308b\u3002\u30d6\u30ec\u304c\u305a\u3044\u3076\u3093\u5c0f\u3055\u304f\u306a\u3063\u305f\u3002<\/p>\n<h3>\u30ed\u30fc\u30d1\u30b9(\u6307\u6570\u52a0\u91cd\u5e73\u5747)<\/h3>\n<pre><code class=\"cpp\">#include &lt;Wire.h&gt;\r\n#include &lt;VL53L0X.h&gt;\r\n\r\nuint16_t newdata = 0;\r\nuint16_t lastdata = 0;\r\nuint16_t filtereddata = 0;\r\n\r\nVL53L0X sensor;\r\n\r\nvoid setup()\r\n{\r\n  Serial.begin(9600);\r\n  Wire.begin();\r\n\r\n  sensor.setTimeout(500);\r\n  if (!sensor.init())\r\n  {\r\n    Serial.println(\"Failed to detect and initialize sensor!\");\r\n    while (1) {}\r\n  }\r\n\r\n  sensor.startContinuous();\r\n}\r\n\r\nvoid loop() {\r\n\r\n  float weight = 0.8;\r\n\r\n  newdata = sensor.readRangeContinuousMillimeters();\r\n  if (sensor.timeoutOccurred()) {Serial.print(\" TIMEOUT\");}\r\n\r\n  if (lastdata == 0) {\r\n    lastdata = newdata;\r\n    return; \r\n  }\r\n   \r\n  filtereddata = (1.0 - weight) * lastdata + (newdata * weight);\r\n  lastdata = newdata;\r\n\r\n  Serial.print(filtereddata);\r\n  Serial.println();\r\n}<\/code><\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u66f8\u304d\u63db\u3048\u305f\u3002\u91cd\u307f\u4ed8\u3051\u30920.8, 0.85, 0.9\u3068\u5909\u3048\u3066\u307f\u308b\u3002\u7d50\u679c\u306f<\/p>\n<table width=\"499\">\n<tbody>\n<tr>\n<td style=\"text-align: center;\" width=\"58\"><\/td>\n<td style=\"text-align: center;\" width=\"141\">0.8<\/td>\n<td style=\"text-align: center;\" width=\"150\">0.85<\/td>\n<td style=\"text-align: center;\" width=\"150\">0.9<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">1\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.653 -&gt; 94<\/td>\n<td style=\"text-align: center;\">23:54:09.415 -&gt; 99<\/td>\n<td style=\"text-align: center;\">23:54:39.888 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">2\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.687 -&gt; 94<\/td>\n<td style=\"text-align: center;\">23:54:09.449 -&gt; 99<\/td>\n<td style=\"text-align: center;\">23:54:39.923 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">3\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.722 -&gt; 96<\/td>\n<td style=\"text-align: center;\">23:54:09.483 -&gt; 101<\/td>\n<td style=\"text-align: center;\">23:54:39.923 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">4\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.722 -&gt; 95<\/td>\n<td style=\"text-align: center;\">23:54:09.518 -&gt; 99<\/td>\n<td style=\"text-align: center;\">23:54:39.957 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">5\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.756 -&gt; 94<\/td>\n<td style=\"text-align: center;\">23:54:09.551 -&gt; 100<\/td>\n<td style=\"text-align: center;\">23:54:39.991 -&gt; 98<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">6\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.791 -&gt; 95<\/td>\n<td style=\"text-align: center;\">23:54:09.584 -&gt; 101<\/td>\n<td style=\"text-align: center;\">23:54:40.024 -&gt; 102<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">7\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.824 -&gt; 93<\/td>\n<td style=\"text-align: center;\">23:54:09.618 -&gt; 101<\/td>\n<td style=\"text-align: center;\">23:54:40.057 -&gt; 99<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">8\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.859 -&gt; 97<\/td>\n<td style=\"text-align: center;\">23:54:09.652 -&gt; 97<\/td>\n<td style=\"text-align: center;\">23:54:40.091 -&gt; 100<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">9\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.892 -&gt; 95<\/td>\n<td style=\"text-align: center;\">23:54:09.652 -&gt; 100<\/td>\n<td style=\"text-align: center;\">23:54:40.125 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center;\">10\u56de\u76ee<\/td>\n<td style=\"text-align: center;\">23:50:33.926 -&gt; 97<\/td>\n<td style=\"text-align: center;\">23:54:09.685 -&gt; 101<\/td>\n<td style=\"text-align: center;\">23:54:40.159 -&gt; 101<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3051\u3063\u3053\u30fc\u30d0\u30e9\u3064\u304f\u3002\u3042\u308b\u7a0b\u5ea6\u306f\u6ed1\u3089\u304b\u306b\u306a\u3063\u3066\u308b\u307f\u305f\u3044\u3060\u3051\u3069\u306d\u3002<\/p>\n<h3>\u4e2d\u592e\u5024<\/h3>\n<p>\u3064\u30fc\u304b\u4e2d\u592e\u5024\u3063\u3066\u3069\u3046\u6c42\u3081\u308b\u3093\u3060\u3002\u3061\u3087\u3063\u3068\u8abf\u3079\u3066\u307f\u305f\u3089\u30bd\u30fc\u30c8\u3057\u3066\u771f\u3093\u4e2d\u306e\u5024\u3092\u5f15\u3063\u5f35\u308c\u3070\u3044\u3044\u307f\u305f\u3044\u3002\u6a19\u672c\u6570\u304c\u5076\u6570\u306e\u5834\u5408\u306f\u771f\u3093\u4e2d2\u3064\u306e\u6570\u5b57\u306e\u5e73\u5747\u3092\u53d6\u308b\u3089\u3057\u3044\u3002\u3046\u30fc\u3080\u3002\u5076\u6570\u306e\u5834\u5408\u306f\u3081\u3093\u3069\u304f\u3055\u305d\u3046\u306a\u306e\u3067\u5947\u6570\u306e\u5834\u5408\u3060\u3051\u8003\u3048\u3088\u3046\u3002\u305d\u3046\u3059\u308c\u3070\u8981\u7d20\u6570\u306f\u6700\u521d\u306b\u6c7a\u3081\u3066\u308b\u3093\u3060\u3057\u7c21\u5358\u306b\u5f15\u3063\u5f35\u3063\u3066\u3053\u308c\u308b\u306f\u305a\u3002\u554f\u984c\u306f\u30bd\u30fc\u30c8\u304b\u2026\u3002\u521d\u3081\u3066\u3084\u308b\u306a\u3041\u3001\u3068\u308a\u3042\u3048\u305a\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<h4>\u914d\u5217\u306e\u30bd\u30fc\u30c8<\/h4>\n<h5>\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8<\/h5>\n<pre><code class=\"cpp\">uint16_t BubbleSort (uint16_t samples[]) {\r\n  uint16_t tmp = 0;\r\n\r\n  for (int j = 0; j &lt; SAMPLE_SIZE - 1; j++) { for (int i = SAMPLE_SIZE - 1; i &gt; j; i--) {\r\n      if (samples[i - 1] &gt; samples[i]) {\r\n        tmp = samples[i - 1];\r\n        samples[i - 1] = samples[i];\r\n        samples[i] = tmp;\r\n      }\r\n    }\r\n  }\r\n  debug(samples);\r\n  return samples[(SAMPLE_SIZE - 1) \/ 2];\r\n}<\/code><\/pre>\n<p>\u3053\u3093\u306a\u3001\u30d0\u30d6\u30eb\u30bd\u30fc\u30c8\u306f\u9045\u3044\u3063\u3066\u8a71\u3060\u3063\u305f\u3051\u3069\u3074\u3087\u3093\u3053\u3074\u3087\u3093\u3053\u6570\u5b57\u306f\u51fa\u3066\u304f\u308b\u3002\u6a19\u672c\u6570\u304c11, 51, 101\u306e\u7d50\u679c<\/p>\n<table width=\"499\">\n<tbody>\n<tr>\n<td width=\"58\"><\/td>\n<td width=\"141\">11<\/td>\n<td width=\"150\">51<\/td>\n<td width=\"150\">101<\/td>\n<\/tr>\n<tr>\n<td>1\u56de\u76ee<\/td>\n<td>13:08:03.561 -&gt; 101<\/td>\n<td>13:08:56.342 -&gt; 104<\/td>\n<td>13:09:53.361 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>2\u56de\u76ee<\/td>\n<td>13:08:03.595 -&gt; 101<\/td>\n<td>13:08:56.377 -&gt; 104<\/td>\n<td>13:09:53.396 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>3\u56de\u76ee<\/td>\n<td>13:08:03.628 -&gt; 101<\/td>\n<td>13:08:56.410 -&gt; 104<\/td>\n<td>13:09:53.431 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>4\u56de\u76ee<\/td>\n<td>13:08:03.662 -&gt; 101<\/td>\n<td>13:08:56.444 -&gt; 104<\/td>\n<td>13:09:53.466 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>5\u56de\u76ee<\/td>\n<td>13:08:03.695 -&gt; 101<\/td>\n<td>13:08:56.478 -&gt; 104<\/td>\n<td>13:09:53.500 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>6\u56de\u76ee<\/td>\n<td>13:08:03.729 -&gt; 101<\/td>\n<td>13:08:56.512 -&gt; 104<\/td>\n<td>13:09:53.534 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>7\u56de\u76ee<\/td>\n<td>13:08:03.762 -&gt; 100<\/td>\n<td>13:08:56.546 -&gt; 104<\/td>\n<td>13:09:53.568 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>8\u56de\u76ee<\/td>\n<td>13:08:03.797 -&gt; 100<\/td>\n<td>13:08:56.581 -&gt; 103<\/td>\n<td>13:09:53.602 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>9\u56de\u76ee<\/td>\n<td>13:08:03.830 -&gt; 101<\/td>\n<td>13:08:56.581 -&gt; 103<\/td>\n<td>13:09:53.636 -&gt; 101<\/td>\n<\/tr>\n<tr>\n<td>10\u56de\u76ee<\/td>\n<td>13:08:03.864 -&gt; 101<\/td>\n<td>13:08:56.615 -&gt; 103<\/td>\n<td>13:09:53.669 -&gt; 101<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30d0\u30e9\u30c4\u30ad\u3082\u5c11\u306a\u3081\u3002\u2026\u30af\u30a4\u30c3\u30af\u30bd\u30fc\u30c8\u3082\u8a66\u3057\u3066\u307f\u3088\u3046\u3068\u601d\u3063\u305f\u3051\u3069\u5225\u306b\u3044\u30fc\u3084\u3002\u6c17\u304c\u5411\u3044\u305f\u3089\u3084\u308d\u3046\u3002\u3042\u3068\u30bd\u30fc\u30c8\u6e08\u307f\u306e\u914d\u5217\u304c\u3053\u308c\u3067\u3067\u304d\u305f\u304b\u3089\u3001\u65b0\u3057\u304f\u6e2c\u8ddd\u3057\u305f\u5024\u306f\u9078\u629e\u30bd\u30fc\u30c8\u306b\u3059\u308c\u3070\u51e6\u7406\u304c\u65e9\u305d\u3046\u3002\u3053\u308c\u3082\u6c17\u304c\u5411\u3044\u305f\u3089\u306b\u3057\u3088\u3046\u3002<\/p>\n<h3>\u6ce8\u610f\u70b9<\/h3>\n<p>\u4eca\u306f\u9759\u6b62\u72b6\u614b\u3067\u6e2c\u8ddd\u3057\u3066\u308b\u304b\u3089\u3042\u3093\u307e\u308a\u611f\u3058\u306a\u3044\u3051\u3069\u3001\u3069\u306e\u30d5\u30a3\u30eb\u30bf\u3082\u6a19\u672c\u6570\u304c\u591a\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u5fdc\u7b54\u6027\u304c\u60aa\u304f\u306a\u308b\u3002\u6e2c\u8ddd\u3057\u305f\u5024\u304c\u5909\u5316\u3059\u308b\u3068\u3001\u5373\u6642\u53cd\u6620\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u7de9\u3084\u304b\u306a\u5909\u5316\u306b\u306a\u3063\u3066\u305f\u3002\u7cbe\u5ea6\u3068\u5fdc\u7b54\u6027\u306f\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u306a\u306e\u304b\u306a\u30fc\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u9577\u3044\u8ddd\u96e2\u304c\u6e2c\u308c\u306a\u3044\u6642<\/h2>\n<p>\u30b9\u30b1\u30c3\u30c1\u4f8b\u306eSingle\u306b\u3001\u8a2d\u5b9a\u3059\u308b\u884c\u304c\u3042\u308b\u3002<\/p>\n<pre><code class=\"cpp\"><\/code>\/\/#define LONG_RANGE<\/pre>\n<p>\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u308b\u306e\u3092\u5fa9\u5e30\u3055\u305b\u308b\u3068\u9577\u3044\u8ddd\u96e2\u3082\u6e2c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u8a66\u3057\u305f\u3089\u3067\u304d\u305f\u3002<\/p>\n<h2>\u7cbe\u5ea6\u3068\u901f\u5ea6\u3092\u5909\u66f4\u3057\u305f\u3044\u6642<\/h2>\n<p>\u3053\u308c\u3082\u30b9\u30b1\u30c3\u30c1\u4f8b\u306eSingle\u306b\u3001\u8a2d\u5b9a\u3059\u308b\u884c\u304c\u3042\u308b\u3002<\/p>\n<pre><code class=\"cpp\">\/\/ Uncomment ONE of these two lines to get\r\n\/\/ - higher speed at the cost of lower accuracy OR\r\n\/\/ - higher accuracy at the cost of lower speed\r\n\r\n\/\/#define HIGH_SPEED\r\n\/\/#define HIGH_ACCURACY<\/code><\/pre>\n<p>\u3069\u3063\u3061\u304b\u3060\u3051\u306a\u306e\u3067\u3001\u3069\u3063\u3061\u304b\u30b3\u30e1\u30f3\u30c8\u304b\u3089\u5fa9\u5e30\u3059\u308b\u3002\u3053\u3063\u3061\u306f\u8a66\u3057\u3066\u306a\u3044\u3002<\/p>\n<h2>\u53c2\u8003<\/h2>\n<p><a href=\"https:\/\/www.denshi.club\/cookbook\/sensor\/distance\/2vl53l0x.html\">https:\/\/www.denshi.club\/cookbook\/sensor\/distance\/2vl53l0x.html<\/a><\/p>\n<p><a href=\"http:\/\/msms1003.blogspot.com\/2017\/12\/vl53l0x.html\">http:\/\/msms1003.blogspot.com\/2017\/12\/vl53l0x.html<\/a><\/p>\n<p><a href=\"http:\/\/yuqlid.hatenablog.com\/entry\/2016\/09\/11\/002804\">http:\/\/yuqlid.hatenablog.com\/entry\/2016\/09\/11\/002804<\/a><\/p>\n<p><a href=\"https:\/\/www.codereading.com\/algo_and_ds\/algo\/bubble_sort.html\">https:\/\/www.codereading.com\/algo_and_ds\/algo\/bubble_sort.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VL53LXX \u4eca\u6c17\u3065\u3044\u305f\u3093\u3067\u3059\u304c\u3001VL53L0X\u3092\u8cb7\u3063\u305f\u3064\u3082\u308a\u304cVL53LXX\u3063\u3066\u5370\u5b57\u3055\u308c\u3066\u308b\u3084\u3064\u304c\u5c4a\u3044\u305f\u3002\u9055\u3046\u3058\u3083\u3093\u3002\u3069\u3046\u3057\u3088\u3046\u3001VL53L0X\u3068\u540c\u3058\u3088\u3046\u306a\u611f\u3058\u3067\u4f7f\u3048\u3093\u306e\u304b\u306a\u3002 \u8d85\u97f3\u6ce2\u4f7f\u3046\u3084\u3064\u306f\u3053\u306e\u524d\u4f7f\u3063\u3066\u307f\u305f\u3093\u3060\u3051 &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2020\/02\/16\/861\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":862,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[69,82,83,54],"class_list":["post-861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-arduino","tag-vl53l0x","tag-vl53lxx","tag-54"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=861"}],"version-history":[{"count":9,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/861\/revisions"}],"predecessor-version":[{"id":877,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/861\/revisions\/877"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/862"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}