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)
CANDLE.LAB | Silicone Border Mat for DIY Scented Candles and Soap Making Tray Mold

CANDLE.LAB | Silicone Border Mat for DIY Scented Candles and Soap Making Tray Mold

$32.00

Shiji Runde Coal Shed Mine Dust Removal Explosion-Proof Anti-Freezing Fog Cannon Port Dust Suppression 80m Ultra-Fine Industrial Fog Machine

Shiji Runde Coal Shed Mine Dust Removal Explosion-Proof Anti-Freezing Fog Cannon Port Dust Suppression 80m Ultra-Fine Industrial Fog Machine

$4,180.00

Mobile Retractable Spray Booth for Furniture - Foldable Track-Mounted Painting Room

Mobile Retractable Spray Booth for Furniture - Foldable Track-Mounted Painting Room

$6,240.00

Long Handle Bristle Paint Brush - Hog Hair Brush for Oil Painting, Acrylic Wall Art, and Children's Drawing

Long Handle Bristle Paint Brush - Hog Hair Brush for Oil Painting, Acrylic Wall Art, and Children's Drawing

$1.80

Electrostatic Powder Coating Equipment and Electronic Powder Dispenser Supply

Electrostatic Powder Coating Equipment and Electronic Powder Dispenser Supply

$17,250.00

DIY Toast-Shaped Silicone Mold for Handmade Soap - Square Soap Making Mold

DIY Toast-Shaped Silicone Mold for Handmade Soap - Square Soap Making Mold

$105.00

Kindergarten Sponge Stamp Set – Mushroom-Head Circular Printing Tools for Kids' DIY Art and Painting Kits

Kindergarten Sponge Stamp Set – Mushroom-Head Circular Printing Tools for Kids' DIY Art and Painting Kits

$3.50

Heavy-Duty Lifting Chain Set – Manganese Steel Chains with Hooks, Rings, and Hoist Accessories

Heavy-Duty Lifting Chain Set – Manganese Steel Chains with Hooks, Rings, and Hoist Accessories

$198.00

Car Tire Stone Removal Tool, Multi-Function Groove Hook for Portable Tire Picking and Cleaning

Car Tire Stone Removal Tool, Multi-Function Groove Hook for Portable Tire Picking and Cleaning

$11.50

m Dogs Strap Auto Retractable Dual Dog Leash With

m Dogs Strap Auto Retractable Dual Dog Leash With

$199.92

Traditional Wooden Sheepskin Rattle Toy – Safe for Teething Newborns, Handcrafted Baby Bell Shaker

Traditional Wooden Sheepskin Rattle Toy – Safe for Teething Newborns, Handcrafted Baby Bell Shaker

$17.80

Soilless Cultivation Equipment Plant Factory Display Rooftop Hydroponic Pipe System for Leafy Vegetables and Fruits, Type A Planting Rack

Soilless Cultivation Equipment Plant Factory Display Rooftop Hydroponic Pipe System for Leafy Vegetables and Fruits, Type A Planting Rack

$2,620.16

Premium Ceramic Tea Canister and Gift Box Set - Empty Packaging for Black Tea, Pu'er, White Tea, and Biluochun

Premium Ceramic Tea Canister and Gift Box Set - Empty Packaging for Black Tea, Pu'er, White Tea, and Biluochun

$121.00

Posture-Correcting Hole-Grip Pencils for Grade 1 - Triangular Barrel, Break-Resistant, Non-Toxic HB for Daily Writing and 2B for Exams

Posture-Correcting Hole-Grip Pencils for Grade 1 - Triangular Barrel, Break-Resistant, Non-Toxic HB for Daily Writing and 2B for Exams

$3.02

Genuine OEM AC Blower Motor Heater Fan for Buick Excelle GT, Cavalier, and Monza

Genuine OEM AC Blower Motor Heater Fan for Buick Excelle GT, Cavalier, and Monza

$255.00

TA1 TA2 Titanium Capillary Tubes - Small Diameter Titanium Pipes - GR5 Titanium Alloy Tubes

TA1 TA2 Titanium Capillary Tubes - Small Diameter Titanium Pipes - GR5 Titanium Alloy Tubes

$240.00

Industrial Spray Painting Wipe Cloth Auto Bake Finish Film Application Degreasing Cloth Non-Woven Absorbent Paper Lint-Free Paper Electrostatic Dust Removal Paper

Industrial Spray Painting Wipe Cloth Auto Bake Finish Film Application Degreasing Cloth Non-Woven Absorbent Paper Lint-Free Paper Electrostatic Dust Removal Paper

$75.66

US Standard Buttress Thread Inserts 22ER 16ER 11NR 16 10 12 8ABUT Internal 7 External 45 Degree

US Standard Buttress Thread Inserts 22ER 16ER 11NR 16 10 12 8ABUT Internal 7 External 45 Degree

$43.20

Coating Workshop Cleaning Rags GAE Industry White Scrap Cloth Nylon Machine Cloth Blocks Industrial Glue Removal Furniture Cleaning

Coating Workshop Cleaning Rags GAE Industry White Scrap Cloth Nylon Machine Cloth Blocks Industrial Glue Removal Furniture Cleaning

$96.31

Natural 8A Yellow Tiger Eye Loose Beads - Round Cat's Eye Bracelet for DIY Jewelry Making

Natural 8A Yellow Tiger Eye Loose Beads - Round Cat's Eye Bracelet for DIY Jewelry Making

$17.28

Paper Blending Stumps Art Set for Highlighting, Sketching, and Smudging - Professional Drawing Tools for Artists and Beginners with Rice Paper Details and Oil Pastels

Paper Blending Stumps Art Set for Highlighting, Sketching, and Smudging - Professional Drawing Tools for Artists and Beginners with Rice Paper Details and Oil Pastels

$6.80

Rubber Speed Bump 1000x350x40mm Herringbone Pattern

Rubber Speed Bump 1000x350x40mm Herringbone Pattern

$96.89

Xian Kan Yun Shu [Cloud Lark] Elegant Brush Washer, Hand-Painted Orchid and Sparrow Design under Glaze, Ceramic Water Pot

Xian Kan Yun Shu [Cloud Lark] Elegant Brush Washer, Hand-Painted Orchid and Sparrow Design under Glaze, Ceramic Water Pot

$21.20

Cable Organizer Hook-and-Loop Straps for Data/Charging Cables, Laptop Power, Mouse, Headphones, and Under-Desk Network Wiring

Cable Organizer Hook-and-Loop Straps for Data/Charging Cables, Laptop Power, Mouse, Headphones, and Under-Desk Network Wiring

$7.48

Power Strip Organizer Box, Desktop Socket Concealment Case for Charging Cables and Power Cords, Hidden Storage Shelf

Power Strip Organizer Box, Desktop Socket Concealment Case for Charging Cables and Power Cords, Hidden Storage Shelf

$21.93

Automatic Dairy Beverage Filling Machine - Fully Automatic Equipment for Milk, Soy Milk, and Drink Bottling

Automatic Dairy Beverage Filling Machine - Fully Automatic Equipment for Milk, Soy Milk, and Drink Bottling

$1,316.00

Compact Invisible Retainer Case - Leak-Proof Sealed Storage Box for Children's Orthodontic Aligners

Compact Invisible Retainer Case - Leak-Proof Sealed Storage Box for Children's Orthodontic Aligners

$12.50

07521 Scouring Pad Roll for Woodworking, Furniture, Paint Sanding, Metal Deburring, and Brushed Finish - Purple 600 Grit

07521 Scouring Pad Roll for Woodworking, Furniture, Paint Sanding, Metal Deburring, and Brushed Finish - Purple 600 Grit

$81.00

Shiya Insulated Display Cabinet, Constant Temperature Warmer for Commercial Use, Crispy Pork Belly, Roast Duck, Roast Chicken, and Cooked Food

Shiya Insulated Display Cabinet, Constant Temperature Warmer for Commercial Use, Crispy Pork Belly, Roast Duck, Roast Chicken, and Cooked Food

$388.00

Wooden Soap Trimmer with Drawer, Soap Planer and Edge Shaper, Free Shipping

Wooden Soap Trimmer with Drawer, Soap Planer and Edge Shaper, Free Shipping

$32.00