Close Menu
    Trending
    • Section III Football Stat Leaders Shine in Week 8
    • Teensy-Powered Programmable Gesture-based Magnetic Lock
    • Netanyahu Has Turned Israel Into A Country Its Own People Are Fleeing
    • Melania or the Pope: Who brokered Russia-Ukraine ceasefire in Oleshky? | Russia-Ukraine war News
    • Harry Kane’s Ballon D’Or win is surprising but warranted
    • How Trump’s ‘little detour’ to Iran became a roadblock in the midterm elections
    • Solana’s Delivery-Versus-Payment Tool Tries to Remove Settlement’s Weakest Link
    • Allocation Update Q3 2022 | Ethereum Foundation Blog
    FreshUsNews
    • Home
    • World News
    • Latest News
      • World Economy
      • Opinions
    • Politics
    • Crypto
      • Blockchain
      • Ethereum
    • US News
    • Sports
      • Sports Trends
      • eSports
      • Cricket
      • Formula 1
      • NBA
      • Football
    • More
      • Finance
      • Health
      • Mindful Wellness
      • Weight Loss
      • Tech
      • Tech Analysis
      • Tech Updates
    FreshUsNews
    Home » Teensy-Powered Programmable Gesture-based Magnetic Lock
    Tech News

    Teensy-Powered Programmable Gesture-based Magnetic Lock

    FreshUsNewsBy FreshUsNewsOctober 27, 2026No Comments6 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Like many a nerd, I’ve a sure fascination with locks. This originates in studying the memoir Surely You’re Joking, Mr. Feynman as a teen, during which Richard Feynman recounts selecting locks and cracking combos whereas at his day job engaged on the Manhattan Project at Los Alamos. I at present have a few locksport decide units and coaching locks that I bought at hacker conferences through the years (though I’m nonetheless horrible at it), and I delight within the YouTube exploits of parents just like the LockPickingLawyer.

    All of which left me questioning if I might attempt constructing an attention-grabbing lock. One dodge that lockmakers have lengthy used to problem would-be plunderers is to conceal the existence of the lock itself. A contemporary variant of that is the magnetic lock, the place a magnet is held or slid in opposition to an innocuous portion of a door or field, releasing a catch. The issue with that is that, when you guess the placement of the lock, any sturdy magnet will open it.

    So I began serious about embedding an RFID reader under the surface and resigning myself to preserving observe of one more entry card. However then I stumbled throughout one thing way more attention-grabbing: SparkFun’s US $100 magnetic imaging tile. I noticed I might use this to construct a magnetic lock that opens with a programmable secret gesture.

    I used a couple of discrete elements to drive the servo motor and put the lock into program mode [top], managed by a Teensy 4.1 microcontroller [middle]. An array of Corridor-effect sensors detect magnetic fields [bottom].James Provost

    The magnetic imaging tile is a small-run SparkFun board based on the work of Peter Jansen. It options an 8-by-8 grid of Hall-effect sensors, and makes use of an SPI interface to speak to the microcontroller of your selection. These sensors can detect each the magnitude and polarity of a magnetic subject, and the board can report its measurements a whole lot to hundreds of occasions per second, relying on how a lot processing energy your microcontroller has accessible. That is simply quick sufficient to seize the movement of a magnet being moved by hand throughout the board’s sensor space—my secret gesture.

    An attention-grabbing factor about utilizing magnetic fields is that if I used to be in excessive paranoia mode, I might protect your entire lock behind copper sheeting, one thing I couldn’t do with an RFID reader. The copper sheet would act as a Faraday cage, blocking any RFID sign, together with another electromagnetic fields an attacker with an EMF meter may use to find the lock.

    Selecting the Brains of the Field

    I selected a Teensy 4.1 as my microcontroller. I just like the Teensy as a result of it affords a great deal of enter/output, a 600-megahertz processor, a megabyte of RAM, and a built-in SD card, all in a slim package deal with an equally slim $32 price ticket.

    Wiring the Teensy to the magnetic-imaging tile was trivial, solely difficult by the truth that one aspect of the board has a silk-screen error that misidentifies the SPI connections (SparkFun says this can be fastened in future runs of the board).

    In excessive paranoia mode, I might protect your entire lock behind copper sheeting.

    To create the gesture-recognition software program, I as soon as once more turned to vibe coding. When you learn my Palms On piece within the April 2026 problem of IEEE Spectrum on creating a teletext suite for ham radio, you’ll know I’ve been grappling with how vibe coding needs to be utilized in DIY initiatives, if in any respect. So this time, as a substitute of letting Claude write all of the software program, I confined it to writing simply two assist libraries, which you’ll find in our on-line repository at https://github.com/IEEESpectrumHandsOn.

    One library is in control of recording a lock gesture and saving it to the Teensy’s nonvolatile storage. The opposite library displays the tile and stories whether or not or not a newly detected gesture passes a selectable threshold to be thought of a match.

    I wrote the top-level code myself to maintain it as DIY as attainable. This code handles issues like a button that places the system in gesture-recording mode after a quick delay, the indicator LED for recording mode, and the code that operates the bodily locking mechanism.

    A diagram showing negative and positive charge carriers being separated towards different edges in the presence of a magnetic field, and a grid of sensors readings beneath the stroke line of a gesture. Corridor-effect sensors depend on a present passing by means of a p-type slab of silicon. A magnetic subject passing by means of the silicon deflects cost carriers towards the perimeters of the slab, making a voltage proportional to the sphere [left]. By wanting on the intensities of the voltages throughout an 8-by-8 grid of sensors, the microcontroller can reconstruct a gesture [right]. James Provost

    After all, I wanted one thing to lock to display my proof of idea. I purchased a wooden craft box and eliminated the present lid latch. I glued a notched beam contained in the lid and constructed a mechanism that makes use of a servo motor to rotate one other beam out and in of this notch. I would be the first to confess this mechanism goes past “easy” and into “simplistic,” however it’s sufficiently sturdy for my demo. The field has ample room for the magnetic imaging tile to be mounted in opposition to one wall, together with the Teensy and different supporting electronics. These embrace a battery pack, the recording button, and a small further board with two NPN transistors. These convert the Teensy’s 3.3-volt management indicators to a 5-V sign wanted to drive the servo.

    As soon as it was all put collectively, I quickly found that the small dimension of the magnetic tile’s sensing space—simply 3 centimeters sq.—made it simple to suit the tile contained in the field however laborious to do the unlock gesture on the skin in order that it’s learn accurately. Marking the define of the sensor space on the skin defeated the purpose of getting a hidden lock, so as a substitute I once again turned to mining my Irish heritage. I created a Celtic knotwork pattern that runs in a band throughout the entrance of the lockbox (I used an online knotwork generator after which projected and traced the sample onto the field). Utilizing the sample as a camouflaged reference grid I could make a repeatable gesture throughout the confines of the sensor space. (To make the gestures I’m utilizing a magnetic stylus borrowed from a ferrite core-memory kit we featured in 2022.)

    There’s apparent room for enchancment in any extra critical set up. The largest disadvantage at present is that if the field is locked when the battery runs out, you may’t open it once more with out breaking one thing. This may very well be solved by including a hidden inductive charging coil. Nonetheless, the demo lockbox works effectively—now I simply need to suppose what I ought to retailer in it!

    From Your Website Articles

    Associated Articles Across the Net



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleNetanyahu Has Turned Israel Into A Country Its Own People Are Fleeing
    Next Article Section III Football Stat Leaders Shine in Week 8
    FreshUsNews
    • Website

    Related Posts

    Tech News

    iPhone Duo: Apple says it will replace handsets with screen problems

    October 27, 2026
    Tech News

    Anthropic warns of AI’s ‘catastrophic risks’ ahead of blockbuster share listing

    October 26, 2026
    Tech News

    Data centre debate heats up ahead of US midterms – here’s what you need to know

    October 26, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    How the Train Crash in Spain Unfolded

    January 20, 2026

    Pope Leo Calls For AI To Serve Humanity And Not Concentrate Power

    May 25, 2026

    America needs an education moonshot

    January 5, 2026

    Qatar says it downed two Iranian fighter jets as conflict widens | News

    March 2, 2026

    The ‘Most scrimmage yards in one NFL game’ quiz

    November 25, 2025
    Categories
    • Bitcoin News
    • Blockchain
    • Cricket
    • eSports
    • Ethereum
    • Finance
    • Football
    • Formula 1
    • Healthy Habits
    • Latest News
    • Mindful Wellness
    • NBA
    • Opinions
    • Politics
    • Sports
    • Sports Trends
    • Tech Analysis
    • Tech News
    • Tech Updates
    • US News
    • Weight Loss
    • World Economy
    • World News
    Most Popular

    Section III Football Stat Leaders Shine in Week 8

    October 27, 2026

    Teensy-Powered Programmable Gesture-based Magnetic Lock

    October 27, 2026

    Netanyahu Has Turned Israel Into A Country Its Own People Are Fleeing

    October 27, 2026

    Melania or the Pope: Who brokered Russia-Ukraine ceasefire in Oleshky? | Russia-Ukraine war News

    October 27, 2026

    Harry Kane’s Ballon D’Or win is surprising but warranted

    October 27, 2026

    How Trump’s ‘little detour’ to Iran became a roadblock in the midterm elections

    October 27, 2026

    Solana’s Delivery-Versus-Payment Tool Tries to Remove Settlement’s Weakest Link

    October 27, 2026
    Our Picks

    Opinion | Is This the End of Close Elections?

    May 20, 2026

    Connect With Loving-Kindness: Simple Meditation- Mindful

    February 3, 2026

    Will the TikTok deal mean the app changes in the US?

    December 19, 2025

    Ethereum doubles down on privacy with new ‘Kohaku’ wallet ahead of Devcon

    October 9, 2025

    How Delhi Cut Electricity Loss from 50 to 5 Percent

    October 4, 2026

    U.S. Takes Casualties as Attacks on Iran Intensify

    March 2, 2026

    The Sad Reason People Go Private, And It’s Not Status

    August 31, 2026
    Categories
    • Bitcoin News
    • Blockchain
    • Cricket
    • eSports
    • Ethereum
    • Finance
    • Football
    • Formula 1
    • Healthy Habits
    • Latest News
    • Mindful Wellness
    • NBA
    • Opinions
    • Politics
    • Sports
    • Sports Trends
    • Tech Analysis
    • Tech News
    • Tech Updates
    • US News
    • Weight Loss
    • World Economy
    • World News
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us
    Copyright © 2025 Freshusnews.com All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.