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)
Youzhao Pai Creative Retro 3D Embossed House Number Plate – Custom Door Signs for Villas, Commercial Spaces, and Homes

Youzhao Pai Creative Retro 3D Embossed House Number Plate – Custom Door Signs for Villas, Commercial Spaces, and Homes

$200.00

Tianzheng DZ15LE-100/3N901T 100A Transparent Leakage Circuit Breaker, Molded Case Circuit Breaker 3901T 63A

Tianzheng DZ15LE-100/3N901T 100A Transparent Leakage Circuit Breaker, Molded Case Circuit Breaker 3901T 63A

$278.00

[Daimai Holds Micro-Needle Hair Transplant Patent] Little Red Cap Hydro Glow | Scalp Hydration and Repair

[Daimai Holds Micro-Needle Hair Transplant Patent] Little Red Cap Hydro Glow | Scalp Hydration and Repair

$880.00

Pelican Rolling Case pelican1560 - Waterproof Shockproof Safety Case for Photography Equipment and Instruments

Pelican Rolling Case pelican1560 - Waterproof Shockproof Safety Case for Photography Equipment and Instruments

$1,550.00

Disipulai Hot Air Circulation Vertical Food Warmer Display Cabinet - Adjustable Temperature Countertop Cooked Food Warming Equipment

Disipulai Hot Air Circulation Vertical Food Warmer Display Cabinet - Adjustable Temperature Countertop Cooked Food Warming Equipment

$2,023.00

Complete Pasteurization Production Line for Pomegranate, Grape, Orange, Apple Juice, and Mare's Milk

Complete Pasteurization Production Line for Pomegranate, Grape, Orange, Apple Juice, and Mare's Milk

$6,048.00

Portable Tire Stone Removal Tool - Essential Handheld Hook for Car Owners

Portable Tire Stone Removal Tool - Essential Handheld Hook for Car Owners

$13.73

Factory Direct Longan 160 Curved Hot Stamping Machine Fully Automatic Hot Foil Printer Pneumatic Heat Press Leather Embossing Machine

Factory Direct Longan 160 Curved Hot Stamping Machine Fully Automatic Hot Foil Printer Pneumatic Heat Press Leather Embossing Machine

$10,000.00

Bean Sprout Germinator Tray, Hydroponic Vegetable Growing Container, Soil-Free Pea Sprouting Pot

Bean Sprout Germinator Tray, Hydroponic Vegetable Growing Container, Soil-Free Pea Sprouting Pot

$14.06

TOPTOY Crayon Shin-chan Memory Echo Series Blind Box - Anime Figure Collectible Toy and Birthday Gift

TOPTOY Crayon Shin-chan Memory Echo Series Blind Box - Anime Figure Collectible Toy and Birthday Gift

$47.20

Natural Lightning Cat's Eye Yellow Tiger Eye Loose Beads, Single Crystal Beads for DIY Bracelets and Accessories

Natural Lightning Cat's Eye Yellow Tiger Eye Loose Beads, Single Crystal Beads for DIY Bracelets and Accessories

$3.91

Pirelli Tire 235/55R19, Original Equipment for Mercedes-Benz GLC, Genuine Tire Compatible with Audi/Land Rover/etc.

Pirelli Tire 235/55R19, Original Equipment for Mercedes-Benz GLC, Genuine Tire Compatible with Audi/Land Rover/etc.

$512.00

Biliansheng Hair Transplant: No-Shave Hairline Restoration, Top Thinning Density Enhancement, Nationwide Chain

Biliansheng Hair Transplant: No-Shave Hairline Restoration, Top Thinning Density Enhancement, Nationwide Chain

$9,999.00

Luru Authentic 15-Note Steel Tongue Drum - Professional Grade for Beginners, Adults, and Children

Luru Authentic 15-Note Steel Tongue Drum - Professional Grade for Beginners, Adults, and Children

$500.00

MOOCAT [Postage Stamp Stub] Hand-Drawn Blank Irregular Wood Pulp Fine-Texture Paper for Cyanotype, OC Signing, and Collage

MOOCAT [Postage Stamp Stub] Hand-Drawn Blank Irregular Wood Pulp Fine-Texture Paper for Cyanotype, OC Signing, and Collage

$9.90

Used Car Tires - Sizes 155/165/175/185/195/205/215 for 13/14/15/16 inch Rims

Used Car Tires - Sizes 155/165/175/185/195/205/215 for 13/14/15/16 inch Rims

$140.00

Pin Puller Extractor Mechanical Repair Tool Bearing Puller and Locating Pin Extractor

Pin Puller Extractor Mechanical Repair Tool Bearing Puller and Locating Pin Extractor

$76.50

Water Brush Pen Set with Large Capacity - Essential Tools for Beginners Using Gouache, Solid Watercolor Paints, and Line Drawing; Perfect for Art Students

Water Brush Pen Set with Large Capacity - Essential Tools for Beginners Using Gouache, Solid Watercolor Paints, and Line Drawing; Perfect for Art Students

$32.00

C9335 Automotive Brake Disc Lathe – Resurfacing, Boring, Grinding & Polishing Machine

C9335 Automotive Brake Disc Lathe – Resurfacing, Boring, Grinding & Polishing Machine

$16,005.00

Jaguar Tire Lug Nuts Compatible with XE/XF/XJL/F-TYPE/F-PACE - Wheel Hub Screw Caps for Modification

Jaguar Tire Lug Nuts Compatible with XE/XF/XJL/F-TYPE/F-PACE - Wheel Hub Screw Caps for Modification

$118.00

Three-Hook Tire Stone Removal Tool, Wheel Groove Cleaner for Removing Stones from Vehicle Tires

Three-Hook Tire Stone Removal Tool, Wheel Groove Cleaner for Removing Stones from Vehicle Tires

$4.80

Pad Printer Accessories: 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Assembly

Pad Printer Accessories: 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Assembly

$5.40

3M Industrial Scouring Pad 7447C, Metal Rust Removal, Stainless Steel Brushing and Polishing Cloth

3M Industrial Scouring Pad 7447C, Metal Rust Removal, Stainless Steel Brushing and Polishing Cloth

$4.00

Qinghe Blazing Rose Series

Qinghe Blazing Rose Series

$1,580.00

Cheddar Cheese Production Line, Front-End Processing and Deep Processing Machinery, Mozzarella Cheese Equipment

Cheddar Cheese Production Line, Front-End Processing and Deep Processing Machinery, Mozzarella Cheese Equipment

$25,480.00

MGQ Konjac Noodle Bubble Cleaning Machine, Fully Automatic Soaking and Lifting Washer

MGQ Konjac Noodle Bubble Cleaning Machine, Fully Automatic Soaking and Lifting Washer

$17,555.40

Industrial Large Meat Grinder Fresh Meat Mince Chopper Fruit Vegetable Crusher Meat Grinding and Mixing Integrated Meat Filling Mixer

Industrial Large Meat Grinder Fresh Meat Mince Chopper Fruit Vegetable Crusher Meat Grinding and Mixing Integrated Meat Filling Mixer

$32,030.00

Zhuolide D-302 UV Glue - Invisible Adhesive for Transparent Glass, Metal, Coffee Tables, and Crystal Glass, 250g Large Capacity

Zhuolide D-302 UV Glue - Invisible Adhesive for Transparent Glass, Metal, Coffee Tables, and Crystal Glass, 250g Large Capacity

$130.00

Hell Training Rock Guitar by Shinichi Kobayashi: Electric Guitar Tutorial for Speed Playing

Hell Training Rock Guitar by Shinichi Kobayashi: Electric Guitar Tutorial for Speed Playing

$106.00

[Buy One Get One Free] Natural Agarwood, Sandalwood, and Cypress Incense Powder Set with Electric Burner

[Buy One Get One Free] Natural Agarwood, Sandalwood, and Cypress Incense Powder Set with Electric Burner

$8.42