Close Menu
    Trending
    • Solo Brings Human Verification to Venmo Co-Founder’s JellyJelly App as AI Agents Beat CAPTCHA
    • Academic Grants Round grantee announcement
    • Joe Carlasare On “Extreme Fear” In Bitcoin: “I’m A Buyer Here”
    • FAA Allows Flights To Resume After Hours-Long Ground Stop Across The US
    • Nvidia Scandal Unleashes a Flood of AI-Generated Memes
    • 11.13 Friday Faves – The Fitnessista
    • Warwickshire’s Jordan Thompson on how living with diabetes gives him “the motivation to succeed”
    • Wisconsin vs. Maryland Prediction, Odds, Picks For College Football Week 11
    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

    Why Anthropic’s Dario Amodei Has Angered OpenAI and Other A.I. Peers

    November 14, 2026
    Tech News

    Wall Street Braces for Anthropic’s Spending

    November 13, 2026
    Tech News

    Outlook, Teams and More Microsoft Programs Disrupted by Outage

    November 13, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    Top Posts

    Travis Kelce makes emotional admission amid retirement rumors

    December 27, 2025

    ‘We know how to lose’

    July 20, 2026

    Mohammed Shami’s Test record in New Zealand: Wickets, best bowling figures and career stats

    November 8, 2026

    Angel Reese and Atlanta Dream help WNBA Finals make history

    October 23, 2026

    Roman Anthony calls out Red Sox for ‘unacceptable’ start

    April 6, 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
    Most Popular

    Solo Brings Human Verification to Venmo Co-Founder’s JellyJelly App as AI Agents Beat CAPTCHA

    November 14, 2026

    Academic Grants Round grantee announcement

    November 14, 2026

    Joe Carlasare On “Extreme Fear” In Bitcoin: “I’m A Buyer Here”

    November 14, 2026

    FAA Allows Flights To Resume After Hours-Long Ground Stop Across The US

    November 14, 2026

    Nvidia Scandal Unleashes a Flood of AI-Generated Memes

    November 14, 2026

    11.13 Friday Faves – The Fitnessista

    November 14, 2026

    Warwickshire’s Jordan Thompson on how living with diabetes gives him “the motivation to succeed”

    November 14, 2026
    Our Picks

    VanEck Flags Dual Bullish Signals For Bitcoin As Funding Turns Negative, Hash Rate Slips

    April 25, 2026

    Turnovers doom No. 21 Tennessee in historic loss to Florida

    January 11, 2026

    Opinion | We Should Expect More From Our Supreme Court

    June 17, 2026

    Blue Origin’s New Glenn Launch Delay Will Continue Into 2027

    November 6, 2026

    Clinton Blames Biden For Trump Presidency

    June 18, 2026

    How Norris can win the F1 title in Qatar

    November 27, 2025

    INTERNATIONAL COURT OF APPEAL – Hearing June 16, 2026

    June 13, 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.