Skip to main content
Home / Sensors / Keyes Self-Locking Button Module Self-Locking Switch Sensor Electronic Building Blocks Compatible with Arduino

Attributes

Brand -
Category Robotics / STEM Teaching Tools / Sensors
Origin -
Brand Keyes
Product Type Self-Locking Button Module
Compatibility Arduino, Raspberry Pi, STM32
Operating Voltage 3.3V - 5V DC
Interface Type 3-Pin Header (GND, VCC, SIG)
Switch Mechanism Mechanical Self-Locking
Material PCB with Plastic Housing
Dimensions 24mm x 16mm x 18mm
Weight 3.5 grams
Package Includes 1x Self-Locking Switch Sensor Module

6 reviews

A

Anonymous

Mar 30, 2026

Rating: 5/5

Great value for money

I bought five of these for a school project. All of them worked flawlessly out of the box. The pinout is clearly labeled which saves time.

A

Anonymous

Mar 28, 2026

Rating: 4/5

Good quality, slightly bulky

The sensor is reliable and the build quality is solid. It is a bit taller than some other modules, so check your case dimensions before installing.

A

Anonymous

Mar 17, 2026

Rating: 5/5

Sturdy construction

The PCB looks clean and the soldering points are well-made. The button click feels satisfying and durable. Will buy more for future projects.

A

Anonymous

Mar 14, 2026

Rating: 5/5

Perfect for Arduino prototypes

This module works exactly as described. The self-locking mechanism is smooth and stays in place until pressed again. Easy to wire up with standard jumper cables.

A

Anonymous

Mar 05, 2026

Rating: 5/5

Reliable switching action

Unlike momentary switches, this one holds the state perfectly. Ideal for toggle functions in my robot control panel. Highly recommended.

A

Anonymous

Mar 05, 2026

Rating: 4/5

Easy to use for beginners

As someone new to electronics, I found this very easy to integrate. Just connect power and signal, and it reads high or low depending on the state.

5 FAQ

Q: Can this be used with a 3.3V microcontroller?

A: Yes, the module operates comfortably within the 3.3V to 5V range, making it compatible with both 5V Arduinos and 3.3V boards like the ESP32.

Q: What is the difference between this and a momentary switch module?

A: This is a self-locking switch, meaning it stays in the ON or OFF position after being pressed. A momentary switch only activates while you are holding it down.

Q: Is a library required to use this sensor?

A: No library is needed. You can read the state simply by using the standard digitalRead() function in your Arduino sketch.

Q: Does this module require an external pull-up resistor?

A: Most Arduino boards have internal pull-up resistors that can be enabled in the code. However, if your specific setup requires it, you can easily add an external one.

Q: Are the mounting holes standard size?

A: Yes, the mounting holes are standard 3mm diameter, compatible with most M3 screws and standoff kits used in electronics projects.

Explore your interests

All Categories
Best Seller (30)
New List (30)
Authentic Ou Style Tian Kaishu Thousand Character Classic Calligraphy Card for Adult Practice, High-Definition Coated Paper

Authentic Ou Style Tian Kaishu Thousand Character Classic Calligraphy Card for Adult Practice, High-Definition Coated Paper

$55.10

Zer0g Ultra-Light 14g Backpack Waterproof Liner - Polycro Odor-Barrier Pack Liner for Hiking and Trekking

Zer0g Ultra-Light 14g Backpack Waterproof Liner - Polycro Odor-Barrier Pack Liner for Hiking and Trekking

$21.20

Touchmark Liquid Acrylic Markers with Soft Tips, Specialized for Elementary School Art, Ideal Birthday Gift for Children

Touchmark Liquid Acrylic Markers with Soft Tips, Specialized for Elementary School Art, Ideal Birthday Gift for Children

$18.90

Paper Blending Stump for Sketching - Professional Art Tool with Blade for Highlights, Pastels, and Oil Pastels

Paper Blending Stump for Sketching - Professional Art Tool with Blade for Highlights, Pastels, and Oil Pastels

$3.74

Wen Zhengming Small Regular Script Love Lotus Essay Brush Tracing Practice Copybook Calligraphy Paper Copying Custom Wholesale for Beginners

Wen Zhengming Small Regular Script Love Lotus Essay Brush Tracing Practice Copybook Calligraphy Paper Copying Custom Wholesale for Beginners

$8.80

Heavy-duty Industrial Scouring Pad Roll with Aluminum Oxide for Stainless Steel Polishing and Rust Removal

Heavy-duty Industrial Scouring Pad Roll with Aluminum Oxide for Stainless Steel Polishing and Rust Removal

$57.52

1.06m Leather Slitting Machine – Wide-Range Strip Cutter for Leather, Luggage, and Rubber Materials

1.06m Leather Slitting Machine – Wide-Range Strip Cutter for Leather, Luggage, and Rubber Materials

$16,250.00

Ceramic Double-Boiler Steaming Bowl with Lid – Ideal for Eggs, Bird's Nest, Custard, and Soup for Home or Commercial Use

Ceramic Double-Boiler Steaming Bowl with Lid – Ideal for Eggs, Bird's Nest, Custard, and Soup for Home or Commercial Use

$21.11

[Ya Que You Sheng] DT900 PRO X Calibration File V2 Version EQ Equalization

[Ya Que You Sheng] DT900 PRO X Calibration File V2 Version EQ Equalization

$15.00

Ceramic Rabbit Egg Holder, Creative Irregular Egg Stand, Home Breakfast Small Dish, Craft Gift Ornament

Ceramic Rabbit Egg Holder, Creative Irregular Egg Stand, Home Breakfast Small Dish, Craft Gift Ornament

$44.78

Hot-Selling Wire Money Tree Bonsai Base – Ceramic Pot for Wealth Attraction Incense

Hot-Selling Wire Money Tree Bonsai Base – Ceramic Pot for Wealth Attraction Incense

$37.00

Maike Outdoor Sports Waterproof Backpack Wet-Dry Separation Ski Bag Fishing Creek Fins Multi-Function Gear Storage

Maike Outdoor Sports Waterproof Backpack Wet-Dry Separation Ski Bag Fishing Creek Fins Multi-Function Gear Storage

$152.00

Viral NFC Chip Stickers for Music Wall - Adhesive Read/Write Tags for Song Scanning, Cards, and Photo Frames

Viral NFC Chip Stickers for Music Wall - Adhesive Read/Write Tags for Song Scanning, Cards, and Photo Frames

$2.38

Rechargeable Generation 2 Personal Air Purifier - Safe Portable Electric Fan for Travel Commuting and Flights

Rechargeable Generation 2 Personal Air Purifier - Safe Portable Electric Fan for Travel Commuting and Flights

$181.00

Integrated Sink Splash Guard with Silicone Drain Mat - Auto-Draining Countertop Organizer

Integrated Sink Splash Guard with Silicone Drain Mat - Auto-Draining Countertop Organizer

$23.30

Ultra-Light Aluminum Camping Light Pole – Foldable Mini Lamp Stand for Outdoor Picnics and Tabletop Use

Ultra-Light Aluminum Camping Light Pole – Foldable Mini Lamp Stand for Outdoor Picnics and Tabletop Use

$8.33

bimoz Under-Desk Cable Organizer No-Drill Shelf for Home Office Socket Strip Router Wire Data Cable Fixer Minimalist Wire Winder Dual-Side Mount Ventilated Design

bimoz Under-Desk Cable Organizer No-Drill Shelf for Home Office Socket Strip Router Wire Data Cable Fixer Minimalist Wire Winder Dual-Side Mount Ventilated Design

$40.80

Extended Deep-Cut External Thread Tool Holder with Relief Groove for Swiss-Type Lathe HKFF42R6001

Extended Deep-Cut External Thread Tool Holder with Relief Groove for Swiss-Type Lathe HKFF42R6001

$15.50

Meiao Dental Imported Dental Implant Package, Swiss ITI Straumann Implant Abutment, False Teeth, Filling, and Planting

Meiao Dental Imported Dental Implant Package, Swiss ITI Straumann Implant Abutment, False Teeth, Filling, and Planting

$14,188.00

Assorted Colors Kids' Painting Crayons - Washable Oil Pastels in 12, 18, 24, or 36 Colors for Graffiti and Coloring

Assorted Colors Kids' Painting Crayons - Washable Oil Pastels in 12, 18, 24, or 36 Colors for Graffiti and Coloring

$2.47

Fruit and Vegetable Slicer - Stainless Steel Commercial Electric Multi-Function Shredder for Radish, Potato, Cucumber, Pepper, Automatic

Fruit and Vegetable Slicer - Stainless Steel Commercial Electric Multi-Function Shredder for Radish, Potato, Cucumber, Pepper, Automatic

$2,880.00

CAAS-Developed Granular Insecticide and Fungicide for Vegetable Gardens – Soil Pest Control and Fertilizer for Enhanced Vegetable Growth and Yield

CAAS-Developed Granular Insecticide and Fungicide for Vegetable Gardens – Soil Pest Control and Fertilizer for Enhanced Vegetable Growth and Yield

$13.50

Marie's C6823 Sketch Blending Stumps (3-Pack), Professional Charcoal and Pastel Smudging Tools for Art Students and Beginners, Hard/Small/Highlight Set on Newsprint

Marie's C6823 Sketch Blending Stumps (3-Pack), Professional Charcoal and Pastel Smudging Tools for Art Students and Beginners, Hard/Small/Highlight Set on Newsprint

$7.48

Inverted Water Dispenser Stand with Manual Pump for Large Mineral Water Bottles

Inverted Water Dispenser Stand with Manual Pump for Large Mineral Water Bottles

$67.00

Lanzhai Flagship Store Multifunctional Retro Brush Washer Set, Creative Ceramic Large National Painting Tea Rinse Bowl, Art Display Paperweight, Student Calligraphy Supplies

Lanzhai Flagship Store Multifunctional Retro Brush Washer Set, Creative Ceramic Large National Painting Tea Rinse Bowl, Art Display Paperweight, Student Calligraphy Supplies

$8.42

Multi-Function Vanity Shelf Over Toilet - Floor-Standing Thickened Plastic Storage Cabinet for Squat Toilet Gaps

Multi-Function Vanity Shelf Over Toilet - Floor-Standing Thickened Plastic Storage Cabinet for Squat Toilet Gaps

$52.49

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

100% Cotton Watercolor Paper Pad 300gsm - Cold/Hot Press, 8K/16K/32K Sizes, Glued on Four Sides for Academy & Portable Sketching

$11.90

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

Commercial Large Shredding Machine Tornado Potato Slicer Wavy Slice Equipment Carrot Slicer Multi-Function

$20,000.00

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

Electric Heating Pasteurization Tank – Horizontal Spray Type for Fresh Milk and Food Sterilization

$11,211.00

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

[First Batch Deposit] Spring Cherry & Pear Snow - Original Lolita Ballet-Style Cake Dress Chinese JSK

$5.00