Amplify DC Voltage (from 5v to 12v)

Status
Not open for further replies.
I think there are many ways to do this, but I'm convinced you will need an external power supply capable of powering 1 or 5 motors. The few Arduino circuits I've seen for motors have an external power supply. Post #12 explanis why. You can put lots of ICs between the Arduino and the motor(s) but it won't change the a) power requirements of the circuit and b) power capability of the Arduino.
A simple solution, that could work, ...using an external 12V supply..., is to use a buffer IC - like the 7404, between the Arduino output and fan out one 7407 output to some transistors, the transistors used to drive your motors. If the motors have such small current requirements that 130mA is enough for 5, then even a BC547/557 could suffice, but better a slightly more powerful one (e.g. more than 100mA capability each transistor), or a small mosfet.
My first circuit is embarrassing to remember, as I spent two weeks trying to match my ill-informed wishes to components that could not perform magic, and by the hundredth time some-one explained it to me, I realised that a momentary pushbutton will only keep a circuit on momentarily, no matter what I might want it to do - I'm not sure if you aren't doing the same thing - re fixed idea that won't work - with the Arduino power capability, if you don't mind me saying.

Why not try using a buffer IC and a transistor array (and an external power supply/USB power hub if the Arduino can pass large currents)?

If you could explain why it has to be through the Arduino without an external power supply, and any other fixed parameters you must follow, it is easier for other people trying to help understand your needs.
 


But this is the problem i can't use an external power supply i must create 12v from 5v in some way..
 

Okay, it's a non-negotiable issue.

This Step-Up voltage regulator has a picture/schematic on page 2 of the datasheet ("Typical Application"), that is tailor-made for your requirement: 5V in > 12V out (and up to 800mA out), that should cover 5 motors, and no doubt if you have been set this as a project/homework by another person then it is to be assumed that 5 motors can be powered by the Arduino GPIOs. I still have my doubts...

Anyway, it looks basically the same as the schematic you posted with another converter IC.

https://www.ti.com/lit/ds/symlink/lm2577.pdf

Rather than PWMing the converter, that is repetition, I'd put a diode from GPIO out pin to the ground pin.
 
Last edited:


if i would connect it like this:


and between the arduino to the motor i will use some L293D IC (supply 600mA per channel) it would be ok?
my motor's nominal current is about 400mA
 

Nominal current of your motor? But that is when it is running and its back EMF is reducing its current. What about when the motor starts running then it needs its rated "stalled current" that is MUCH HIGHER than its nominal current? Then the overloaded L293 will smoke and die. The stalled current is much higher than its nominal running current because when it starts it is not turning so it is stalled and not generating a back EMF voltage so it is simply a long piece of wire that draws a very high current.

You keep saying the 5V comes from your Arduino board. But do you mean the 5V is coming from the 5V power supply that feeds your Arduino board? Or does the Arduino board already have a 5V power supply on it and will it provide enough current to do what you want?
Then will you use a voltage stepup IC to convert the 5V power to 12V power? Did you know that the 5V current will be 12/5= 2.4 times or more higher than the 12V current?
Then will you use the logic outputs of the Arduino to feed the logic inputs of the L293 to turn the motors on and off?
 

oh sorry the starting current is about 0.95A..the 5v comes from the usb that connected to pc.
 

5V from the USB on a pc does not produce enough current to boost to 12V then run a high current motor.
The motor with a 0.95A starting current is powered from a boost converter with an efficiency of maybe 85%. Then its current from the 5V USB is (0.95A/85% x 12V/5V=) 2.68A!
 

so i will use a current amplifier

- - - Updated - - -

if i use the ic l293d which supply 600mA each channel and 1.2A peak current it is enough for operating my motor(which needs 0.95A starting current)?

Peak output current, IO (nonrepetitive, t ≤ 100μs)
 

Hi,

in post 2 someone reminded something about pwm and 555 ic.
OK, the "PWM" of post#2 confused you.

Here my advice:
If you are not sure whether to believe in the datasheet or a post of a forum (mine included) then trust the datasheet.
Especially when they are from big reliable companies.

I see six parts in the schematic of your post#15. This is enough. It makes 5V to 12V.
You can run a simulation with LTspice or other simulation tools.

*****
I don´t know what you mean with "current amplifier".
The motor needs power. More than the USB can supply. There is no overcome. You need an extra power supply.

Klaus
 

I have tried to make simulation and i didn't get constant voltage


i don't know what will be over 25ms (i don't know why there is no option to increase the range) so i don't know if it is going to stabilize
 

Try increasing the value of the output capacitor for a smoother output voltage. That's probably about as good as it gets... and if you imagine that image of 0.025 seconds but zooming out 40 times, that'd be a pretty respectable DC straight line output.
 


so if it's ok there will not be a problem to convert the 5v of the arduino to 12v not?
shouldn't i reduce the capacitor ? for getting faster charging and discharging?
 
Last edited:

I don't know..., from googling the info., the Arduino One official web says 20mA per output pin, and 50mA on the 3.3V pin, that you can use an adapter that is 5 to 12 or even 20Vdc, but best stick to 9Vdc max. for more than one reason, that the adapter you use has to provide current from 250mA, up to 1 Amp...
And if your computer USB connection (is that what you're using?) can provide the necessary current, and the boost converter doesn't draw more current than the Arduino pins can supply, which your simulation might simulate better than I can guess, then I'll just say yes, whatever, could work, who am I to know, but 0.95A is 1 Amp.

You should check that the Arduino GPIO output pin won't have to supply the converter with more than 20mA... 0.02A at any one time. I don't have an Arduino, maybe you know something that I don't understand about how it works.

The capacitor on the output is presumably to smooth the ripple, it is a reservoir capacitor, so in my opinion if you make it smaller the output will have more ripple - bigger spikes, not smaller spikes - you could put a much smaller capacitor in parallel to the 100uF one for high frequency, might help.

Best of luck, hope this design works for you.

- - - Updated - - -

Just to see in your simulator, it's not really the same as a motor, but the best I can think of... I think you could put a 12.65 ohm resistor as a load on the 12V output (if your motor really is 0.95A start-up), and first try to configure the input voltage and current parameters to the converter in the simulator as best you can (presumably 5V/20mA, unless I've misunderstood anything), to see if it will work or not.
 

A current amplifier is powered from an extra external power supply but you don't need the current amplifier and you don't need the voltage booster when you have an external 12V power supply (or a 14V supply if you are switching the 12V motors on and off with an L293).

I do not know how you can find out which of the 18 USB types that you have. They are shown in Google. USB type C has a 5V output current of 500mA, 900mA or 1.5A but I do not know what limits the different currents and if the computer must "negotiate" more current than 100mA.
 

Hi,

To your post#30:
The ripple is because you don't use a load. So there is a little overshoot, then the converter stops working, until voltage drops below nominal value, then it starts again.
This is called non continous mode or burst mode operation.
Using a bigger capacitor lowers the frequency, but not ripple voltage.

Klaus
 
Reactions: d123

    d123

    Points: 2
    Helpful Answer Positive Rating

but i am not connect the boost converter to I/O pin it connected to vcc pin (5v) which can supply about 200mA. but then i would use some buffer/driver like l293d not? (it both amplify the current and control the motor by h birdges)
 

An L293 turns on with an output signal from your Arduino then passes its 12V power supply current to the load. It does not amplify the current, it simply switches the current, but you do not have enough current.
For an output of 12V at 0.95A the 5V to 12V boost converter needs 2.68A from the 5V.

An amplifier or a switch does not work with magic, instead it has a powerful power supply. It passes some of its power supply to the load.
An L293D has a typical input current of 0.1mA and can switch an output connected to its power supply with a current of up to 600mA.
 

But how could i supply 2.68A? There is no way to amplify the current without external power supply?
you say that uln2003a for example works at the same way? it passes its 12v power current supply to the load? if it is not amplify the current why there are transistors inside? how the big current created without an amplifier?
 
Last edited:

An amplifier simply passes some of its power supply current to the load. An amplifier does not increase its input level, instead it increases its output level and its output has a power supply.
But an L293 is not an amplifier, it is a switch. When its input has a tiny current then its output switches on its power supply to the load.
A ULN2003A has a typical input current of 0.93mA then its output switches on its power supply to the load.

A transistor amplifies signal levels. It has a power supply connected between its output and the load to pass some of the power supply current to the load.
An audio amplifier and a video amplifier also amplify signal levels. They have a power supply connected between their outputs and their loads to pass some of the power supply current to the loads.
 


So actually it would be very difficult to operate my motor without a power supply?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…