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. ›Semiconductors & ICs
  4. ›Op-Amps for Beginners

Component guide · Intermediate · 4 min read

Op-Amps for Beginners

LM358, LM741 and LM324 Circuits

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerWhat an op-amp doesLM358 vs LM741 vs LM324 vs rail-to-rail typesThree circuits you will actually useSingle-supply gotchasOp-amp as a comparator (and why LM393 is better)Reading an amplified sensor with ArduinoTry itCommon mistakesFAQsParts and next steps
Short answer

An operational amplifier (op-amp) amplifies the voltage difference between its two inputs by a huge amount; feedback resistors turn that into a precise, useful gain. The LM358 (dual) and LM324 (quad) work from a single 3 to 32 V supply and suit Arduino projects; the LM741 needs a dual supply and is best left to textbooks. A non-inverting amplifier's gain is 1 + Rf / Rg.

Key specs at a glance

LM358
Dual, single supply 3 to 32 V, output swings to about VCC - 1.5 V
LM324
Quad version of the LM358
LM741
Single, dual supply ±5 to ±18 V, output to about ±(V - 2)
MCP6002 / TLV2462
Rail-to-rail, 1.8 to 5.5 V: best for 3.3 V boards
Non-inverting gain
1 + Rf / Rg
Inverting gain
-Rf / Rin
Pinout (DIP-8, LM358)
1 out A, 2 -in A, 3 +in A, 4 GND, 5 +in B, 6 -in B, 7 out B, 8 VCC
01

What an op-amp does

The output tries to make the two inputs equal by driving in whichever direction closes the gap, limited only by the supply rails. With no feedback the gain is over 100,000, so the smallest difference slams the output to a rail: that is a comparator. With a resistor from the output back to the inverting input, the op-amp settles at a gain you choose. That one idea covers amplifiers, buffers, filters, oscillators and sensor front-ends.

02

LM358 vs LM741 vs LM324 vs rail-to-rail types

Op-ampChannelsSupplyOutput swingChoose it for
LM35823 to 32 V single0 to VCC - 1.5 VGeneral Arduino projects on 5 to 12 V
LM32443 to 32 V single0 to VCC - 1.5 VSeveral channels on one chip
LM7411±5 to ±18 V dualAbout ±(supply - 2 V)Textbook circuits with a split supply
MCP6002 / MCP60042 / 41.8 to 6 V singleRail to rail3.3 V and 5 V sensor circuits, ESP32
TL072 / TL0822±5 to ±18 V dualNot rail to railAudio, low noise
LM393 / LM3392 / 4 comparators2 to 36 VOpen-collectorThreshold detection (not an amplifier)
LM358
Channels:
2
Supply:
3 to 32 V single
Output swing:
0 to VCC - 1.5 V
Choose it for:
General Arduino projects on 5 to 12 V
LM324
Channels:
4
Supply:
3 to 32 V single
Output swing:
0 to VCC - 1.5 V
Choose it for:
Several channels on one chip
LM741
Channels:
1
Supply:
±5 to ±18 V dual
Output swing:
About ±(supply - 2 V)
Choose it for:
Textbook circuits with a split supply
MCP6002 / MCP6004
Channels:
2 / 4
Supply:
1.8 to 6 V single
Output swing:
Rail to rail
Choose it for:
3.3 V and 5 V sensor circuits, ESP32
TL072 / TL082
Channels:
2
Supply:
±5 to ±18 V dual
Output swing:
Not rail to rail
Choose it for:
Audio, low noise
LM393 / LM339
Channels:
2 / 4 comparators
Supply:
2 to 36 V
Output swing:
Open-collector
Choose it for:
Threshold detection (not an amplifier)
03

Three circuits you will actually use

1. Voltage follower (buffer). Output to -in, signal to +in. Gain = 1. Use it so a high-impedance sensor or divider can drive an ADC without loading.

2. Non-inverting amplifier. Signal to +in, Rf from output to -in, Rg from -in to ground. Gain = 1 + Rf / Rg. With Rf = 100 kΩ and Rg = 10 kΩ, gain = 11: a 0.2 V thermocouple-like signal becomes 2.2 V for the ADC.

3. Inverting amplifier. Signal through Rin to -in, Rf from output to -in, +in to a mid-supply reference. Gain = -Rf / Rin. On a single supply, bias +in at VCC / 2 with two equal resistors so the output has room to swing both ways.

04

Single-supply gotchas

  • ✓An LM358 on 5 V can output only about 0 to 3.5 V. Signals above that clip. Use a rail-to-rail op-amp (MCP6002) for 3.3 V and 5 V boards.
  • ✓Inputs must stay within the common-mode range: for the LM358 from 0 V to VCC - 1.5 V.
  • ✓Add a 100 nF decoupling capacitor at the supply pin.
  • ✓Unused op-amps in a dual or quad package should be wired as followers with +in at mid-supply, not left floating.
05

Op-amp as a comparator (and why LM393 is better)

Without feedback, an LM358 compares +in with -in and outputs high or low: handy for a light or temperature threshold switch with a potentiometer setting the reference. Add a 1 MΩ resistor from output to +in for hysteresis so the output does not chatter. For speed and clean logic levels, a dedicated comparator such as the LM393 (open-collector output with a pull-up) is better; that is the chip on most sensor modules.

06

Reading an amplified sensor with Arduino

The amplifier's output goes straight to an analog pin. Keep the gain such that the maximum signal stays below the ADC reference (5 V on an Uno, 3.3 V on an ESP32), and average several readings to reduce noise.

07

Try it: Op-amp gain calculator

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

08

Common mistakes to avoid

  • !Using an LM741 on a single 5 V supply and getting no output swing.
  • !Expecting an LM358 to output 5 V on a 5 V supply.
  • !Running an op-amp without decoupling, which makes it oscillate.
  • !Leaving unused op-amp inputs floating.
  • !Choosing feedback resistors below 1 kΩ (loads the output) or above 1 MΩ (noise and bias errors).
09

Frequently asked questions

What is an op-amp used for?

Amplifying small sensor signals, buffering high-impedance sources, filtering, comparing voltages, generating waveforms and driving ADC inputs cleanly.

Can I use an LM358 with 3.3 V?

It works down to 3 V, but the output only reaches about 1.8 V on a 3.3 V supply. A rail-to-rail op-amp such as the MCP6002 is the better choice for 3.3 V boards.

What is the gain formula for a non-inverting amplifier?

Gain = 1 + Rf / Rg, where Rf is the feedback resistor from output to the inverting input and Rg goes from the inverting input to ground.

LM358 vs LM741: which should I buy?

The LM358. It runs from a single supply, has two op-amps and works in typical 5 V and 12 V projects. The LM741 needs a split supply and offers no advantage today.

What is the difference between an op-amp and a comparator?

A comparator is an op-amp optimised for switching its output fast between two levels, usually with an open-collector output. An op-amp is built for linear operation with feedback. Either can compare, but comparators do it better.

Parts for this guide

  • LM358 Dual Op-Amp IC (DIP-8)
    ₹48View
  • LM741 Op-Amp IC (DIP-8)
    ₹60View
  • LM324 Quad Op-Amp IC (DIP-14)
    ₹45View
  • Comparator IC (LM339 / LM393)
    ₹8View
Shop Op-Amps & ComparatorsShop Resistors

Calculators

Op-amp gain calculatorRC filter calculator

Terms in this guide

Op-ampOperational amplifier: an IC with two inputs and one output that amplifies the difference between them, used for sensor amplifiers, filters, buffers and comparators.GainHow much an amplifier multiplies its input. A gain of 10 turns a 0.1 V signal into 1 V. For an op-amp it is set by two resistors.FeedbackRouting part of an amplifier's output back to its input. Negative feedback through resistors sets an op-amp's gain precisely.Rail-to-railAn op-amp whose output can swing almost all the way to both supply voltages. Older parts such as the LM741 and LM358 cannot reach the positive rail.ComparatorA circuit that compares two voltages and outputs HIGH or LOW depending on which is larger. Sensor modules use one (often an LM393) to produce their digital output.HysteresisA deliberate gap between the switch-on and switch-off thresholds of a comparator or thermostat, so a noisy signal does not make the output chatter.

Projects that use it

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

Beginner · 45 minutesDark detector with an LM358 comparatorView projectBeginner · 45 minutesLM358 comparator with two knobsView project
Browse all 2 projects

Keep learning

Component guideBeginnerResistors ExplainedWhat resistors do, how to read 4- and 5-band colour codes and SMD codes, Ohm's law, power ratings, standard values and uses: LEDs, pull-ups, dividers.4 min read · Passive ComponentsComponent guideBeginnerCapacitors ExplainedA capacitor stores electric charge and releases it quickly, which lets it smooth power supplies, filter noise and set timing.3 min read · Passive ComponentsComponent guideBeginnerPotentiometers and TrimmersA potentiometer is a three-terminal variable resistor: the outer pins connect across the full resistance and the middle pin (wiper) taps a point you set with the knob.3 min read · Passive ComponentsComponent guideBeginner555 Timer ICThe 555 timer is an 8-pin IC that creates time delays and oscillations with just a resistor and capacitor.3 min read · Semiconductors & ICsComponent guideBeginnerLDR Light SensorsAn LDR (light-dependent resistor or photoresistor) has high resistance in the dark, about 1 MΩ, and low resistance in bright light, under 1 kΩ.3 min read · Sensors

Sources

  • LM358 datasheet (Texas Instruments)
  • LM741 datasheet (Texas Instruments)
  • MCP6001/2/4 datasheet (Microchip)
  • Horowitz and Hill, The Art of Electronics, chapter 4

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

On this page
Short answerWhat an op-amp doesLM358 vs LM741 vs LM324 vs rail-to-rail typesThree circuits you will actually useSingle-supply gotchasOp-amp as a comparator (and why LM393 is better)Reading an amplified sensor with ArduinoTry 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 · ₹161

LM358 Dual Op-Amp IC (DIP-8) · LM741 Op-Amp IC (DIP-8) · LM324 Quad Op-Amp IC (DIP-14) · Comparator IC (LM339 / LM393)

Ask the Community

Ask a question