Arduino applications sometimes require a 12V supply and thus an external 12V power supply. With this 5 to 12V converter an 12V external power supply (and its and extension cord) is not needed anymore. The 5V comes from the USB cable.
This 5 to 12V converter is especially for:
- Applications that needs less than 200 mA out of the 12V.
- Mobile applications. Only a laptop, USB cable and the Arduino application are needed. An external power supply is unhandy in mobile applications.
I used this (very cheap) MC34063 Based Switching Regulator Adapter for a solar cell curvetracer:
Reducing the ripple voltage
The 5 to 12V MC34063 based switching regulator has a ripple voltage at the output and also causes a ripple voltage at the 5V input. For sensitive applications such as the Arduino (with its 10 bit ADC) sometimes this is not allowed. Here I describe how to eliminate the ripple voltages.
The voltage comparator inside the MC34063 turns the switching circuit on and off to regulate the output voltage. The disadvantage of this simple on / off regulation is that it causes an extra low frequency ripple (about 100 Hz) at the 5V supply line. Because of the low frequency it is not possible to use a LC filter to reduce this ripple, the L and C values would become too large. The 45 kHz ripple from the switching circuit can be reduced easily because the frequency is high enough.
Modifications: 1. Remove the three parallel current sense resistors R2, R3 and R4 from 1 ohm. Replace them by one resistor (Rsc), for instance 2.2 ohm (the value depends on the load). This reduces the peak inductor current and thus the 45 kHz ripple. Also it ensures that the output power is just as much as needed so that the switching circuit runs continuously at 45 kHz without being interrupted by the comparator. 2. Turn the potentiometer completely right. This disables the comparator, the negative input is low and the output is continuously high. When the resistor Rsc has the correct value the output voltage should be larger than 15V now. 3. Place a voltage regulator 78L12 at the output, because the MC34063 is not regulated anymore. This also eliminates the output ripple. 4. Place an inductor of 100 uH in series with the 5V input.