Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

How to create a constant current source using LM338

By Ayush Jain October 3, 2023

Voltage and current sources are two fundamental types of electrical sources used in electronic circuits. A voltage source, such as a battery, is commonly used in many devices. It’s a two-terminal device that maintains a constant voltage across its terminals, regardless of the current flowing through the source.

A current source is typically less discussed and more difficult and costly to design. It’s also a two-terminal device, but it maintains a constant current through its terminals, regardless of the voltage across the source. This means it’s used to ensure a steady current even if the load fluctuates.

In this experiment, we’ll design a constant current source application using a linear buck regulator.

Specifications

  • The LM338 linear buck regulator
  • Input voltage range – 1.2 to 32V
  • Maximum output current – 5A

Block diagram 

Block diagram of constant current source using a linear buck convertor.

Circuit diagram

Circuit diagram of a constant current source using LM338.

Principle
When using any linear regulator as a current source, the circuit works on the principle of a feedback loop. 

The regulator consists of a feedback pin (the adjust pin) that feeds the output back to the regulator and maintains a fixed voltage at the feedback network. This network is a resistor, which determines the output current at the output. 

Circuit design
Here are the steps for the circuit design.

1. Input source – 24V DC
2. Linear buck converter – LM338 IC 

Features of the LM338 

  • Overload protection – in case of overloading, the device will reduce its output current until the overload is removed
  • Thermal regulation
  • Output short-circuit protection

3. Output current set – the output current is based on the feedback network, which is the resistor

The equation for calculating the feedback resistor…
By applying famous Ohm’s law, we get:.  Vref = voltage reference of the regulator

LM338 regulator, Vref =1.25V

Desired constant output current, Iout  = 4A

Feedback resistor, Rfb  = Vref / Iout

Rfb = 1.25/5

Rfb = 0.33E

4. Feedback resistor power rating

The equation for calculating power rating of the resistor…

PR = I2*Rfb

PR = (4*4)*0.33

PR = 5.28W (minimum)

5. Filtering – the capacitor, which is at the input, grounds all of the ripples and spikes from the source. To reduce the total ESR, we can connect a ceramic capacitor along with an electrolyte.

6. Cooling system – the heat sink must be mounted with the regulator because we’re drawing a large amount of current. This will produce a lot of heat at the IC surface and can ignite it. So, it’s important to use a cooling fan or a heat sink to reduce its temperature.

How the circuit works
In our constant current source, the feedback loop maintains a fixed output voltage across the feedback resistor. As per Ohm’s law, with a fixed value of voltage and a resistor, a constant amount of current will flow. 

This will generate a constant current at the output, irrespective of the load.

Output current regulation
All current sources provide a regulated current but only for a specific load range. 

It’s possible to calculate the load limit for the linear regulator by using the following equation… 

Vout = 12 – 3

Vout = 9V…………………………Eq.2

VR = 5*4.7

VR = 23.5V

The regulator is unable to provide 23.5V at the output. So, we must first calculate the output load limit using the equation below…

The maximum value of resistive load, RL = 2.25E

 

Testing results
Initially, we designed the current source for 5A since the IC is rated for 5A output current. However, the IC could not maintain a constant 5A output current and began dropping its value even with a heat sink and cooling fan. 

This might be because of the IC’s internal thermal regulation, which tries to maintain its temperature and drops the current if in a high-power dissipation state. 

So, instead, we tried the circuit using a 3.7A current, and it worked perfectly with the heat sink. 

Observation

The output current begins stabilizing at a load of 1 Ohm. The difference in the output current is due to the resistor’s tolerance values.

Circuit limitations

  1. Input source – A high-voltage input source is needed to increase the maximum load limit
  2. Cost – A high power rating feedback resistor increases the cost
  3. Efficiency – There’s less efficiency because of high-power dissipation across the feedback resistor

Thermal management
For extra heat dissipation, heat is connected to the IC. It’s also possible to use a fan to disperse the hot air.

Applications

  1. Battery charging
  2. In transistor biasing
  3. Lighting systems
  4. Regulated supply

Precautions 

  1. Ensure the feedback resistor’s power rating is per the product requirements. 
  2. Always put a load under the limits of the current source. 
  3. A capacitor should be connected between the input pin and ground to regulate the DC input voltage. 
  4. The circuit’s capacitor must have a higher voltage rating than the input supply voltage. Otherwise, the capacitor will leak current due to the excess voltage at its plates and burst.
  5. Ensure all the capacitors are discharged before working on a DC power supply.
  6. Do not give a higher voltage at input than its operating input voltage range.
  7. Always connect a heat sink or a cooling fan for heat dissipation around the IC.

Video

https://www.engineersgarage.com/wp-content/uploads/2023/10/Video.mp4

 

 

You may also like:


  • How to use a buck-boost converter to regulate a Li-ion…

  • How to use a boost converter with a Li-ion battery…

  • How to design a constant current source using a linear…

  • A guide to bipolar junction transistors

  • What are the types of drones and how are they…

Filed Under: Tutorials
Tagged With: buckconverter, constantcurrent, current, currentsource, lm338, powermanagement, voltage
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Exporting sensor readings as data...
  • problem connecting to my xilinx device VIA global IP
  • Output Stage Microwave Device Selection
  • lumped port or wave port in ansys hfss for my on-chip spiral inductor ??
  • NXP library issue in awr

RSS Electro-Tech-Online.com Discussions

  • What is correct names for GOOD user friendly circuit drawing program?
  • Curved lines in PCB design
  • using a RTC in SF basic
  • Is AI making embedded software developers more productive?
  • Why can't I breadboard this oscillator?

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • GigaDevice launches GD32C231 MCU series with 48MHz Cortex-M23 core and 64KB Flash
  • Advanced Energy releases 425 W CF-rated medical power supply in 3.5 x 6 x 1.5-inch format”
  • LEM combines shunt and Hall effect sensing in 2000 A current measurement unit
  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe