FiberGrid uses a camera to read 3D-printed sensors through plastic optical fibers

robotics, optical sensors

This is the read-only HTML version. For the full Visual Space experience, open the app.

fiber optics, camera, robotics

fiber optics, camera, robotics

Source: FiberGrid on Hackaday.io · rand3289

camera-based sensing

Instead of wiring each mechanical sensor to an analog input, FiberGrid routes its light to a shared camera. The framework moves the work from per-sensor electronics into printed mechanisms, optical alignment and software calibration—with encoder testing and a joystick demo documented by its creator.

👍 1

A robot with lots of custom sensors usually brings lots of wiring and interface work along with it. FiberGrid, shared by creator rand3289 on Hackaday.io, takes a different approach: let printed mechanisms interrupt light, then use a camera to read the results through plastic optical fibers. The goal is to make custom sensing accessible without designing an electronic interface for every input.

The project dates to August 25, 2019, and the latest supplied log is from September 2, 2021. Its enduring interest is the architecture: a camera becomes a shared reader for a collection of mechanical sensors, rather than a device looking out at the robot’s surroundings.

Each sensor changes the light reaching the camera

FiberGrid starts with a light source shining onto a grid of exposed fiber ends. Each fiber carries light to a sensor, where a moving mechanism blocks some of it. A second fiber carries the remaining light back to an enclosure in front of the camera.

Software measures the brightness at each returning fiber’s position. Because a mechanism can partially block the light, the result can be a continuously varying value rather than just an on/off signal. The project also allows LEDs inside individual sensors instead of routing illumination from a shared source.

This makes the mechanical design part of the sensing circuit. A shutter, slot or rotating wheel determines how movement changes the received light. The camera supplies a brightness reading; making that reading useful as a measurement still depends on the sensor’s geometry and response.

The listed hardware is deliberately approachable: jacketed plastic optical fiber, an LED lamp, a camera and printed parts. Black PLA serves a functional purpose by blocking ambient light. Close focus matters too: rand3289 specifies a camera that can focus roughly one to three inches from its lens, preferably with manual focus. The supplied explanatory video accompanies the project’s description of this light path.

Fixed fiber positions keep the driver small

The software separates setup from routine reading. FiberCal locates the fiber centers and boundaries in the camera image, allows manual corrections and saves their positions. The FiberGrid driver then uses that configuration to read brightness values from the corresponding image regions.

The important assumption is that the fibers stay put. With a rigid enclosure, the driver doesn’t need to rediscover every fiber in every frame. That shifts the more involved detection work into calibration and makes the runtime interface easier to port.

In an October 2, 2020 update, rand3289 reported adding a Python driver of about 30 lines and linked its source file. That is a concrete payoff from separating calibration from acquisition—not evidence that an entire sensing system needs only 30 lines.

The creator says a camera could read hundreds of sensors at once. The available excerpts don’t establish a measured channel-count limit. They do identify frame rate as a key constraint: ordinary camera-based readings arrive with captured frames, so adding more visible fibers doesn’t itself make the measurements faster.

Encoders and a joystick give the framework something to read

A September 6, 2019 log describes testing an optical encoder with two fibers attached. Rand3289 used an existing encoder wheel and made a bracket to accept FiberGrid plugs. A wheel with closer tracks and tapered slits was proposed as a later improvement, not reported as completed.

By July 25, 2020, the creator had also linked a 3D-printed joystick demo, saying it took a few hours to make. That update also exposed a practical obstacle: rand3289 reported little hands-on uptake and asked others to build sensors. A general-purpose reader still needs useful mechanisms at the far ends of its fibers.

The complexity moves rather than disappears

In the discussion, commenter maxbit89 challenged the idea that FiberGrid removes electronics: the webcam packages those electronics into a box, while optics and image processing introduce their own tradeoffs. That distinction helps explain the project more accurately than a promise to eliminate electrical engineering. FiberGrid concentrates acquisition hardware in one place and lets builders work on mechanical and optical interfaces elsewhere.

The September 2, 2021 event-camera log explored a possible future acquisition route, but described cost as an obstacle. It was a proposal, not a demonstrated upgrade.

For a robotics experiment, the useful next test is therefore modest and measurable: build one representative sensor, record its response across repeated movements, and check how consistently and quickly the camera reports it. FiberGrid’s central proposition is attractive when many custom mechanisms can share one reader—but the first dependable light-to-motion relationship matters more than the eventual fiber count.

Source: FiberGrid

Robotics

3 Followers

Bring mechanisms, electronics and software together. Share robots and prototypes, compare sensing and control approaches, document experiments, and work through the practical challenges of building machines that act in the world.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.