Guide

Voltage Regulators Explained: 7805, 7812, LM317, AMS1117, LM2596 and TL431

How linear and switching voltage regulators work and which to use: 78xx and 79xx fixed regulators, the adjustable LM317, the AMS1117 LDO for 3.3V, the LM2596 buck regulator and the TL431 reference.

2 min readBy the module.pk teamاردو میں پڑھیں ↓

Voltage Regulators Explained: 7805, 7812, LM317, AMS1117, LM2596 and TL431

Almost every circuit needs a steady supply voltage, even when its input wanders. A voltage regulator provides it. From the 7805 that turns 9 to 12V into a clean 5V for a microcontroller, to the AMS1117 that feeds 3.3V to an ESP32, regulators are some of the most used parts in electronics.

Types of voltage regulators

RegulatorTypeTypical use
7805, 7809, 7812, 7815Fixed positive linear5V, 9V, 12V and 15V rails in kits, chargers and TV boards
7905Fixed negative linearNegative rails for op amp and audio circuits
LM317 / LM337Adjustable linear, positive and negativeBench supplies and custom voltages from about 1.25V
AMS1117Low dropout (LDO)3.3V for ESP32, ESP8266 and SD cards
LM2596Switching buckEfficient step down at up to 3A
TL431Adjustable shunt referenceFeedback in SMPS with a PC817 optocoupler
The 7805 5V voltage regulator, the classic way to get a steady 5V supply.
The 7805 5V voltage regulator, the classic way to get a steady 5V supply.

Linear or switching?

A linear regulator like the 7805 or LM317 is simple and quiet but turns the extra voltage into heat: dropping 12V to 5V at 1A wastes 7W, so it needs a heatsink. A switching regulator like the LM2596 is far more efficient for big drops and high currents. For larger loads, see our guide to DC to DC buck and boost converters.

The LM317 adjustable regulator: two resistors set any output from about 1.25V upwards.
The LM317 adjustable regulator: two resistors set any output from about 1.25V upwards.

Tips for using regulators

  • Fit the input and output capacitors the datasheet asks for, or the regulator can oscillate.
  • Keep the input at least 2V above the output for 78xx types (an LDO needs less).
  • Check the pinout: 79xx negative regulators have a different pin order from 78xx.

Find voltage regulators fast with the part finder on module.pk

Our Voltage Regulators page opens with a part number finder. Type the number printed on the face of the part, such as 7805, and it shows that part and its equivalents, so you can still repair a board when the original number is hard to find. Ignore the logo and the date code: the part number is usually the longest line.

Below the finder, package tiles let you pick the body shape with one tap, and the filters narrow by component type (fixed, adjustable, LDO, switching, reference), package, mounting (through hole or SMD) and pack quantity. Every listing shows the maximum voltage and current, the pin count and known equivalents. Not sure what you have? Send a photo of the part on WhatsApp and we will find it or an equivalent.

Frequently asked questions

How do I get 3.3V for an ESP32?

Use an AMS1117 3.3V LDO regulator from a 5V supply.

Why does my 7805 get hot?

It burns off the difference between input and output voltage as heat. Lower the input voltage, add a heatsink or use a switching regulator.

اردو میں

وولٹیج ریگولیٹر کی پوری سمجھ: 7805، 7812، LM317، AMS1117، LM2596 اور TL431

تقریباً ہر سرکٹ کو برابر سپلائی وولٹیج چاہیے، چاہے ان پٹ اوپر نیچے ہو۔ وولٹیج ریگولیٹر یہی دیتا ہے۔ 9 سے 12V کو مائیکرو کنٹرولر کے لیے صاف 5V بنانے والے 7805 سے لے کر ESP32 کو 3.3V دینے والے AMS1117 تک، ریگولیٹر الیکٹرانکس کے سب سے زیادہ استعمال ہونے والے پارٹس میں ہیں۔

وولٹیج ریگولیٹر کی قسمیں

ریگولیٹرقسمعام استعمال
7805، 7809، 7812، 7815مقرر مثبت لینیئرکٹس، چارجر اور ٹی وی بورڈ میں 5V، 9V، 12V اور 15V
7905مقرر منفی لینیئراوپ ایمپ اور آڈیو سرکٹ کے لیے منفی وولٹیج
LM317 / LM337ایڈجسٹ ہونے والا لینیئر، مثبت اور منفیبینچ سپلائی اور تقریباً 1.25V سے اپنی مرضی کا وولٹیج
AMS1117لو ڈراپ آؤٹ (LDO)ESP32، ESP8266 اور SD کارڈ کے لیے 3.3V
LM2596سوئچنگ بک3A تک کم نقصان سے وولٹیج کم کرنا
TL431ایڈجسٹ ہونے والا شنٹ ریفرنسPC817 آپٹو کپلر کے ساتھ SMPS میں فیڈ بیک
7805 5V وولٹیج ریگولیٹر، برابر 5V سپلائی لینے کا کلاسک طریقہ۔
7805 5V وولٹیج ریگولیٹر، برابر 5V سپلائی لینے کا کلاسک طریقہ۔

لینیئر یا سوئچنگ؟

7805 یا LM317 جیسا لینیئر ریگولیٹر سادہ اور خاموش ہے مگر اضافی وولٹیج کو گرمی بنا دیتا ہے: 1A پر 12V سے 5V کرنے میں 7W ضائع ہوتے ہیں، اس لیے ہیٹ سنک چاہیے۔ LM2596 جیسا سوئچنگ ریگولیٹر زیادہ فرق اور زیادہ کرنٹ پر کہیں زیادہ کارآمد ہے۔ بڑے لوڈ کے لیے ہماری DC سے DC بک اور بوسٹ کنورٹر کی گائیڈ دیکھیں۔

LM317 ایڈجسٹ ہونے والا ریگولیٹر: دو رزسٹر سے تقریباً 1.25V سے اوپر کوئی بھی وولٹیج سیٹ کریں۔
LM317 ایڈجسٹ ہونے والا ریگولیٹر: دو رزسٹر سے تقریباً 1.25V سے اوپر کوئی بھی وولٹیج سیٹ کریں۔

ریگولیٹر استعمال کرنے کے مشورے

  • ڈیٹا شیٹ کے مطابق ان پٹ اور آؤٹ پٹ کپیسٹر لگائیں، ورنہ ریگولیٹر ڈول سکتا ہے۔
  • 78xx کے لیے ان پٹ آؤٹ پٹ سے کم از کم 2V زیادہ رکھیں (LDO کو کم چاہیے)۔
  • ٹانگوں کی ترتیب چیک کریں: 79xx منفی ریگولیٹر کی ترتیب 78xx سے الگ ہے۔

module.pk کے پارٹ فائنڈر سے وولٹیج ریگولیٹر جلدی ڈھونڈیں

ہمارے وولٹیج ریگولیٹر پیج کے شروع میں پارٹ نمبر فائنڈر ہے۔ پارٹ کے اوپر لکھا نمبر لکھیں، جیسے 7805، اور یہ وہ پارٹ اور اس کے متبادل دکھاتا ہے، تاکہ اصل نمبر نہ ملے تب بھی بورڈ ٹھیک ہو سکے۔ لوگو اور تاریخ کا کوڈ چھوڑ دیں: پارٹ نمبر عام طور پر سب سے لمبی لائن ہوتی ہے۔

فائنڈر کے نیچے پیکج کے ٹائل سے ایک ٹچ میں پارٹ کی شکل چنیں، اور فلٹر پارٹ کی قسم (مقرر، ایڈجسٹ، LDO، سوئچنگ، ریفرنس)، پیکج، لگانے کا طریقہ (تھرو ہول یا SMD) اور پیک میں تعداد سے لسٹ چھوٹی کرتے ہیں۔ ہر پارٹ پر زیادہ سے زیادہ وولٹیج اور کرنٹ، پنوں کی تعداد اور معلوم متبادل لکھے ہیں۔ پتا نہیں آپ کے پاس کیا ہے؟ پارٹ کی تصویر WhatsApp پر بھیجیں، ہم وہی یا اس کا متبادل ڈھونڈ دیں گے۔

اکثر پوچھے جانے والے سوال

ESP32 کے لیے 3.3V کیسے لوں؟

5V سپلائی سے AMS1117 3.3V LDO ریگولیٹر لگائیں۔

میرا 7805 گرم کیوں ہوتا ہے؟

یہ ان پٹ اور آؤٹ پٹ کا فرق گرمی بنا کر ضائع کرتا ہے۔ ان پٹ وولٹیج کم کریں، ہیٹ سنک لگائیں یا سوئچنگ ریگولیٹر لگائیں۔

Need one of these parts?

Send us the part number and we will tell you the price and stock, with delivery across Pakistan.

Ask for price

Keep reading