Skip to the content
2 layers20 × 16.8 mmWheel Encoder, the printed circuit board in 3D

Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

Size
20 × 16.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
17
Pads
39
Tracks, vias
73, 34
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
18 Sep 2026
Updated
29 Oct 2026

Overview

Wheel Encoder is an open-source printed circuit board by manyetox, from the manyetox/Autonomous-Photonics-Carrier repository on GitHub. It is a 2-layer board of 20 × 16.8 mm with 5 parts on 17 nets, routed with 73 tracks and 34 vias.

Its parts include 2 capacitors, 2 connectors and 1 IC. It belongs with the sensors and measurement boards of this library.

README

README.md

Autonomous-Photonics-Carrier

A source-available mobile robotics platform for autonomous and reconfigurable free-space photonics experiments.

This repository contains the electronics, fabrication files, preliminary embedded firmware, and research documentation for my UCL Electrical and Electronic Engineering third-year BEng project. The carrier is intended to move standard optical hardware around a tabletop, estimate its own motion from complementary sensors, and ultimately support closed-loop optical experiment setup and alignment.

Project status — 29 October 2026: Platform V2 works, including the motors, BNO086 IMU, and PAW3395 optical-flow sensor. The MA730 magnetic encoders remain untested because of component-ordering delays. Platform V3 is now in development, replacing the BNO086 with a lower-cost STMicroelectronics LSM6DS3. V3 hardware and firmware validation, full multi-sensor autonomy, and quantitative positioning experiments remain in progress. See the V3 development notes.

Partially assembled Platform V2 carrier — front view    Partially assembled Platform V2 carrier — rear view

Platform V2 photographed during assembly. V2 has since been reported working; magnetic-encoder testing is still awaiting components. These photographs show V2, not the developing V3.

Read this first: platform versions are not board revisions

The carrier now has three platform generations, with V3 under development:

System generationMeaningStatus
Platform V1First integrated/monolithic autonomous-photonics carrier electronicsHistorical, validated, superseded by V2
Platform V2Modular carrier with BNO086 IMUWorking prototype; magnetic encoders still untested
Platform V3Next carrier generation with lower-cost LSM6DS3 IMUIn development; see V3 notes

The numbers on individual V2 PCBs are board-local revisions, not new carrier generations. For example, OFS-R2.1.1 means Optical-Flow Sensor board revision 2.1.1; it is still part of Platform V2. The same applies to MB-R2.1, MDI-R2.0, and ENC-R1.0.

See VERSIONING.md before using fabrication files.

Why this project exists

Free-space optical experiments are normally assembled and aligned manually. Even a simple setup can require repeated positioning of posts, lenses, polarisers, sources, detectors, and cameras. The long-term research question behind this project is whether a low-cost fleet of mobile optomechanical carriers can make parts of that process reconfigurable, repeatable, measurable, and eventually autonomous.

This repository focuses on the carrier layer: motion, embedded electronics, local sensing, and the interfaces needed for higher-level perception and closed-loop experiment control. It does not claim that autonomous optical alignment has already been solved; that is the experimental work this platform is intended to enable.

Research questions

The project is being developed as an experimental research platform rather than only as a mobile-robot hardware build. The central question is:

Can a self-propelled optical post-holder module combine mobile positioning, multi-sensor localisation, and optical feedback to autonomously reconstruct and align repeatable free-space photonics experiments?

The current evaluation is organised around six questions:

  1. Coarse positioning accuracy and repeatability — How accurately can a carrier reach a commanded planar pose ((x, y, \psi)), and how closely can it return to that pose over repeated trials? How are the results affected by approach direction, travel distance, wheel slip, payload, and table-surface conditions?
  2. Stationary stability — How much translational and angular drift occurs while the carrier remains stationary on its wheels? How are the results affected by motor-hold strategy, payload centre of mass, battery voltage, and measurement duration?
  3. Localisation and sensor fusion — What accuracy and robustness can be achieved using the MA730 wheel encoders, PAW3395 optical-flow sensor, BNO086 (V2) or LSM6DS3 (V3) IMU, and planned overhead visual fiducials individually and in combination? In particular, can the fused estimate remain useful during wheel slip, short visual occlusion, and accumulated odometry drift?
  4. Closed-loop optical alignment and recovery — Can optical feedback compensate for the residual mechanical error remaining after mobile positioning? What alignment error, convergence time, capture range, success rate, and recovery behaviour can be achieved?
  5. Experiment reconstruction and operating range — Can one or more carriers reconstruct the same optical configuration on separate occasions and reproduce the same measurement? For which beam sizes, propagation distances, wavelengths, and classes of tabletop experiment is the achieved positioning performance sufficient?
  6. Compatibility, cost, and scalability — Can the platform carry standard optical posts and common holders without permanent modification? What payload, centre-of-mass height, battery runtime, and cost per carrier are practical, and how does operation change when multiple carriers share the same workspace?

These questions are intended to map directly onto measurable experiments. Results will only be reported after the relevant mechanical, electronic, localisation, and optical-control subsystems have been implemented and experimentally characterised.

Design-evolution note: the earliest research framing included an on-carrier screw-and-flexure fine-positioning stage and UWB ranging. Those ideas belong to the earlier design direction and are not core Platform V2 subsystems. Platform V2 instead focuses on a modular mobile carrier using wheel encoding, bottom optical flow, inertial sensing, planned overhead visual localisation, and later optical feedback. Fine optomechanical correction can be evaluated as a separate layer if required.

Working Platform V2 architecture

mermaid
flowchart LR
    B["1S LiPo / external power"] --> MB["MB-R2.1<br/>ESP32-WROOM-32UE mainboard"]
    MB --> MDI["MDI-R2.0<br/>TC78H651 + BNO086"]
    MDI --> LM["Left DC gearmotor"]
    MDI --> RM["Right DC gearmotor"]

    MB --> OFS["OFS-R2.1.1<br/>PAW3395 optical-flow board"]
    MB --> ENC["ENC-R1.0<br/>MA730 wheel encoder boards"]

    OFS --> REL["Relative tabletop motion"]
    ENC --> WHEEL["Wheel angle / odometry"]
    MDI --> IMU["Inertial orientation / motion"]

    CAM["Overhead camera + fiducials<br/>planned system layer"] --> HOST["Host perception + experiment software<br/>planned"]
    HOST --> MB

    REL --> FUSION["Pose estimation / sensor fusion<br/>planned"]
    WHEEL --> FUSION
    IMU --> FUSION
    CAM --> FUSION

The V2 redesign deliberately separates functions across small PCBs. This makes the system easier to manufacture, debug, replace, and revise than V1's dense integrated board.

V2 hardware at a glance

Board IDFunctionKey devicesPCBCurrent state
MB-R2.1Main controller / power / breakoutESP32-WROOM-32UE, NCP186 3.3 V LDO4-layer, ~25 × 27.1 mmValidated
MDI-R2.0Dual motor drive + IMUTC78H651FGN, BNO0864-layer, ~25 × 27 mmValidated
OFS-R2.1.1Bottom optical-flow sensingPAW3395, AP2127K-1.82-layer, ~19.3 × 24.0 mmWorking, author-confirmed
ENC-R1.0Wheel-angle sensingMA730 magnetic encoder2-layer, ~20 × 16.8 mmUntested; component ordering delayed

Platform V2 mechanical and electronics render

Platform V2 design render. V2 uses a modular electronics architecture so sensing, motor control, and the main controller can be manufactured, debugged, and revised independently.

Design evolution

Platform V3 — lower-cost IMU, in development

V3 replaces the V2 BNO086 with the STMicroelectronics LSM6DS3, identified in the latest schematic discussion. This is a six-axis accelerometer/gyroscope; V3 needs a matching driver and host-side orientation estimation instead of the BNO086 rotation-vector interface. The supplied V3 hardware includes the two-layer MDI-R3.0 motor/IMU board and OFS-R2.2 optical board. See V3 development notes.

Platform V1 — integrated architecture

V1 placed most functions on one approximately 50 × 50 mm, 8-layer PCB. The design included an ESP32-S3-WROOM-1, DWM3000 UWB, BNO086 IMU, two TMC5041 stepper-controller ICs, DRV8231 motor-driver stages, and the associated power and USB circuitry. It was a useful integration exercise and was built around the original concept of combining coarse mobile motion with local stepper/flexure positioning.

Platform V1 carrier concept render

Platform V1 concept. The first carrier generation combined the mobile base with local optomechanical positioning and concentrated most of the electronics onto a single integrated PCB.

Why V2 changed direction

The current architecture intentionally moves away from putting every possible function on one carrier PCB. The main reasons were:

  • Modularity: sensor and motor electronics can be revised without remanufacturing the controller.
  • Debuggability: faults can be isolated board-by-board.
  • Lower manufacturing risk: smaller boards and fewer tightly coupled subsystems.
  • Sensor strategy: PAW3395 relative optical tracking, MA730 wheel angle, BNO086 inertial data, and planned overhead fiducials provide complementary information without retaining UWB as a core requirement.
  • Fine alignment separation: the mobile base focuses on coarse positioning and repeatability. Very fine optical correction can be implemented as a separate optomechanical layer instead of forcing stepper/flexure hardware into every mobile carrier.
  • Cost and repeatability: the architecture is intended to scale to multiple carriers, so unnecessary per-carrier complexity matters.

The V1 source is retained because it documents the design path and may still be useful to researchers interested in a more integrated architecture.

Legacy reference — pre-project mobile robotics hardware

Before the dedicated photonics-carrier generations, I developed a more general mobile-robot electronics platform. It is retained in hardware/legacy-reference because several practical design lessons carried into this project, but it is not Platform V0 and should not be treated as part of the carrier version sequence.

Legacy mobile robotics reference hardware

Legacy mobile-robot reference design retained for engineering context. It predates the autonomous-photonics carrier and is included only to document relevant design heritage.

Repository map

text
Autonomous-Photonics-Carrier/
├── hardware/
│   ├── platform-v1/                 # Historical integrated carrier
│   ├── platform-v2/
│   │   ├── mainboard/MB-R2.1/
│   │   ├── motor-driver-imu/MDI-R2.0/
│   │   ├── optical-flow/OFS-R2.1.1/
│   │   └── wheel-encoder/ENC-R1.0/
│   ├── platform-v3/                 # MDI-R3.0 and OFS-R2.2 development files
│   └── legacy-reference/            # Pre-project robot electronics; not a platform version
├── firmware/
│   ├── platform-v2/agent-v2.4/       # Latest local V2 firmware and client
│   ├── platform-v3/                  # LSM6DS3 firmware pending
│   └── preliminary/                  # Original scaffold retained
├── software/                        # Planned host-side autonomy / experiment software
├── docs/                            # Architecture, methods, validation, manufacturing notes
├── data/                            # Experimental-data conventions; no results claimed yet
├── media/                           # Image/video placeholders
├── VERSIONING.md
├── CHANGELOG.md
├── CITATION.cff
└── LICENSE.md

Hardware source and fabrication files

Native KiCad source files are provided alongside fabrication outputs. Current fabrication packages are separated from superseded board revisions so that a Gerber revision cannot be mistaken for a platform generation.

Start here:

The CSV BOMs in the board folders were auto-extracted from the KiCad PCB files to make review easier. They are not a substitute for checking the schematic and part datasheets before ordering.

Published V2 firmware

The latest local Agent v2.4 package is included for ESP32 + BNO086 + PAW3395. It includes web controls, independent motor factors, level/origin calibration, relative positioning, telemetry and an Open WebUI client. ESP32 compilation and host checks are documented with the package; the author’s working-V2 report does not validate every automated action. V3 LSM6DS3 firmware remains pending.

Original preliminary firmware

A deliberately conservative PlatformIO/Arduino scaffold is included in firmware/preliminary. It establishes the intended embedded-software structure, status reporting, motor-control abstraction, serial command interface, and placeholders for BNO086, PAW3395, and MA730 integration.

It is not the final autonomy firmware and it is not presented as experimentally validated software. Peripheral signal-to-GPIO assignment is left disabled by default wherever the uploaded hardware files do not prove the final system interconnect unambiguously. This prevents a public repository from presenting guessed pin mappings as fact.

The preliminary firmware and parts of the repository/software scaffolding were prepared with assistance from OpenAI ChatGPT 5.6 and then reviewed against the project hardware files. See AI_ASSISTANCE.md.

Planned sensing and autonomy stack

The intended estimation hierarchy is complementary rather than relying on a single sensor:

  1. Wheel angle / odometry: MA730 magnetic encoders provide direct rotational information at the drivetrain.
  2. Bottom optical flow: PAW3395 provides high-rate relative motion against the tabletop and can expose wheel-slip/odometry disagreement.
  3. IMU: BNO086 provides the V2 inertial input; V3 adopts LSM6DS3 acceleration and angular-rate data with orientation estimation in firmware.
  4. Overhead fiducials: a camera observing AprilTags or similar fiducials is planned as a global absolute pose reference and recovery mechanism.
  5. Optical feedback: experimental signals can eventually be incorporated into the control loop so the carrier optimises the optical result, not only geometric pose.

Prototype IMU/optical-flow positioning firmware has been developed in the project. Global localisation, encoder integration, multi-carrier coordination, and optical-feedback optimisation remain development work; measured positioning performance has not yet been published.

Research measurements this platform is intended to support

The repository is organised so that later results can be reproduced rather than reported only as a final demo. The principal measurements are:

  • planar pose accuracy in x, y, and yaw against an external reference;
  • return-to-pose repeatability over repeated move-away-and-return cycles;
  • stationary drift and accumulated odometry drift;
  • wheel-encoder, optical-flow, and IMU disagreement under controlled motion;
  • recovery from deliberate slip or localisation error;
  • carrier-to-carrier consistency if multiple units are built;
  • cost per carrier and sensitivity to inexpensive mechanical components;
  • success rate of a defined optical alignment task.

See docs/research-methodology.md and docs/validation.md. Until those experiments are complete, target resolutions or simulated estimates should not be read as measured performance.

For the research context behind the architecture, see docs/related-work.md.

Research context and selected related work

This project sits between robotic optical alignment, autonomous laboratories, and mobile multi-sensor robotics. The most directly relevant prior work is summarised here; the longer discussion belongs in docs/related-work.md.

  • OptoMate / AI-Driven Robotics for Optics demonstrates a general-purpose robotic approach to physically assembling and aligning free-space optical experiments using computer vision, robotic manipulation, and AI-assisted control [1]. It is a particularly close research neighbour, but it uses an external robotic manipulator rather than making each optical element independently mobile.
  • Choi et al. present a closed-loop framework for robotic optical assembly, alignment, and self-recovery [2]. This is directly relevant to the carrier's long-term objective of detecting misalignment, correcting it from measurement feedback, and recovering after a disturbance.
  • Rakhmatulin et al. review automated laser-optics alignment, including optimisation and machine-learning approaches [3]. Their review motivates treating the optical signal itself as a feedback variable rather than assuming that geometric positioning alone is sufficient.
  • Fang and Savransky show automated alignment of a reconfigurable optical system using focal-plane sensing and Kalman filtering [4], providing an example of image-based estimation driving corrective optical motion.
  • Szymanski et al. demonstrate the broader self-driving-laboratory concept in which robotics, measurement, and computational decision-making form a closed experimental loop [5]. The present project explores a different physical layer: making the experimental optical hardware itself reconfigurable on the tabletop.

Commercial active-alignment systems from companies such as Physik Instrumente provide useful industrial context: high-precision automated optical alignment is already practical, but such systems are generally built around dedicated stages and predefined alignment tasks rather than low-cost independently mobile optical carriers [6].

The distinction matters: this repository does not claim that the individual techniques above are new. The research question is whether coarse mobile positioning, complementary low-cost sensing, standard optomechanical compatibility, and closed-loop optical feedback can be combined into a scalable carrier architecture for reconfigurable free-space experiments.

Selected references

  1. S. Z. Uddin, S. Vaidya, S. Choudhary, Z. Chen, R. K. Salib, L. Huang, D. R. Englund, and M. Soljačić, “AI-Driven Robotics for Optics,” arXiv:2505.17985, 2025. https://doi.org/10.48550/arXiv.2505.17985
  2. S. Choi, S. Vaidya, C. Silva, S. Z. Uddin, S. B. Shuvo, S. Choudhary, and M. Soljačić, “A Framework for Closed-Loop Robotic Assembly, Alignment and Self-Recovery of Precision Optical Systems,” arXiv:2603.21496, 2026. https://doi.org/10.48550/arXiv.2603.21496
  3. I. Rakhmatulin, D. Risbridger, R. Carter, M. J. D. Esser, and M. S. Erden, “A Review of Automation of Laser Optics Alignment with a Focus on Machine Learning Applications,” Optics and Lasers in Engineering, vol. 173, 107923, 2024. https://doi.org/10.1016/j.optlaseng.2023.107923
  4. J. Fang and D. Savransky, “Automated Alignment of a Reconfigurable Optical System Using Focal-Plane Sensing and Kalman Filtering,” arXiv:1608.07550, 2016. https://arxiv.org/abs/1608.07550
  5. N. J. Szymanski et al., “An Autonomous Laboratory for the Accelerated Synthesis of Inorganic Materials,” Nature, vol. 624, pp. 86–91, 2023. https://doi.org/10.1038/s41586-023-06734-w
  6. PI (Physik Instrumente), “Active Photonics Alignment Systems / Fiber Optic Alignment Stages,” product and application documentation. https://www.pi-usa.us/en/products/photonics-alignment-solutions

Project information

Author: Taylan Arslan
Programme: UCL Electrical and Electronic Engineering — BEng third-year project, 2026–27
Project supervisor: Prof. Kaan Akşit
EEE co-supervisor: Thomas Gilbert

The supervisors are acknowledged for academic supervision; this repository is maintained by the author and is not an official UCL product or endorsement.

Contributing

Research feedback, reproducibility reports, bug findings, and non-commercial improvements are welcome. Please read CONTRIBUTING.md before opening a pull request. In particular, use the versioning vocabulary above when discussing hardware revisions.

Licensing

This repository is intentionally source-available for non-commercial research, education, and personal experimentation, but it does not grant commercial-use rights under its public licences.

  • Hardware design files, documentation, diagrams, and repository media: CC BY-NC 4.0.
  • Firmware and software: PolyForm Noncommercial License 1.0.0.
  • Commercial use requires a separate written commercial licence from the author.

Because of the non-commercial restriction, this project should not be described as OSHWA-compliant “open-source hardware.” See LICENSE.md for the exact scope and important IP limitations.

Safety and experimental responsibility

This is research hardware, not a certified product. Re-check power rails, polarity, motor current, battery protection/charging, connector orientation, clearances, and fabrication outputs before use. If the carrier is used around lasers or other optical sources, follow the laboratory's laser-safety procedures; this repository does not replace a risk assessment or device datasheet.

Parts

5
QtyValueFootprintReferences
2Conn_01x07_SocketLibrary-kicad:7 pin smd conn 2.54J1, J2
1100nCapacitor_SMD:C_0603_1608MetricC2
11uCapacitor_SMD:C_0603_1608MetricC1
1MA730Package_DFN_QFN:QFN-16-1EP_3x3mm_P0.5mm_EP1.75x1.75mmU1

More from manyetox/Autonomous-Photonics-Carrier

7
  • 8 layers50 × 50 mmINT R1.0.1, the printed circuit board in 3D

    INT R1.0.1

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    182 parts1
  • 8 layers50 × 46.2 mmRobot aio esp32 manuel solder 8 layer, the printed circuit board in 3D

    Robot aio esp32 manuel solder 8 layer

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    66 parts1
  • 4 layers25 × 27 mmMotor drivers, the printed circuit board in 3D

    Motor drivers

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    28 parts1
  • 4 layers25 × 27.1 mmV2-4 piece modular vertical, the printed circuit board in 3D

    V2-4 piece modular vertical

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    25 parts1
  • 2 layers19.3 × 24 mmOptical tracking sensor paw 3395, the printed circuit board in 3D

    Optical tracking sensor paw 3395

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    17 parts1
  • 2 layers25 × 27 mmMotor drivers, the printed circuit board in 3D

    Motor drivers

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    17 parts1
  • 2 layers19.3 × 24 mmOptical tracking sensor paw 3395, the printed circuit board in 3D

    Optical tracking sensor paw 3395

    manyetox/Autonomous-Photonics-Carrier

    Source-available modular mobile carrier for autonomous photonics experiments using ESP32 control, optical flow, IMU sensing and magnetic wheel encoding.

    17 parts1

Similar boards

  • 2 layers98 × 27 mmXy limit, the printed circuit board in 3D

    Xy limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    5 parts3.7k
  • 2 layers21 × 33 mm24g2usb pico2w, the printed circuit board in 3D

    24g2usb pico2w

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    5 parts1.7kApache-2.0
  • 2 layers53.2 × 59.6 mmA10 OLinuXino Lime Rev B SHIELD TEMPLATE, the printed circuit board in 3D

    A10 OLinuXino Lime Rev B SHIELD TEMPLATE

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    5 parts1.5k
  • 2 layers30 × 11 mmMain control board servo tester, the printed circuit board in 3D

    Main control board servo tester

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    5 parts1.1k
  • 2 layers78.8 × 35.3 mmKiCadTest, the printed circuit board in 3D

    KiCadTest

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    5 parts915
  • 2 layers50 × 23 mmMiniCircuits LTCC, the printed circuit board in 3D

    MiniCircuits LTCC

    VanceVagell/kv4p-ht

    Open source handheld ham radio project KV4P-HT

    5 parts828GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 light sensor, the printed circuit board in 3D

    L0 light sensor

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    5 parts546MIT

Questions

How big is the Wheel Encoder PCB?

It measures 20 × 16.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Wheel Encoder use?

5 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Wheel Encoder KiCad files?

From the manyetox/Autonomous-Photonics-Carrier repository on GitHub, at the commit this page was made from: the board is hardware/platform-v2/wheel-encoder/ENC-R1.0/source/Wheel-Encoder.kicad_pcb and its schematic hardware/legacy-reference/source/robot aio esp32 manuel solder 8 layer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Wheel Encoder design in my own project?

Its repository states no licence, so its author keeps all rights: ask manyetox before reusing the design.