Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Lấy hộp kết hợp cảm biến
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trang này cung cấp thông tin về cách mua hoặc lắp ráp Hộp
hợp nhất cảm biến. Hộp cảm biến kết hợp được dùng trong kiểm thử sensor_fusion
của CameraITS và kiểm thử đồng bộ hoá multi-camera
. API này cung cấp một môi trường kiểm thử nhất quán để đo lường độ chính xác của dấu thời gian của cảm biến cho các thiết bị Android, cụ thể là cảm biến hình ảnh máy ảnh và con quay hồi chuyển. Hộp này bao gồm các thành phần hộp nhựa được cắt bằng laser từ bản vẽ thiết kế hỗ trợ máy tính (CAD) và Hộp điều khiển servo.
Bạn có thể mua Hộp cảm biến kết hợp hoặc tự tạo hộp cảm biến kết hợp.
Mua Hộp cảm biến kết hợp
Bạn nên mua Hộp cảm biến kết hợp từ một trong các nhà cung cấp đủ tiêu chuẩn sau.
Byte Bridge Inc.
Hoa Kỳ: 1502 Crocker Ave, Hayward, CA 94544-7037
Trung Quốc: 22F #06-08, Hongwell International Plaza Tower A,
1600 West Zhongshan Road, Xuhui, Shanghai, 200235
www.bytebt.com
androidpartner@bytebt.com
Hoa Kỳ: +1-510-373-8899
Trung Quốc: +86-400-8866-490
JFT CO LTD 捷富通科技有限公司 (trước đây là MYWAY DESIGN)
Trung Quốc: Số 40, Lối 22, Đường Heai, Thị trấn Wujing, Quận Minhang, Thượng Hải, Trung Quốc
Đài Loan: Tầng 4, Số 163, Đường Fu-Ying, Quận XinZhuang, Thành phố Đài Bắc mới 242, Đài Loan
www.jftcoltd.com
service@jfttec.com hoặc its.sales@jfttec.com
Trung Quốc:+86-021-64909136
Đài Loan: 886-2-29089060
Tạo Hộp cảm biến kết hợp
Phần này bao gồm hướng dẫn từng bước để lắp ráp Hộp cảm biến kết hợp từ các thành phần acrylonitrile butadiene styrene (ABS) được cắt bằng laser (như minh hoạ trong Hình 1).

Hình 1. Bản vẽ cơ khí của các thành phần Hộp cảm biến kết hợp
Trước khi bắt đầu, hãy đảm bảo bạn đã tải bản vẽ kỹ thuật cho Hộp cảm biến kết hợp (có trong
tệp zip Hộp cảm biến kết hợp) và có các công cụ sau:
- Tua vít đầu Phillips
- Tua vít đầu JIS
- Khoá hex
- Bộ máy khoan điện
- Dao X-ACTO
- Băng keo
Bước 1: Dán nhãn vinyl
Sau khi tạo các thành phần ABS bằng máy cắt laser, hãy dán nhãn vinyl lên hộp nhựa để có được chế độ kiểm soát màu sắc phù hợp trên phần bên trong của hộp thử nghiệm:
Áp dụng vinyl trên mặt nhẵn của ABS như minh hoạ trong Hình 2. Để biết các mẹo hữu ích về cách dán decal, hãy tham khảo wikiHow.
Cắt các lỗ cần thiết trên vinyl bằng dao Exacto.

Hình 2. Các mảnh ABS được phủ vinyl ở mặt nhẵn (bên trong hộp)
Dùng keo acrylic để dán các miếng ABS tròn vào bốn góc của bảng dưới cùng.

Hình 3. Bảng điều khiển dưới cùng có các miếng ABS tròn được dán vào bốn góc.
Bước 2: Chuẩn bị giá đỡ điện thoại và gắn giá đỡ servo
Cách chuẩn bị giá đỡ điện thoại để gắn vào servo:
Khoan 20 lỗ trên giá đỡ điện thoại bằng mũi khoan 1/4"-20.

Hình 4. Khung cố định điện thoại có lỗ ren
Đảm bảo bạn có các phần cắt ABS, ốc tay nylon, đai ốc nylon (để điều chỉnh chiều cao ốc nếu cần), cánh tay servo kép actobotics spline C1, ốc 4-40 và lò xo nén.

Hình 5. Linh kiện giá đỡ điện thoại
Sử dụng ốc 4-40 và siết chặt (1,2 N*m hoặc 8,9 in*lbf) cánh tay servo vào mặt sau của giá đỡ điện thoại. Sử dụng cùng một vít và mũ ốc 4-40, siết chặt phần ABS cắt ra của bộ chia điện thoại ở mặt trước của giá đỡ điện thoại.

Hình 6. Trục ở mặt sau của thiết bị cố định, được siết chặt bằng vít được áp dụng từ phía trước

Hình 7. Vít dài 4-40, 3/4" và đai ốc 4-40

Hình 8. Mặt sau (trái) và mặt trước (phải) của giá đỡ điện thoại
Bước 3: Gắn kẹp điện thoại
Cách gắn kẹp điện thoại:
Cắt tấm neoprene theo hình dạng của kẹp cắt ABS, nhưng để ngắn hơn 2,5 cm ở cả hai đầu như minh hoạ trong Hình 9.
Sau khi cắt tấm neoprene cho phù hợp, hãy áp dụng các mảnh này cho các kẹp cắt ABS như trong Hình 8.

Hình 9. Kẹp ABS có tấm neoprene
Gắn vít tay nylon và dây lò xo vào kẹp. Thêm đai ốc nylon để giảm chiều dài vít (nếu cần).

Hình 10. Kẹp bằng tấm neoprene, vít tay, đai ốc nylon và dây lò xo
Vặn vít nút vặn của kẹp điện thoại vào các lỗ đã được ren của giá đỡ điện thoại như trong Hình 11. Bạn có thể điều chỉnh vị trí của giá đỡ điện thoại tuỳ thuộc vào kích thước của điện thoại.

Hình 11. Bản vẽ cơ khí của thiết bị cố định điện thoại

Hình 12. Giá đỡ điện thoại đã lắp ráp
Bước 4: Lắp ráp dải trượt cửa
Cố định các đường ray của bảng điều khiển trượt ở đầu và cuối hộp hướng về phía trước.
Hình 13 cho thấy ốc 6-32 trên các lỗ được tán trước. Ngoài ra, bạn có thể sử dụng vít tự khai thác.

Hình 13. Sửa đường ray trượt của bảng điều khiển ở đầu và cuối hộp
Bước 5: Đính kèm ánh sáng
Cách gắn giá đỡ đèn và bộ khuếch tán:
Xếp chồng hai phần tay cầm lên nhau và lắp ráp bằng vít 6-32 (hoặc dùng vít tự khai thác).

Hình 14. Các phần tay cầm và lắp ráp Hộp cảm biến kết hợp
Chuẩn bị 4 vít 4-40, đai ốc và đai ốc hình hạt dẻ để cố định giá đỡ từ bộ đèn vào thành hộp.

Hình 15. Vít 4-40 và giá đỡ đèn trên thành bên trong của hộp

Hình 16. Bu lông và bu lông hạt phỉ được áp dụng cho vít từ bên ngoài hộp
Cắt bộ khuếch tán ánh sáng theo kích thước thích hợp để bọc dải đèn (không bắt buộc nếu đèn đi kèm với bộ khuếch tán).

Hình 17. Dải đèn và bộ khuếch tán ánh sáng
Gói bộ khuếch tán ánh sáng xung quanh dải đèn và dán ở mặt sau.

Hình 18. Dải đèn và bộ khuếch tán ánh sáng được dán từ phía sau
Nhấn đèn vào giá đỡ (có thể vừa khít).

Hình 19. Đèn được gắn trong giá đỡ
Bước 6: Gắn cố định điện thoại vào tấm servo
Cách gắn giá đỡ điện thoại vào tấm servo:
Chuẩn bị 4 vít 6-32 và một tấm servo để cố định servo vào tường.
Cố định servo vào tường bên trong và chèn vít từ bên trong vào tấm servo trên tường bên ngoài.

Hình 20. Servo và tấm servo được giữ cố định bằng vít 6-32
Cố định giá đỡ điện thoại vào servo bằng khoá nylock (đẩy tâm trụ vào tâm xoay của servo).

Hình 21. Bánh răng servo
Sử dụng vít servo đi kèm với servo, vít (1,2 N*m hoặc
8,9 in*lbf) cố định điện thoại vào bánh răng servo thông qua cánh tay servo.

Hình 22. Tay servo
Bước 7: Lắp ráp hoàn thiện
Cách hoàn tất việc lắp ráp Hộp cảm biến kết hợp:
Kể từ Android 13, thiết bị kiểm thử hợp nhất cảm biến sẽ đi kèm với trình điều khiển chiếu sáng Arduino Android 13.
(Trong Android 12 trở xuống, thiết bị kết hợp cảm biến được vận chuyển kèm theo bộ điều khiển Arduino 6 kênh hoặc bộ điều khiển Canakit. Các thiết bị chạy Android 11 đến Android 12 tương thích với tay điều khiển Android 13, tay điều khiển Arduino 6 kênh hoặc tay điều khiển Canakit.) Kết nối phần mở rộng servo với bất kỳ kênh nào của bộ điều khiển servo, trong đó GND tương ứng với dây màu đen, VCC tương ứng với dây màu đỏ và SIG tương ứng với dây màu vàng.

Hình 23. Bộ điều khiển ánh sáng Arduino Rev3

Hình 24. Mẫu kết nối bộ điều khiển ánh sáng Arduino Rev3
Dán hộp lại với nhau, sau đó vặn các phần lại với nhau (bạn có thể phải khoan trước lỗ ở một số phần).

Hình 25. Thiết bị kiểm thử hợp nhất cảm biến được dán
Đối với Android 15 trở lên, hãy làm việc với cửa hàng in tại địa phương để in tệp checkerboard.pdf (có trong thư mục test/sensor_fusion
của cơ sở mã) trên giấy 18 x 18 inch với mẫu bàn cờ theo chiều rộng của giấy và dán biểu đồ lên tường đối diện với giá đỡ điện thoại.
Đối với máy ảnh có trường nhìn nhỏ hơn, chẳng hạn như máy ảnh tele, hãy làm việc với cửa hàng in địa phương để tạo các phiên bản có tỷ lệ tương ứng của bàn cờ. (Ví dụ: biểu đồ có tỷ lệ 50% sẽ được in trên giấy 9 x 9 inch.)

Hình 26. Biểu đồ dạng ô bàn cờ cho Android 15 trở lên.
Đảm bảo dấu chấm màu đỏ ở giữa bàn cờ trực tiếp đối diện với máy ảnh khi đặt trên giá đỡ, như minh hoạ trong Hình 27.

Hình 27. Hình bàn cờ được in và dán vào bức tường đối diện của giá đỡ điện thoại.
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-07-30 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-07-30 UTC."],[],[],null,["# Obtain a sensor fusion box\n\nThis page provides information on how to purchase or assemble a Sensor Fusion\nBox. The Sensor Fusion Box is used in the CameraITS `sensor_fusion` test and\n`multi-camera` sync test. It provides a consistent test environment for\nmeasuring timestamp accuracy of sensors for Android\ndevices, specifically camera image sensors and gyroscopes. It consists of\nplastic box components that are laser cut from\ncomputer-aided design (CAD) drawings and a Servo Control Box.\n\nYou can purchase a Sensor Fusion Box or build your own.\n\nPurchase a Sensor Fusion Box\n----------------------------\n\nWe recommend purchasing a Sensor Fusion Box from one of the following qualified\nvendors.\n\n- *Byte Bridge Inc.* \n\n USA: 1502 Crocker Ave, Hayward, CA 94544-7037 \n\n China: 22F #06-08, Hongwell International Plaza Tower A,\n 1600 West Zhongshan Road, Xuhui, Shanghai, 200235 \n\n [www.bytebt.com](https://www.bytebt.com/) \n\n androidpartner@bytebt.com \n\n USA: +1-510-373-8899 \n\n China: +86-400-8866-490\n\n- *JFT CO LTD 捷富通科技有限公司 (previously known as MYWAY DESIGN)* \n\n China: No. 40, Lane 22, Heai Road, Wujing Town, Minhang District, Shanghai, China \n\n Taiwan: 4F., No. 163, Fu-Ying Road, XinZhuang District, New Taipei City 242, Taiwan \n\n [www.jftcoltd.com](https://www.jftcoltd.com) \n\n service@jfttec.com or its.sales@jfttec.com \n\n China:+86-021-64909136 \n\n Taiwan: 886-2-29089060\n\n| **Note:** For additional support for foldable and large form factor devices, you can purchase the [foldable kit](/docs/compatibility/cts/its-accessories-foldable-kit).\n\nBuild a Sensor Fusion Box\n-------------------------\n\nThis section includes step-by-step instructions for assembling a Sensor Fusion\nBox from laser-cut acrylonitrile butadiene styrene (ABS) components (shown in\nFigure 1).\n\n\u003cbr /\u003e\n\n\n**Figure 1.** Mechanical drawing of Sensor Fusion Box components\n\n### Required tools\n\nBefore starting, ensure you have downloaded the technical drawings for the\nSensor Fusion Box (included in the\n[Sensor Fusion Box zip file](/static/docs/compatibility/cts/sensor_fusion_1_8.zip))\nand have the following tools available:\n\n- Phillips head screwdriver\n- JIS head screwdriver\n- Hex keys\n- Power drill set\n- X-ACTO knife\n- Tape\n\n### Step 1: Apply vinyl stickers\n\nAfter creating the ABS components with a laser\ncutter, apply vinyl stickers to the plastic box to get the proper color control\non the interior of the test box:\n\n1. Apply vinyl on the smooth side of the ABS\n as shown in Figure 2. For helpful tips on applying vinyl, refer to\n [wikiHow](https://www.wikihow.com/Install-a-Vinyl-Graphic).\n\n2. Cut out the necessary holes on the vinyl with the exacto knife.\n\n \u003cbr /\u003e\n\n\n **Figure 2.** ABS pieces with vinyl applied on the smooth side (interior of\n the box)\n3. Using acrylic glue, glue the round ABS pieces onto the four corners of the\n bottom panel.\n\n \u003cbr /\u003e\n\n\n **Figure 3.** Bottom panel with round ABS pieces glued to the four corners.\n\n### Step 2: Prepare phone mount and attach servo mount\n\nTo prepare the phone mount to attach to the servo:\n\n1. Tap 20 holes on the phone fixture with a 1/4\"-20 drill bit.\n\n \u003cbr /\u003e\n\n\n **Figure 4.** Phone fixture with tapped holes\n2. Make sure you have the ABS cut outs, nylon thumb screws, nylon nuts\n (for adjusting screw height if necessary), the C1 spline\n actobotics dual servo arm, 4-40 screws, and compression springs.\n\n \u003cbr /\u003e\n\n\n **Figure 5.** Phone mount parts\n3. Apply the 4-40 screws and tighten (1.2 N\\*m or 8.9 in\\*lbf) the\n servo arm to the back of the phone mount. Using the same screws and\n 4-40 cap nuts, tighten the phone divider ABS cut out on the front side of\n the phone mount.\n\n \u003cbr /\u003e\n\n\n **Figure 6.** Shaft on the back of fixture, tightened by screws applied\n from the front\n\n \u003cbr /\u003e\n\n\n **Figure 7.** 4-40, 3/4\" long screws and 4-40 cap nuts\n\n \u003cbr /\u003e\n\n\n **Figure 8.** Back (left) and front (right) of the phone mount\n\n### Step 3: Attach phone clamps\n\nTo attach the phone clamps:\n\n1. Cut the neoprene sheet according to the shape of the ABS cut-out\n clamps, but leave one inch shorter from both ends as shown in Figure 9.\n After cutting the neoprene sheet accordingly, apply the pieces to the ABS\n cut-out clamps as in Figure 8.\n\n \u003cbr /\u003e\n\n\n **Figure 9.** ABS clamp with neoprene sheet applied\n2. Attach nylon thumb screws and spring wire to the clamp. Add nylon\n nuts to reduce screw length, as needed.\n\n \u003cbr /\u003e\n\n\n **Figure 10.** Clamp with neoprene sheet, thumb screws, nylon nuts, and\n spring wire\n3. Screw the phone clamps' thumb screws into the tapped holes of the phone\n fixture as shown in Figure 11. You can adjust the location of the phone\n mounts depending on the size of the phones.\n\n \u003cbr /\u003e\n\n\n **Figure 11.** Mechanical drawing of the phone fixture\n\n \u003cbr /\u003e\n\n\n **Figure 12.** Assembled phone fixture\n\n### Step 4: Assemble sliding door rail\n\n1. Fix sliding panel rails on the top and bottom of the box toward the front.\n Figure 13 shows 6-32 screws on pre-tapped holes. Alternatively, you can use\n self-tapping screws.\n\n \u003cbr /\u003e\n\n\n **Figure 13.** Fixed sliding panel rail on top and bottom of box\n\n### Step 5: Attach lighting\n\nTo attach the light brackets and diffuser:\n\n1. Stack two handle pieces on top of each other and assemble them using 6-32\n screws (or use self-tapping screws).\n\n \u003cbr /\u003e\n\n\n **Figure 14.** Sensor Fusion Box handle pieces and assembly\n2. Prepare four 4-40 screws, nuts, and acorn nuts to fix the mounting bracket\n from the lighting kit to the wall of the box.\n\n \u003cbr /\u003e\n\n\n **Figure 15.** 4-40 screws and light bracket on the interior wall of the box\n\n \u003cbr /\u003e\n\n\n **Figure 16.** Bolts and acorn bolts applied to the screws from the exterior\n of the box\n3. Cut the light diffuser to an appropriate size to wrap the light strips (not\n required if the lights come with the diffuser).\n\n \u003cbr /\u003e\n\n\n **Figure 17.** Light strips and light diffusers\n4. Wrap the light diffuser around the strip and tape it at the back.\n\n \u003cbr /\u003e\n\n\n **Figure 18.** Light strips and light diffusers taped from the back\n5. Snap the lights into the brackets (can be a tight fit).\n\n \u003cbr /\u003e\n\n\n **Figure 19.** Lights mounted in brackets\n\n### Step 6: Attach phone fixture to servo plate\n\nTo attach the phone fixture to the servo plate:\n\n1. Prepare four 6-32 screws and a servo plate to fix the servo onto the wall.\n Fix the servo onto the interior wall and insert the screws from the inside\n into the servo plate on the exterior wall.\n\n \u003cbr /\u003e\n\n\n **Figure 20.** Servo and servo plate held in place with 6-32 screws\n2. Secure the phone fixture onto the servo with nylocks (pushing the center of the\n shaft into the servo's rotation center).\n\n **Figure 21.** Servo gear\n3. Using the servo screw that came with the servo, screw (1.2 N\\*m or\n 8.9 in\\*lbf) the phone fixture onto the servo gear through the servo\n arm.\n\n **Figure 22.** Servo arm\n\n### Step 7: Final assembly\n\nTo complete assembly of the Sensor Fusion Box:\n\n1. From Android 13, the sensor fusion test rig comes\n with the\n [Android 13 Arduino lighting controller](/docs/compatibility/cts/sensor-fusion-controller).\n (In Android 12\n or lower, the sensor fusion rig shipped with a 6-channel Arduino\n controller or a Canakit controller. Devices running\n Android 11 to Android 12\n are compatible with the Android 13 controller, 6-channel Arduino controller,\n or Canakit controller.) Connect the servo extension to any channel of the\n servo controller, where GND corresponds to black wire, VCC corresponds to\n the red wire, and SIG corresponds to the yellow wire.\n\n \u003cbr /\u003e\n\n\n **Figure 23.** Arduino Lighting Controller Rev3\n\n \u003cbr /\u003e\n\n\n **Figure 24.** Arduino lighting controller Rev3 connection sample\n2. Tape the box together, then screw the parts together (you might need to\n pre-drill holes in some parts).\n\n **Figure 25.** Taped sensor fusion test rig\n3. For Android 15 or higher, work with your local print\n shop to print out the checkerboard.pdf file (included in the\n `test/sensor_fusion` directory of the codebase)\n on 18 x 18 inch paper with the checkerboard pattern the width of the paper,\n and tape the chart on the wall opposite the phone fixture.\n\n For cameras with smaller fields of view, such as telephoto cameras, work\n with your local print shop to create proportionally scaled versions of the\n checkerboard. (For example, a 50% scaled chart would be printed on 9 x 9\n inch paper.)\n\n **Figure 26.** Checkerboard chart for Android 15 or\n higher.\n\n Make sure the red dot in the center of the checkerboard is directly facing\n the camera when placed on the fixture, as shown in Figure 27.\n\n **Figure 27.** Checkerboard printed and taped to the opposite wall of phone\n fixture."]]