How To Use DC To DC Buck Converter LM2596
How To Use DC To DC Buck Converter LM2596
How To Use DC To DC Buck Converter LM2596
by Robottronic
This tutorial will show how to use LM2596 Buck Converter to power up devices requiring di erent voltages. We will show
which are the best types of batteries to use with the converter and how to get more than just one output from the
converter (indirectly).
We will explain why we have chosen this converter and for what kind of projects can we use it.
Just a small note before we get started: When working with robotics and electronics please don't overlook the
importance of power distribution.
This is our rst tutorial in our series on Power Distribution, we believe that Power Distribution is often overlooked and
that this is a big reason why many people lose interest in robotics in the beginning, for instance they burn up their
components and are unwilling to buy new components from the fear to just burn them up again, we hope that this
series on Power Distribution will help you understand how to better work with electricity.
Supplies:
1. LM2596 DC to DC Converter
2. 9V Alkaline Battery
3. Arduino Uno
4. Jumper Wires
5. 2S Li-Po or Li-Ion Battery
6. 2A or 3A Fuse
7. Servo Motor SG90
8. Small Breadboard
Here You can see how the LM2596 DC to DC Converter IN- Here we connect the black wire from the battery (or
Module looks like. You can notice that the LM2596 is an the power source), this is ground, GND or V--
IC, and the module is a circuit build around the IC to
make it work as an adjustable converter. OUT+ Here we connect the positive voltage of the
power distribution circuit or a component powered
Pinout for LM2596 module is very simple:
OUT- Here we connect the ground of the power
IN+ Here we connect the red wire from the battery (or distribution circuit or a component powered
the power source), this is VCC or VIN (4.5V - 40V)
This is a buck converter meaning that it will take higher voltage and convert it into lower voltage. To adjust the voltage
we have to do couple of steps.
1. Connect the converter with the battery or other power source. Know how much voltage you have
inputted in the converter.
2. Set the multimeter to read the voltage and connect the output of the converter to it. Now you can
already see the voltage on the output.
3. Adjust the trimmer (here 20k Ohm) with a tiny screwdriver until the voltage is set to the desired output.
Feel free to turn the trimmer in both directions to get the feeling how to work with it. Sometimes when
you use the converter for the rst time you will have to rotate the trimmer screw 5-10 full circles to get it
working. Play with it until you get the feeling.
4. Now that the voltage is appropriately adjusted, instead of the multimeter connect the device/module you
want to power.
In the next couple of steps we would like to show you couple of examples on how to produce certain voltages and when
to use these voltages. This steps shown here are from now on implied on all of the examples.
Current rating of the IC LM2596 is 3 Amps (steady cooler (heat exchanger) on top of it and this will
current), but if you actually pull through it 2 or more passively distribute the heat from the IC to the
Amps for a long period of time it will heat up and burn surrounding air.
out. As with most of the devices here we also have to
provide su cient cooling for it to work long and reliably. The image above shows two versions of the LM2596
module.
Here we would like to draw an analogy with the PC's and
CPU's, as most of you already know, your PC's heat up First version is without the cooler and we will use it if
and crash, to improve their performance we need to the steady current is below 1.5 Amps.
improve their cooling, we can replace the cooling with a
better passive or air cooler or introduce even better with Second version is with the cooler and we will use it if
liquid cooling, it's the same thing with every electronic the steady current is above 1.5 Amps.
component like IC's. So to improve it we will glue a small
Here is an example that includes everything mentioned above. We will summarize everything with the wiring steps:
1. Connect the 2S Li-Po (7.4V) battery with the 2A fuse. This will protect our main circuit from high current.
2. Adjust the voltage to 6V with the multimeter connected on the output.
3. Connect the ground and the VCC from the battery with the converter's input terminals.
4. Connect the positive output with the VIN on the Arduino and with the red wire on the micro servo SG90.
5. Connect the negative output with the GND on the Arduino and the brown wire on the micro servo SG90.
Here we have adjusted the voltage to 6V and powered up the Arduino Uno and the SG90. The reason why would we do
that instead of using the 5V output of the Arduino Uno to charge the SG90 is the steady output given by the converter,
as well as the limited output current coming from the Arduino, and also we always want to separate the motor power
from the power of the circuit. Here the last thing is not actually achieved because it is unnecessary for this motor, but the
converter provides us with the possibility to do that.
To understand more on why is it better to power the components this way and to separate the motors from the
controllers please refer to our tutorial on batteries when it's released.
This example shows how to use the LM2596 to power two devices with two di erent types of voltages. The wiring can be
clearly seen from the images. What we have done here is explained in the steps below.
1. Connect the 9V Alkaline Battery (can be bought in any local store) to the input of the converter.
2. Adjust the voltage to 5V and connect the output to the breadboard.
3. Connect the Arduino's 5V to the positive terminal on the breadboard, and connect the grounds of the
Arduino and the Breadboard.
4. The second device powered here is a wireless transmitter/receiver nrf24, it requires 3.3V, normally you
could power it directly from the Arduino but the current coming from the Arduino is usually too weak to
transmit stable radio signal, so we will use our converter to power it.
5. To do that we need to use a Voltage Divider to reduce the voltage from 5V to 3.3V. This is done by
connecting the +5V of the converter to the 2k Ohm resistor, and 1k Ohm resistor to the ground. The
terminal voltage where they touch is now reduced to 3.3V which we use to charge the nrf24.
If you want to know more about the resistors and the voltage dividers please refer to our tutorial about that when it's
released.
Step 7: Conclusion
You can download the models we have used in this rel="nofollow">Instructables Robottronic
tutorial from our GrabCAD account:
You can also check Youtube channel that is still in the
GrabCAD Robottronic Models process of kicking o :