Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Switches, Relays & Input
  4. ›Limit Switches and Micro Switches

Component guide · Beginner · 3 min read

Limit Switches and Micro Switches

Wiring and Uses

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerWiring to a microcontrollerTypical usesSwitching loads directlyTry itCommon mistakesFAQsParts and next steps
Short answer

A micro switch (snap-action switch) changes state with a small, precise movement of its lever. Limit switches use one to detect when a moving part reaches the end of travel, such as a 3D printer axis or a gate. It has three terminals: common (COM), normally open (NO) and normally closed (NC). Wiring endstops as normally closed is safer, because a broken wire reads as triggered and stops the machine.

Key specs at a glance

Terminals
COM, NO (closes when pressed), NC (opens when pressed)
Actuators
Plain button, lever, roller lever
Contact rating
Often 3 to 5 A at 125 or 250 VAC for full-size; less for miniature
Travel
Small: under 1 mm operating travel on many
Endstop modules
Switch plus LED, pull-up and 3-pin connector for printer boards
Alternatives
Hall sensors and optical endstops for no-contact sensing
01

Wiring to a microcontroller

For a simple input, connect COM to GND and NO to a digital pin set to INPUT_PULLUP. The pin reads HIGH normally and LOW when the lever is pressed.

For endstops, use NC instead: COM to GND, NC to the pin with a pull-up. The pin reads LOW in normal operation and goes HIGH when pressed, and also goes HIGH if a wire breaks or a connector falls off, so the firmware stops the axis instead of crashing it. Most 3D printer and CNC firmware lets you invert the endstop logic to suit either wiring.

Mechanical contacts bounce for a few milliseconds; debounce in software or with a small capacitor (see push buttons).

02

Typical uses

  • ✓3D printer and CNC homing switches on each axis.
  • ✓Stopping a linear actuator or motorised slider at each end.
  • ✓Detecting a door or lid closed in a machine, as a safety interlock.
  • ✓Robot bumpers: a lever switch at the front tells the robot it has hit something.
  • ✓Counting objects on a conveyor.

Mount the switch so the moving part presses the lever without driving past its over-travel limit, and use the roller version where the part slides past.

03

Switching loads directly

A micro switch can cut power to a small DC motor directly at the end of travel, with a diode across it so the motor can still reverse away from the stop. Check the DC rating, which is much lower than the AC rating because DC arcs do not self-extinguish. For larger loads, let the switch signal a microcontroller or a relay instead.

04

Try it: RC time constant calculator

Change the values and the diagram and results update as you type.

05

Common mistakes to avoid

  • !Wiring endstops normally open, so a broken wire goes unnoticed.
  • !Using the AC contact rating for a DC motor load.
  • !Forgetting the pull-up resistor.
  • !Mounting so the actuator crushes the switch past its over-travel.
  • !Not debouncing, so one press counts several times.
06

Frequently asked questions

What is the difference between NO and NC?

NO (normally open) connects to COM only when pressed. NC (normally closed) is connected to COM until pressed.

Should endstops be wired NO or NC?

NC is safer: a broken wire looks like a triggered switch, so the machine stops rather than crashing.

Does a limit switch need a resistor?

It needs a pull-up or pull-down so the input is never floating. Microcontroller internal pull-ups are fine.

Can a micro switch switch mains?

Full-size micro switches are often rated for 250 VAC at a few amps, but mains wiring must be enclosed and done safely.

What is the difference between a limit switch and a micro switch?

A micro switch is the snap-action switch type; a limit switch is its job, often a micro switch with a lever or roller.

Parts for this guide

  • Tactile Push Button Switch
    ₹7View
  • SPDT Slide Switch 2.54mm (Pack of 5)
    ₹30View
  • Diodes (Pack of 10)
    ₹12View
Shop Push Buttons & TactileShop 3D Printer Spares

Calculators

RC time constant calculator

Terms in this guide

Normally closedA switch or relay contact that conducts until it is pressed or energised (NC), the opposite of normally open (NO).Pull-up resistorA resistor from a signal line to the supply that keeps the line high when nothing pulls it low.DebounceFiltering the rapid on-off bouncing of a mechanical switch so one press counts once.Floating inputAn input pin that is connected to nothing, so it picks up noise and reads random HIGH or LOW values. Fix it with a pull-up or pull-down resistor.

Projects that use it

Put this into practice: 1 step-by-step build in our project library uses parts from this guide.

Intermediate · 1 dayBuild a belt-driven linear axis on 2020 extrusion with a CNC shieldView project
Browse all 1 project

Keep learning

How-toBeginnerPush Buttons with ArduinoWire a push button between a digital pin and ground, set the pin to INPUT_PULLUP, and the pin reads LOW while pressed.3 min read · Switches, Relays & InputComponent guideBeginnerSolenoids and Linear ActuatorsA solenoid is a coil that pulls an iron plunger in when powered, giving a short, fast push or pull.3 min read · Motors & MotionComponent guideBeginnerHall Effect Sensors and Reed SwitchesA Hall effect sensor detects a magnetic field with no contact.3 min read · SensorsComponent guideIntermediateStepper Motors and DriversA stepper motor turns in precise fixed steps, so you can position it accurately without a sensor.4 min read · Motors & MotionConcept explainerBeginnerPull-Up and Pull-Down ResistorsA pull-up resistor connects an input pin to the supply so it reads HIGH when nothing drives it; a pull-down connects it to ground so it reads LOW.3 min read · Electronics Fundamentals

Sources

  • Omron SS and V series micro switch datasheets
  • Marlin firmware endstop configuration documentation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWiring to a microcontrollerTypical usesSwitching loads directlyTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide3 items · ₹49

Tactile Push Button Switch · SPDT Slide Switch 2.54mm (Pack of 5) · Diodes (Pack of 10)

Ask the Community

Ask a question