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

View More
All Categories
Best Seller (30)
New List (30)
Biliansheng Hair Transplant – No-Shave Technique for Eyebrows, Beard, Widow's Peak, and Sideburns; Aesthetic Design and Hair Restoration

Biliansheng Hair Transplant – No-Shave Technique for Eyebrows, Beard, Widow's Peak, and Sideburns; Aesthetic Design and Hair Restoration

$2.55

Oil Pastel Blending Stumps and Smudging Tools for Painting, Mixing, and Highlighting

Oil Pastel Blending Stumps and Smudging Tools for Painting, Mixing, and Highlighting

$4.76

Jingyangge Calligraphy Wool Felt Arm Rest Pad, Mini Felt Mat for Chinese Painting, Inkstone Protector, Creative and Exquisite Practice Mat

Jingyangge Calligraphy Wool Felt Arm Rest Pad, Mini Felt Mat for Chinese Painting, Inkstone Protector, Creative and Exquisite Practice Mat

$9.90

Concrete Mixing Plant Gantry Car Wash Platform, Shiji Runde Tunnel-Style Gantry Car Wash Machine

Concrete Mixing Plant Gantry Car Wash Platform, Shiji Runde Tunnel-Style Gantry Car Wash Machine

$20,000.00

Baohong Watercolor Paper Artist Grade 1/2/Full/Half Sheet, Student Grade 300g 100% Cotton Pulp, Rough/Medium/Fine Grain Roll

Baohong Watercolor Paper Artist Grade 1/2/Full/Half Sheet, Student Grade 300g 100% Cotton Pulp, Rough/Medium/Fine Grain Roll

$33.00

Metal Garden Bed - Large Size Vegetable Planter for Balcony and Home Gardening

Metal Garden Bed - Large Size Vegetable Planter for Balcony and Home Gardening

$1,033.00

Custom Travertine Stone Signage with Natural Marble 3D Lettering and Spherical Characters for Cafes, Clothing Stores, and Studios

Custom Travertine Stone Signage with Natural Marble 3D Lettering and Spherical Characters for Cafes, Clothing Stores, and Studios

$170.00

CANDLE.LAB | Realistic Cookie Series DIY Aromatherapy Plaster Candle Diffuser Handmade Silicone Mold

CANDLE.LAB | Realistic Cookie Series DIY Aromatherapy Plaster Candle Diffuser Handmade Silicone Mold

$12.00

Zhao Mengfu Calligraphy Copybook - Running Script 'Qingyun Zhi', Red-Traced Practice Paper for Beginners in Calligraphy

Zhao Mengfu Calligraphy Copybook - Running Script 'Qingyun Zhi', Red-Traced Practice Paper for Beginners in Calligraphy

$15.80

Aesthetic Street Scene Watercolor Line Art for Coloring, 16K Landscape Watercolor Coloring Book, Painting Book, Cotton Pulp Watercolor Album

Aesthetic Street Scene Watercolor Line Art for Coloring, 16K Landscape Watercolor Coloring Book, Painting Book, Cotton Pulp Watercolor Album

$15.80

Warehouse Nitrogen Sealing Generator - High-Purity Food-Grade PSA Skid-Mounted Container Equipment

Warehouse Nitrogen Sealing Generator - High-Purity Food-Grade PSA Skid-Mounted Container Equipment

$959.00

Ransheng UV Resin Gel, UV Crystal Glue for Gemstones, Ear Cuff Sealing, Dried Flower Molds, DIY Quick-Dry UV Epoxy

Ransheng UV Resin Gel, UV Crystal Glue for Gemstones, Ear Cuff Sealing, Dried Flower Molds, DIY Quick-Dry UV Epoxy

$44.00

Dairy Processing Production Line, Pasteurized Milk Equipment, Low-Temperature Sterilization and Fermentation Machine for Cow and Camel Milk

Dairy Processing Production Line, Pasteurized Milk Equipment, Low-Temperature Sterilization and Fermentation Machine for Cow and Camel Milk

$8,203.00

Blue Lint-Free Wiping Paper - Industrial Large Roll Oil-Absorbent Shop Towels

Blue Lint-Free Wiping Paper - Industrial Large Roll Oil-Absorbent Shop Towels

$62.00

Green-Red AB Glue 5-Minute Fast-Drying Acrylate AB Glue for Glass Ceramic Metal Structural Adhesive Quick Set

Green-Red AB Glue 5-Minute Fast-Drying Acrylate AB Glue for Glass Ceramic Metal Structural Adhesive Quick Set

$18.13

Northern Wei Dynasty Inscriptions: Twenty Pieces from Longmen [Rubbing] - Original Size Wei Bei Calligraphy Copybook from Luoyang Longmen Grottoes

Northern Wei Dynasty Inscriptions: Twenty Pieces from Longmen [Rubbing] - Original Size Wei Bei Calligraphy Copybook from Luoyang Longmen Grottoes

$40.30

Ru Kiln Celadon Ceramic Brush Washer Set - Large, Medium, and Small Ink Dishes for Chinese Calligraphy and Painting Supplies

Ru Kiln Celadon Ceramic Brush Washer Set - Large, Medium, and Small Ink Dishes for Chinese Calligraphy and Painting Supplies

$88.80

Multi-Layer Over-Toilet Storage Rack for Bathroom, Laundry Room, and Balcony - Floor Standing Organizer

Multi-Layer Over-Toilet Storage Rack for Bathroom, Laundry Room, and Balcony - Floor Standing Organizer

$44.96

Wrought Iron Solid Stainless Steel Letters – Minimalist Space Signage, Custom Metal Advertising Letters for Storefronts & Feature Walls

Wrought Iron Solid Stainless Steel Letters – Minimalist Space Signage, Custom Metal Advertising Letters for Storefronts & Feature Walls

$10.00

Shimoyama 304 Stainless Steel Telescopic Rod - Kitchen Sink Cutting Board Support Rack for Dish Drying and Cloth Hanging

Shimoyama 304 Stainless Steel Telescopic Rod - Kitchen Sink Cutting Board Support Rack for Dish Drying and Cloth Hanging

$74.80

Modified Wheel Lug Nuts Forged Steel High Strength for Lafesta Regal CT4 Civic Accord Crown Mazda3

Modified Wheel Lug Nuts Forged Steel High Strength for Lafesta Regal CT4 Civic Accord Crown Mazda3

$209.00

Milk Separator Machine - Electric Cream Skimmer and Butter Churn for Home and Commercial Use (Cow and Goat Milk)

Milk Separator Machine - Electric Cream Skimmer and Butter Churn for Home and Commercial Use (Cow and Goat Milk)

$946.00

Three-Phase Auto-Reclosing Leakage Circuit Breaker - Smart Phase Loss, Undervoltage, Overload Protection with 485 Communication for PV Grid Connection

Three-Phase Auto-Reclosing Leakage Circuit Breaker - Smart Phase Loss, Undervoltage, Overload Protection with 485 Communication for PV Grid Connection

$693.20

Multi-Function Vegetable Cutter Commercial Electric for Cafeterias Fully Automatic Chili Scallion Chopper Imitation Hand-Cut Leek Machine

Multi-Function Vegetable Cutter Commercial Electric for Cafeterias Fully Automatic Chili Scallion Chopper Imitation Hand-Cut Leek Machine

$1,600.00

Zhengtong ZT30 Fog Cannon - Micron-Level Humidification & Cooling Spray System for Steel Mills

Zhengtong ZT30 Fog Cannon - Micron-Level Humidification & Cooling Spray System for Steel Mills

$6,000.00

100Pcs Custom Clothing Hang Tags Personalized Plastic Securi

100Pcs Custom Clothing Hang Tags Personalized Plastic Securi

$125.94

Wall-Mounted Bathroom Storage Shelf, No-Drill Organizer for Sink, Shower, and Toilet Area

Wall-Mounted Bathroom Storage Shelf, No-Drill Organizer for Sink, Shower, and Toilet Area

$5.76

Thickened 5mm Wool Felt Mat for Calligraphy Practice - Premium Writing Pad for Students and Beginners, Part of Four Treasures of the Study Set

Thickened 5mm Wool Felt Mat for Calligraphy Practice - Premium Writing Pad for Students and Beginners, Part of Four Treasures of the Study Set

$2.80

Multi-Function Car Tire Stone Removal Tool with Hook for Picking Out Rocks

Multi-Function Car Tire Stone Removal Tool with Hook for Picking Out Rocks

$4.06

Label Stripping Machine – Semi-Automatic Unit for Beer, Baijiu, and Glass Bottle Label Removal; Custom Manufacturing Available

Label Stripping Machine – Semi-Automatic Unit for Beer, Baijiu, and Glass Bottle Label Removal; Custom Manufacturing Available

$19,980.00