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. ›Motors & Motion
  4. ›Solenoids and Linear Actuators

Component guide · Beginner · 3 min read

Solenoids and Linear Actuators

How They Work and How to Drive Them

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerTypes you will meetDriving a solenoid from Arduino or ESP32Heat and duty cycleDriving a linear actuatorTry itCommon mistakesFAQsParts and next steps
Short answer

A solenoid is a coil that pulls an iron plunger in when powered, giving a short, fast push or pull. A linear actuator uses a motor and lead screw to push a rod much further with more force, slowly. Both draw too much current for a microcontroller pin: switch a solenoid with a logic-level MOSFET and flyback diode, and reverse an actuator with a relay pair or H-bridge.

Key specs at a glance

Solenoid stroke
About 3 to 20 mm
Solenoid current
Often 0.3 to 2 A at 12 V; check coil resistance
Duty cycle
Many solenoids are rated for short pulses, not continuous on
Linear actuator stroke
50 to 300 mm and more
Actuator force
Hundreds to thousands of newtons; speed a few to tens of mm/s
Driver
MOSFET + flyback diode (solenoid); H-bridge or 2 relays (actuator)
!Safety: High current: wires and parts get hot

This part can carry many amps. Use wire thick enough for the current, put a fuse close to the battery, check that connectors are rated for the load and give drivers and motors room to cool. A short at these currents melts wires in seconds.

01

Types you will meet

DeviceWhat it doesTypical use
Push-pull solenoidPlunger moves when powered; spring returns itStrikers, small latches, pinball, door chimes
Solenoid lockLatch retracts when poweredCabinet and door locks (fail-secure)
Solenoid valveOpens or closes a water or air pathIrrigation, coffee machines, water tanks
Lifting electromagnetHolds iron when poweredMagnetic holders, sorting, door holders
Electric linear actuatorMotor and screw extend and retract a rodHatches, TV lifts, adjustable desks, solar trackers
Push-pull solenoid
What it does:
Plunger moves when powered; spring returns it
Typical use:
Strikers, small latches, pinball, door chimes
Solenoid lock
What it does:
Latch retracts when powered
Typical use:
Cabinet and door locks (fail-secure)
Solenoid valve
What it does:
Opens or closes a water or air path
Typical use:
Irrigation, coffee machines, water tanks
Lifting electromagnet
What it does:
Holds iron when powered
Typical use:
Magnetic holders, sorting, door holders
Electric linear actuator
What it does:
Motor and screw extend and retract a rod
Typical use:
Hatches, TV lifts, adjustable desks, solar trackers
02

Driving a solenoid from Arduino or ESP32

Use a logic-level N-channel MOSFET (for example IRLZ44N) as a low-side switch: solenoid between +12 V and the drain, source to ground, gate to the microcontroller pin through a 100 to 220 Ω resistor, with a 10 kΩ pull-down from gate to ground. Put a flyback diode (1N4007 or a faster 1N5819) across the solenoid, cathode to +12 V. Without it, the voltage spike when the coil switches off can destroy the MOSFET. A relay module also works for slow on/off control. See transistors and MOSFETs.

03

Heat and duty cycle

A solenoid draws its full current the whole time it is on, and most small ones are designed for short pulses. Holding one on for minutes can overheat the coil. If it must stay on, choose a continuous-duty solenoid, or pulse it fully on for 100 to 200 ms and then reduce power with PWM (a 'hit and hold' drive). Solenoid locks and valves sold for continuous use are labelled as such; check the datasheet.

04

Driving a linear actuator

A typical 12 V linear actuator is a DC motor with two wires: reverse the polarity to reverse direction. Use an H-bridge sized for its current (an actuator may draw 2 to 5 A under load, so a BTS7960 or Cytron driver suits better than an L298N), or a pair of relays wired as a reversing circuit. Most actuators have built-in limit switches that stop the motor at each end. For position control, choose an actuator with a potentiometer or Hall feedback output.

05

Try it: Ohm's law calculator

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

06

Common mistakes to avoid

  • !Driving a solenoid straight from a GPIO pin.
  • !Leaving out the flyback diode.
  • !Holding a pulse-rated solenoid on for minutes.
  • !Using a power supply too small for the inrush current.
  • !Picking an L298N for a 5 A actuator.
07

Frequently asked questions

How do I control a 12 V solenoid with Arduino?

Use a logic-level MOSFET or a relay module with a separate 12 V supply, shared ground and a flyback diode across the solenoid.

Why does my solenoid get hot?

It draws full current while on. Many small solenoids are rated for short pulses only; use hit-and-hold PWM or a continuous-duty model.

What is the difference between a solenoid and a linear actuator?

A solenoid gives a short, fast stroke from a magnetic coil. A linear actuator uses a motor and screw for a long, slow, powerful stroke.

How do I reverse a linear actuator?

Reverse the polarity of its two wires, using an H-bridge motor driver or two relays wired as a reversing circuit.

Is a solenoid lock fail-safe or fail-secure?

Most cheap cabinet solenoid locks are fail-secure: they stay locked without power and unlock while powered. Check before using one on an exit door.

Parts for this guide

  • Push-Pull Solenoid
    ₹399View
  • 12V Electric Solenoid Door / Cabinet Lock
    ₹367View
  • Electric Linear Actuator 12V
    ₹3,780View
  • Power MOSFET: IRFZ44N, IRF540N, IRLZ44N, STP55NF06, 2N7000, BS170 and More (TO-220 / TO-92)
    ₹40View
Shop Linear Actuators & SolenoidsShop DC Motor Drivers

Calculators

Ohm's law calculatorPower dissipation calculator

Terms in this guide

Flyback diodeA diode placed across a coil (relay, motor, solenoid) to absorb the voltage spike when current is switched off.MOSFETMetal-oxide-semiconductor field-effect transistor, controlled by gate voltage. Efficient for switching large currents.Logic-level MOSFETA MOSFET that turns fully on with a gate voltage of 4.5 V or less, so a microcontroller can drive it.Low-side switchA switch placed between the load and ground; the easiest way to switch loads with NPN transistors and N-channel MOSFETs.H-bridgeA circuit of four switches that can drive a motor in both directions.Duty cycleThe percentage of time a PWM signal is high. 50% duty is on half the time.RelayAn electrically operated switch: a coil moves contacts that switch a separate circuit.

Projects that use it

Put this into practice: 9 step-by-step builds in our project library use parts from this guide.

Intermediate · 2 hoursLeak-triggered water shut-off valveView projectIntermediate · 2–3 hoursHoney jar filling scaleView projectIntermediate · 2–3 hoursTouchless water tap for washbasinsView project
Browse all 9 projects

Keep learning

How-toIntermediateTransistors and MOSFETs as SwitchesA transistor lets a small microcontroller signal switch a much larger current.4 min read · Semiconductors & ICsComponent guideBeginnerRelay ModulesA relay module is an electrically controlled switch that lets a microcontroller turn a separate circuit on or off, such as a 12 V pump or a mains lamp.4 min read · Switches, Relays & InputComparisonBeginnerMotor Drivers ExplainedA motor driver lets a low-power microcontroller control the speed and direction of motors using an H-bridge.4 min read · Motors & MotionHow-toBeginnerMini Water Pumps for Arduino ProjectsA mini submersible pump is a small DC motor that pushes water when it sits underwater.3 min read · Motors & Motion

Sources

  • Solenoid and actuator manufacturer datasheets
  • Infineon IRLZ44N datasheet
  • Application notes on inductive load switching

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

On this page
Short answerTypes you will meetDriving a solenoid from Arduino or ESP32Heat and duty cycleDriving a linear actuatorTry 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 guide4 items · ₹4,586

Push-Pull Solenoid · 12V Electric Solenoid Door / Cabinet Lock · Electric Linear Actuator 12V · Power MOSFET: IRFZ44N, IRF540N, IRLZ44N, STP55NF06, 2N7000, BS170 and More (TO-220 / TO-92)

Ask the Community

Ask a question