{"product_id":"m5stack-tof4m-unit-vl53l1x-4m-u172","title":"M5Stack ToF4M Unit – VL53L1X 4m Distance Sensor | U172","description":"\u003cp\u003e\u003cvideo controls muted playsinline style=\"width:100%;height:auto;border-radius:8px;\"\u003e\u003csource src=\"https:\/\/m5stack.oss-cn-shenzhen.aliyuncs.com\/resource\/docs\/products\/unit\/Unit-ToF4M\/U172%20ToF4M%20Unit%20%E8%A7%86%E9%A2%91.mp4\" type=\"video\/mp4\"\u003e\u003c\/video\u003e\u003c\/p\u003e\u003cp\u003eThe M5Stack ToF4M Unit measures object distance for robot obstacle detection, level monitoring, positioning, parking aids, and interactive installations. Its VL53L1X Time-of-Flight sensor reports millimeter-scale data from approximately 4 cm to 4 m through I2C address 0x29. A configurable field of view helps focus on a smaller target area. Actual range and stability depend on timing budget, target reflectivity, ambient infrared light, optical cleanliness, geometry, and host-side filtering.\u003c\/p\u003e\u003ch2\u003eToF4M Unit: Core Functions and Control\u003c\/h2\u003e\u003ch3\u003eMeasure Targets from Approximately 4cm to 4m\u003c\/h3\u003e\u003cp\u003eThe VL53L1X calculates distance from infrared light travel time and returns digital range data for stationary or moving targets.\u003c\/p\u003e\u003ch3\u003eConfigure the Sensor Field of View\u003c\/h3\u003e\u003cp\u003eA reduced region of interest can help reject enclosure edges, adjacent objects, or surrounding structures.\u003c\/p\u003e\u003ch3\u003eBalance Timing Budget and Response Speed\u003c\/h3\u003e\u003cp\u003eLonger timing budgets can improve long-range performance, while shorter budgets provide faster updates.\u003c\/p\u003e\u003ch2\u003eToF4M Unit Applications\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003eMobile robot obstacle ranging\u003c\/li\u003e\n\u003cli\u003eBin and tank level prototypes\u003c\/li\u003e\n\u003cli\u003eDoorway and object-presence detection\u003c\/li\u003e\n\u003cli\u003eParking and alignment assistance\u003c\/li\u003e\n\u003cli\u003eInteractive distance-controlled installations\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eHow to Integrate the ToF4M Unit\u003c\/h2\u003e\u003col\u003e\n\u003cli\u003eMount the optical window perpendicular to the target and keep it clean and unobstructed.\u003c\/li\u003e\n\u003cli\u003eConnect the unit to an I2C port and confirm that address 0x29 is available.\u003c\/li\u003e\n\u003cli\u003eSelect distance mode, timing budget, measurement interval, and field of view.\u003c\/li\u003e\n\u003cli\u003eTest representative dark, light, reflective, narrow, and angled targets at known distances.\u003c\/li\u003e\n\u003cli\u003eReject invalid status codes and outliers before using distance data for control.\u003c\/li\u003e\n\u003c\/ol\u003e\u003ch2\u003eToF4M Unit Deployment Notes\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003eThe 4 m range is a maximum reference and is not guaranteed for every target.\u003c\/li\u003e\n\u003cli\u003eDark, transparent, reflective, narrow, or angled targets can reduce reliability.\u003c\/li\u003e\n\u003cli\u003eStrong ambient infrared light and unsuitable cover glass can degrade performance.\u003c\/li\u003e\n\u003cli\u003eMultiple optical sensors can interfere when aimed at the same area.\u003c\/li\u003e\n\u003cli\u003eDo not use this module as the only collision-protection device for hazardous motion.\u003c\/li\u003e\n\u003c\/ul\u003e\u003ch2\u003eToF4M Unit Development Resources\u003c\/h2\u003e\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/docs.m5stack.com\/en\/products\/sku\/U172\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"\u003eM5Stack ToF4M Unit Official Documentation\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/uiflow2.m5stack.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"\u003eUiFlow2 Development Environment\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/docs.arduino.cc\/software\/ide\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"\u003eArduino IDE\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"LogicBoundless","offers":[{"title":"Default Title","offer_id":49240371495127,"sku":"LB-M5-U172","price":13.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0801\/8952\/2135\/files\/1_a93236f3-1832-4041-815e-822aa6f48e75.webp?v=1783243282","url":"https:\/\/logicboundless.com\/products\/m5stack-tof4m-unit-vl53l1x-4m-u172","provider":"LogicBoundless","version":"1.0","type":"link"}