* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Thursday, November 6, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    Cleveland State to Broadcast Six Basketball Games on Rock Entertainment Sports Network – csuvikings.com

    Cleveland State to Broadcast Six Basketball Games on Rock Entertainment Sports Network – csuvikings.com

    Can Caesars Entertainment’s (CZR) Investment in Digital Offset Las Vegas Weakness? – simplywall.st

    How do you spell success? ‘Spelling Bee’ lands at Surfside Playhouse – Florida Today

    How Do You Spell Success? Catch ‘Spelling Bee’ Live at Surfside Playhouse!

    Belmont Names Debbie Carroll Head of New Center for Mental Health in Entertainment – Billboard

    Debbie Carroll Named Leader of Groundbreaking New Center for Mental Health in Entertainment

    Call of Duty Movie’s Plot Setting Revealed in New Rumor – Yahoo

    Exciting New Rumor Reveals the Plot Setting of the Call of Duty Movie!

    Tybee Post Music Festival 2025 – Yahoo

    Get Ready to Rock: Tybee Post Music Festival 2025 is Almost Here!

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    How We Lost Ourselves to Technology—and How We Can Come Back – The Free Press

    How Technology Took Over Our Lives-and How We Can Take Back Control

    Sleeper Picks: World Wide Technology Championship – PGA Tour

    Discover the Ultimate Sleeper Picks for the World Wide Technology Championship

    Rowland.ai Named Disruptive Technology of the Year by The Energy Council – GlobeNewswire

    Rowland.ai Named Disruptive Technology of the Year by Industry Leaders

    Peraton Honored As Silver Stevie® Award Winner in 2025 Stevie Awards for Technology Excellence – The AI Journal

    Peraton Honored As Silver Stevie® Award Winner in 2025 Stevie Awards for Technology Excellence – The AI Journal

    [News] China Makes Breakthrough in Chip Technology, Paving the Way for Lithography Advancements – TrendForce

    [News] China Makes Breakthrough in Chip Technology, Paving the Way for Lithography Advancements – TrendForce

    Can RFID technology solve the global medicine shortage crisis? – World Health Expo

    Can RFID technology solve the global medicine shortage crisis? – World Health Expo

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    Cleveland State to Broadcast Six Basketball Games on Rock Entertainment Sports Network – csuvikings.com

    Cleveland State to Broadcast Six Basketball Games on Rock Entertainment Sports Network – csuvikings.com

    Can Caesars Entertainment’s (CZR) Investment in Digital Offset Las Vegas Weakness? – simplywall.st

    How do you spell success? ‘Spelling Bee’ lands at Surfside Playhouse – Florida Today

    How Do You Spell Success? Catch ‘Spelling Bee’ Live at Surfside Playhouse!

    Belmont Names Debbie Carroll Head of New Center for Mental Health in Entertainment – Billboard

    Debbie Carroll Named Leader of Groundbreaking New Center for Mental Health in Entertainment

    Call of Duty Movie’s Plot Setting Revealed in New Rumor – Yahoo

    Exciting New Rumor Reveals the Plot Setting of the Call of Duty Movie!

    Tybee Post Music Festival 2025 – Yahoo

    Get Ready to Rock: Tybee Post Music Festival 2025 is Almost Here!

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    How We Lost Ourselves to Technology—and How We Can Come Back – The Free Press

    How Technology Took Over Our Lives-and How We Can Take Back Control

    Sleeper Picks: World Wide Technology Championship – PGA Tour

    Discover the Ultimate Sleeper Picks for the World Wide Technology Championship

    Rowland.ai Named Disruptive Technology of the Year by The Energy Council – GlobeNewswire

    Rowland.ai Named Disruptive Technology of the Year by Industry Leaders

    Peraton Honored As Silver Stevie® Award Winner in 2025 Stevie Awards for Technology Excellence – The AI Journal

    Peraton Honored As Silver Stevie® Award Winner in 2025 Stevie Awards for Technology Excellence – The AI Journal

    [News] China Makes Breakthrough in Chip Technology, Paving the Way for Lithography Advancements – TrendForce

    [News] China Makes Breakthrough in Chip Technology, Paving the Way for Lithography Advancements – TrendForce

    Can RFID technology solve the global medicine shortage crisis? – World Health Expo

    Can RFID technology solve the global medicine shortage crisis? – World Health Expo

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
Earth-News
No Result
View All Result
Home Technology

Show HN: I made a new sensor out of 3D printer filament for my PhD

April 11, 2024
in Technology
Show HN: I made a new sensor out of 3D printer filament for my PhD
Share on FacebookShare on Twitter

Reading Time: 9 minutes

This article explores the research and development journey behind my new sensor system, OptiGap, a key component of my PhD research. I’m writing this in a storytelling format to offer insights into my decision-making process and the evolution leading to the final implementation. It should hopefully provide a glimpse into the sometimes-shrouded world of PhD research and may appeal to those curious about the process. For a deeper dive into technical specifics, simulations, and existing research on this subject, my dissertation is available online here.

What does it do?

In very general terms, this sensor is basically a rope that if bent can tell you where along its length you bent it. The fancy term for that is “bend localization.”

OptiGap’s application is mainly within the realm of soft robotics, which typically involves compliant (or ‘squishy’) systems, where the use of traditional sensors is often not practical. The name OptiGap, a fusion of “optical” and “gap,” reflects its core principle of utilizing air gaps within flexible optical light pipes to generate coded patterns essential for bend localization.

How the OptiGap Sensor System Started

The idea for OptiGap came about while I was experimenting with light transmission through various light pipes (optical cables) for use as a bend detection sensor. I was initially trying to see how I could effectively “slow down” light through the fiber…a seemingly straightforward task, right?

During this process, I attached a section of clear 3D printer filament (1.75mm TPU) to a piece of tape measure for an experiment and incidentally discovered that when I bent the tape measure (and filament) at the spot where the electrical tape was attached, there was a significant drop in light transmission. I hypothesized that this was because the sticky residue of the electrical tape was causing the filament to stretch, which in turn reduced the light transmission.

To verify this hypothesis, I attached a longer piece of TPU to a tape measure and began bending it at various points to observe how light transmission would change.

Tape measure experiment for OptiGapTape measure experiment with clear TPU filament.

I wrote a small Linux I2C driver for the VL53L0X ToF sensor to run on a Raspberry Pi and push the data to a socket using ZeroMQ. I then created a rough GUI in Python to pull the sensor data from the socket and visualize the light transmission data in realtime, shown in the GIF below, which very quickly validated my hypothesis. This validation marked the “Eureka!” moment that sparked the eventual development of the OptiGap sensor.

Initial OptiGap discoveryMy excited face while validating my discovery.

The OptiGap Realization

I realized that since I could control where the light was being attenuated, I could use this to encode information about the position of the bend on the sensor. Using electrical tape was not a practical solution, so I started looking for a more reliable and consistent way to create these attenuations. This led me to the idea of cutting the filament and then reattaching it together using a flexible rubber (silicone) sleeve, leaving a small air gap, as shown in the image below.

Proof-of-concept showing a light pipe with an air in a silicone sleeve.Proof-of-concept showing a light pipe with an air in a silicone sleeve.

The main working principle of the air gap is that translation and/or rotation of one light pipe face relative to the other changes the fraction of light transmitted across the gap. The greater the bend angle, the more light escapes across the gap. The resulting change in intensity of the optical signal can then be correlated with known patterns for use as a sensor.

OptiGap operating principleThis image is from a COMSOL simulation I made.

The Big Idea

I then proceeded to test this idea by creating multiple air gaps in a row and bending the filament to measure the attenuation.

Multiple air gaps along a single TPU lightpipeMultiple air gaps along a single TPU lightpipe.

As depicted in the GIF below, the optical intensity decreases at each air gap, with a more noticeable decrease as the bend angle increases. This initial experimentation served as proof of concept, demonstrating the feasibility of the idea. It led to the formulation of my final hypothesis of utilizing a pattern of these air gaps to encode information regarding the sensor’s bending and employing a naive Bayes classifier on a microcontroller to decode the bend location.

Validating the attenuation at the air gaps.Validating the attenuation at the air gaps.

This concept resembles the functionality of a linear encoder. Linear encoders gauge an object’s linear movement, typically comprising a slider rail with a coded scale akin to a measuring ruler and a sensing head that moves across this scale to read it. Linear (absolute) encoders emit a distinct code at each position, ensuring consistent identification of displacement.

OptiGap system overview.OptiGap system overview.

The OptiGap system, functioning like an absolute encoder, would encode absolute positions using patterns of bend-sensitive air gaps along parallel light pipes, effectively serving as a singular fiber optic sensor.

Encoding the Bend Location using Inverse Gray Code

Absolute encoders commonly employ Gray code, a binary system where two successive values differ in only one bit. This property allows for various applications, including error checking. However, Gray code isn’t optimal for the OptiGap sensor system. Here, we aim for consecutive values to differ by the maximum number of bits to facilitate easier differentiation. This necessity gave rise to Inverse Gray code.

Inverse Gray code is a binary code where two successive values differ by the maximum (n-1) number of bits. To implement this, I simply create cuts in the filament wherever there’s a “1” in the Inverse Gray code sequence. This approach can scale to any bit number. For the prototype, I utilized 3 bits, providing 8 possible positions.

Visualization of the OptiGap Sensor System

The illustration below depicts the signal patterns of the OptiGap sensor system for each bend position using three fibers. By employing a naive Bayes classifier, the sensor system can discern bend positions based on signal patterns. The third graph represents actual sensor data from the prototype system, utilized for training the classifier on the microcontroller.

OptiGap bending patterns.OptiGap bending patterns.

The OptiGap Prototype

I proceeded to construct a prototype of the OptiGap sensor system, utilizing 3 strands of clear TPU 3D printer filament, each featuring a distinct pattern of air gaps. The image below showcases the filament just before cutting, with the cut pattern indicated on a piece of tape.

Beginning stages of an OptiGap sensor prototype.Beginning stages of an OptiGap sensor prototype.

For the prototype, I employed a commercial 3:1 fiber optic coupler to merge the light from the 3 strands into a single fiber optic cable, resulting in the completion of the sensor prototype, as depicted below.

Assembled sensing head of an OptiGap sensor.Assembled sensing head of an OptiGap sensor.

This marked the final phase of validating the hypothesis and operational theory behind the OptiGap sensor.

Reducing the Physical Size

The initial prototype proved to be large and bulky, primarily due to the size of the 3D printer filament used. Drawing from previous experience, I recognized that PMMA (plastic) optical fiber offered a smaller and more flexible alternative suitable for this application. Consequently, I assessed 500, 750, and 1000 micron unjacketed PMMA optical fibers from Industrial Fiber Optics, Inc. for the sensor strands, resulting in a significant reduction in sensor size.

500 micron PMMA fiber spool.500 micron PMMA fiber spool.

I conducted tests on all three types of fibers to evaluate their light transmission and flexibility. Among them, the 500 micron fiber emerged as the optimal choice overall, although all three exhibited sufficient flexibility for this application.

Reducing the Optical Transceiver Complexity

I decided to switch from using the complex VL53L0X ToF sensor to a simple photodiode and IR LED setup to reduce the complexity of the system and to increase modularity. This also allowed me to use a  microcontroller to read the sensor data, which was a significant improvement over the initial prototype.

IR LED prototype board.IR LED prototype board with 1000 micron PMMA fiber.

I then created a demo system for the sensor based around an STM32 microcontroller and a photodiode/IR LED setup.

Full OptiGap demo system using 500 micron PMMA fiber.Full OptiGap demo system using 500 micron PMMA fiber.

Realtime Machine Learning on a Microcontroller

The final stage in developing the OptiGap sensor system involved integrating a naive Bayes classifier onto the STM32 microcontroller to decode the bend location from the sensor data. I opted for a naive Bayes classifier due to its efficiency compared to if-statements or lookup tables, its capability to handle new or previously unseen data, and its potential for increased accuracy by considering relationships between multiple input variables.

Implementing the naive Bayes classifier proved to be relatively straightforward. This classifier is a probabilistic model based on applying Bayes’ theorem to determine how a measurement can be assigned to a particular class, with the class representing the bend location in this context. I utilized the Arm CMSIS-DSP library for the classifier implementation.

Fitting the Sensor Data

The initial step in integrating the classifier was to fit the sensor data to a Gaussian distribution for each air gap pattern. To expedite this process, I developed a Python GUI for rapid labeling and fitting of the data using GNB (Gaussian Naive Bayes) from the scikit-learn library.

Initial data labeling and fitting UI.Initial data labeling and fitting UI.

I later improved this UI to be more general and to allow for more complex data fitting.

Improved UI.Improved UI.

The probabilities for each class were computed and saved as a header for use on the microcontroller.

Filtering the Sensor Data

To enhance the accuracy of the classifier, I implemented a two-stage filtering process on the STM32 . The initial stage involved a basic moving average filter, followed by a Kalman filter in the second stage.

Signal filtering stages.Signal filtering stages. Noise reduction relative to input signal.

The OptiGap Sensor System Demo

The GIFs provided below illustrate various stages of the OptiGap sensor system, encompassing assembly and the operational demonstration of the final sensor system.

System Overview

Assembly of an OptiGap Sensor using TPU Filament

Attenuation of Light through the OptiGap Sensor

Fitting of the Sensor Data

Segment Classification using PMMA Optical Fiber

Segment Classification using TPU Filament

Underwater Operation

OptiGap Design Specifications

Key Properties & Parameters

Material Recommendations

Next Steps

I’ve made significant progress on the OptiGap system beyond what’s documented here, including its integration into another modular actuation and sensing system I developed called EneGate.

My EneGate PCB integrating an OptiGap sensor.

This has involved custom PCB design and systems integration, detailed in my dissertation. Additionally, I’ve prototyped miniature PCB versions of the optics to interface with the PCBs for the EneGate system.

Mini OptiGap PCB
Another mini OptiGap PCB

I’ve also validated OptiGap on a real-world soft robotic system, with full details set to be presented in an upcoming RoboSoft paper titled “Embedded Optical Waveguide Sensors for Dynamic Behavior Monitoring in Twisted-Beam Structures.“

Commercialization

There’s an ongoing commercialization aspect to this research as well. Feel free to reach out if you’re interested in further details.

That’s it for now!

I don’t want to make this too long so I’ll end here. I hope this provided some insight into the research and development process involved in something like this. If you have any questions or would like to learn more, don’t hesitate to contact me!

>>> Read full article>>>
Copyright for syndicated content belongs to the linked Source : Hacker News – https://paulbupejr.com/developing-the-optigap-sensor-system/

Tags: printersensortechnology
Previous Post

Score Deep Discounts on Tech and Home Gear During Best Buy’s Limited-Time Outlet Sale

Next Post

Why Is README Capitalized? (2015)

Deep Dive Into Shark Ecology Provides Path to Conservation – Georgia Institute of Technology

Unlocking Shark Secrets: Exploring Their Ecology to Drive Conservation Efforts

November 5, 2025
Science diplomacy in small states: a case study of global players’ engagement in Slovakia – Nature

How Small States Like Slovakia Master the Art of Global Science Diplomacy

November 5, 2025
Academics welcome ‘change of tone’ on Serbia but fear sanctions – Science|Business

Academics Praise New Approach to Serbia but Express Ongoing Concerns Over Sanctions

November 5, 2025
The $1.25 Dollar Tree Pantry Staple I Buy Every Time I Go – Yahoo

The $1.25 Dollar Tree Pantry Staple I Buy Every Time I Go – Yahoo

November 5, 2025
How We Lost Ourselves to Technology—and How We Can Come Back – The Free Press

How Technology Took Over Our Lives-and How We Can Take Back Control

November 5, 2025
Andrews Sports Medicine subleases Brookwood Village’s former Belk location – Bham Now

Andrews Sports Medicine subleases Brookwood Village’s former Belk location – Bham Now

November 5, 2025
Will Smith celebrates Dodgers’ World Series win at Raising Cane’s Hollywood – KTLA

Will Smith Joins the Excitement as Dodgers Celebrate World Series Triumph at Raising Cane’s Hollywood

November 5, 2025
Hicks: A half-century with the wrong economic ideas – Courier & Press

Hicks: A half-century with the wrong economic ideas – Courier & Press

November 5, 2025
Cleveland State to Broadcast Six Basketball Games on Rock Entertainment Sports Network – csuvikings.com

Cleveland State to Broadcast Six Basketball Games on Rock Entertainment Sports Network – csuvikings.com

November 5, 2025
AngelEye Health Recognized as a 2025 Inc. Power Partner Award Winner – Yahoo Finance

AngelEye Health Celebrated as a 2025 Inc. Power Partner Award Winner

November 5, 2025

Categories

Archives

November 2025
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
« Oct    
Earth-News.info

The Earth News is an independent English-language daily published Website from all around the World News

Browse by Category

  • Business (20,132)
  • Ecology (904)
  • Economy (925)
  • Entertainment (21,797)
  • General (18,010)
  • Health (9,966)
  • Lifestyle (938)
  • News (22,149)
  • People (927)
  • Politics (936)
  • Science (16,137)
  • Sports (21,426)
  • Technology (15,906)
  • World (909)

Recent News

Deep Dive Into Shark Ecology Provides Path to Conservation – Georgia Institute of Technology

Unlocking Shark Secrets: Exploring Their Ecology to Drive Conservation Efforts

November 5, 2025
Science diplomacy in small states: a case study of global players’ engagement in Slovakia – Nature

How Small States Like Slovakia Master the Art of Global Science Diplomacy

November 5, 2025
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

Go to mobile version