LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module
LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module
The LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module is a versatile and compact voltage converter module that can both step-up and step-down input voltages to produce a stabilized output voltage. This module is based on the popular LM2596 and XL6009 voltage regulator ICs, which provide high efficiency, reliability, and flexibility for a wide range of applications.
The LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module is designed to convert an input voltage range of 3-40V to a stabilized output voltage range of 1.25-35V. The module can operate in both step-up (boost) and step-down (buck) modes, making it suitable for various applications such as |
Powering devices that require a specific voltage level
Voltage regulation in automotive, industrial, and consumer electronics
LED driver circuits
Battery-powered devices
Solar-powered systems
3-40V
1.25-35V
Up to 3A (dependent on input voltage and output voltage)
Typically above 90%
Less than 50mVpp
-40C to +85C
43mm x 21mm x 14mm
Approximately 20g
Automotive systems
Industrial control systems
Consumer electronics
LED driver circuits
Battery-powered devices
Solar-powered systems
Robotics and automation systems
The module's performance and specifications may vary depending on the specific application and operating conditions. It is recommended to consult the datasheets for the LM2596 and XL6009 ICs for more detailed information on the module's operation and limitations.
LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module
Overview
The LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module is a versatile and efficient power conversion module that can be used to step-up or step-down voltage levels in a variety of applications. The module features two separate DC-DC converters: the LM2596, a step-down (buck) converter, and the XL6009, a step-up (boost) converter. This module is suitable for use in IoT projects, robotics, and other applications where a reliable and adjustable power supply is required.
Features
Input voltage range: 1.5V to 35V
Output voltage range: 1.25V to 35V (adjustable)
Maximum output current: 3A (LM2596), 2A (XL6009)
High efficiency: up to 92% (LM2596), up to 95% (XL6009)
Adjustable output voltage via potentiometer
Overcurrent protection and short-circuit protection
Pinout
The module has the following pinout:
Vin: Input voltage (1.5V to 35V)
GND: Ground
Vout: Output voltage (adjustable)
EN: Enable pin (active high)
ADJ: Output voltage adjustment pin (connect to potentiometer)
Code Examples
Example 1: Arduino Tutorial - Adjustable Power Supply
In this example, we will use the LM2596 & XL6009 module to create an adjustable power supply using an Arduino board.
Hardware Requirements
Arduino Uno or compatible board
LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module
Potentiometer (10k or 20k)
Jumper wires
Software Requirements
Arduino IDE (version 1.8.x or later)
Code
```cpp
const int potPin = A0; // Potentiometer pin
const int enPin = 2; // Enable pin
void setup() {
pinMode(enPin, OUTPUT);
digitalWrite(enPin, HIGH); // Enable the module
}
void loop() {
int potValue = analogRead(potPin);
float voltage = map(potValue, 0, 1023, 1.25, 35.0); // Map pot value to output voltage
Serial.print("Output Voltage: ");
Serial.print(voltage);
Serial.println("V");
delay(100);
}
```
Example 2: Raspberry Pi Tutorial - Boost Converter
In this example, we will use the XL6009 part of the module to boost a 3.3V input voltage to 5V output voltage using a Raspberry Pi.
Hardware Requirements
Raspberry Pi (any model)
LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module
Jumper wires
Software Requirements
Raspbian OS (or compatible)
Code
```python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
en_pin = 17 # Enable pin
GPIO.setup(en_pin, GPIO.OUT)
def set_output_voltage(voltage):
# Calculate the resistance required to set the output voltage
resistance = (voltage - 1.25) / 0.005
# Set the output voltage using the ADJ pin
GPIO.output(en_pin, GPIO.HIGH)
# Simulate the potentiometer by setting the resistance
# Replace this with a DAC or a digital potentiometer for a more accurate control
print(f"Output Voltage: {voltage}V")
try:
while True:
set_output_voltage(5.0) # Set output voltage to 5V
except KeyboardInterrupt:
GPIO.cleanup()
```
Example 3: ESP32 Tutorial - Buck Converter
In this example, we will use the LM2596 part of the module to step-down a 12V input voltage to 3.3V output voltage using an ESP32 board.
Hardware Requirements
ESP32 DevKitC or compatible board
LM2596 & XL6009 DC-DC Adjustable Step-Up and Step-Down Power Supply Module
Jumper wires
Software Requirements
ESP32 Arduino Core (version 1.0.x or later)
Code
```cpp
const int enPin = 5; // Enable pin
void setup() {
pinMode(enPin, OUTPUT);
digitalWrite(enPin, HIGH); // Enable the module
}
void loop() {
// Set the output voltage to 3.3V
analogWrite(enPin, 128); // 50% duty cycle for 3.3V output
delay(1000);
}
```
Important Notes
Before using the module, ensure that the input voltage is within the specified range and that the output voltage is set correctly using the potentiometer or digital control.
Always follow proper safety precautions when working with electrical components.
The examples provided are for illustrative purposes only and may require modifications to suit your specific application.
I hope you find this documentation helpful!