

The LM2596 Buck Converter is a step-down voltage regulator designed to efficiently convert a higher input voltage to a lower output voltage. It is widely used in power supply applications due to its high efficiency, compact size, and ease of use. This component is ideal for powering low-voltage devices from higher-voltage sources, such as batteries or unregulated power supplies.








The LM2596 Buck Converter is available in both fixed and adjustable output voltage versions. Below are the key technical details:
| Parameter | Value |
|---|---|
| Input Voltage Range | 4.5V to 40V |
| Output Voltage Range | 1.23V to 37V (adjustable version) |
| Output Current | Up to 3A |
| Efficiency | Up to 90% |
| Switching Frequency | 150 kHz |
| Operating Temperature Range | -40°C to +125°C |
The LM2596 is typically available in a 5-pin TO-220 package. Below is the pinout description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VIN | Input voltage (4.5V to 40V) |
| 2 | Output | Regulated output voltage |
| 3 | Ground (GND) | Common ground for input and output |
| 4 | Feedback | Voltage feedback for adjustable output version |
| 5 | ON/OFF | Enable/disable pin (optional, not always used) |
The LM2596 can be used to power an Arduino UNO from a higher voltage source (e.g., a 12V battery). Below is an example circuit and Arduino code to read a sensor powered by the LM2596.
#include <DHT.h>
// Define the DHT sensor pin and type
#define DHTPIN 2 // DHT sensor connected to digital pin 2
#define DHTTYPE DHT11 // DHT11 sensor type
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(9600); // Initialize serial communication
dht.begin(); // Initialize the DHT sensor
Serial.println("DHT11 Sensor Test");
}
void loop() {
delay(2000); // Wait 2 seconds between readings
float humidity = dht.readHumidity(); // Read humidity
float temperature = dht.readTemperature(); // Read temperature in Celsius
// Check if readings are valid
if (isnan(humidity) || isnan(temperature)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// Print the results to the Serial Monitor
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
}
No Output Voltage:
Output Voltage is Incorrect:
Excessive Heat:
High Output Ripple:
Q: Can the LM2596 be used for AC voltage conversion?
A: No, the LM2596 is a DC-DC converter and cannot directly handle AC voltage. Use a rectifier and filter circuit to convert AC to DC before using the LM2596.
Q: What is the efficiency of the LM2596?
A: The efficiency can reach up to 90%, depending on the input voltage, output voltage, and load conditions.
Q: Can I use the LM2596 to power a Raspberry Pi?
A: Yes, but ensure the output voltage is set to 5V and the current requirement of the Raspberry Pi (including peripherals) does not exceed 3A.
Q: How do I calculate the resistor values for the adjustable version?
A: Use the formula ( V_{OUT} = V_{REF} \times (1 + R_2 / R_1) ), where ( V_{REF} ) is 1.23V. Select ( R_1 ) and ( R_2 ) to achieve the desired output voltage.
This concludes the LM2596 Buck Converter documentation.