MP1584EN Mini LM2596 Ultra-Small DC-DC Step-Down Module Documentation
The MP1584EN Mini LM2596 is an ultra-small DC-DC step-down module that provides a high-efficiency voltage conversion solution for IoT and embedded systems. This module features a compact size, low ripple noise, and high reliability, making it an ideal choice for a wide range of applications.
Input voltage: 4.5V to 40V
Output voltage: 1.25V to 35V (adjustable)
Output current: up to 3A
High efficiency: up to 92%
Low ripple noise: 50mV
Operating frequency: 150kHz
Compact size: 36x24x15mm
Vin: Input voltage (4.5V to 40V)
Vout: Output voltage (1.25V to 35V)
GND: Ground
EN: Enable pin (active high)
ADJ: Output voltage adjustment pin
Example 1: Basic Usage in an Arduino Project
In this example, we will use the MP1584EN module to step down a 12V input voltage to 5V for powering an Arduino board.
MP1584EN module
Arduino board
Breadboard and jumper wires
Code
```c++
void setup() {
// Enable the MP1584EN module
pinMode(EN, OUTPUT);
digitalWrite(EN, HIGH);
// Set the output voltage to 5V
pinMode(ADJ, OUTPUT);
analogWrite(ADJ, 128); // 128 corresponds to approximately 5V output
}
void loop() {
// Power the Arduino board using the 5V output from the MP1584EN module
}
```
Example 2: Using the MP1584EN with a Raspberry Pi Pico
In this example, we will use the MP1584EN module to power a Raspberry Pi Pico board from a 24V input voltage.
MP1584EN module
Raspberry Pi Pico board
Breadboard and jumper wires
Code (MicroPython)
```python
import machine
# Initialize the EN pin as an output
en_pin = machine.Pin(16, machine.Pin.OUT)
en_pin.value(1) # Enable the MP1584EN module
# Set the output voltage to 3.3V
adj_pin = machine.Pin(17, machine.Pin.OUT)
adj_pin.value(64) # 64 corresponds to approximately 3.3V output
# Power the Raspberry Pi Pico board using the 3.3V output from the MP1584EN module
```
Note: The EN pin is connected to Pin 16, and the ADJ pin is connected to Pin 17 on the Raspberry Pi Pico board. Adjust the pin numbers according to your board configuration.
Example 3: Using the MP1584EN with a ESP32 Board
In this example, we will use the MP1584EN module to power an ESP32 board from a 36V input voltage.
MP1584EN module
ESP32 board
Breadboard and jumper wires
Code (Arduino IDE)
```c++
void setup() {
// Enable the MP1584EN module
pinMode(EN, OUTPUT);
digitalWrite(EN, HIGH);
// Set the output voltage to 3.3V
pinMode(ADJ, OUTPUT);
analogWrite(ADJ, 128); // 128 corresponds to approximately 3.3V output
}
void loop() {
// Power the ESP32 board using the 3.3V output from the MP1584EN module
// Use the ESP32 board as usual
}
```
Note: The EN pin is connected to a digital pin on the ESP32 board, and the ADJ pin is connected to a digital pin. Adjust the pin numbers according to your board configuration.
These examples demonstrate the basic usage of the MP1584EN Mini LM2596 ultra-small DC-DC step-down module in various contexts. The module can be used in a wide range of applications, including IoT devices, robotics, and industrial control systems.