Microcontroller Based DC-DC Converters

Collection of Instructables with microcontroller based step-down, buck-boost, and boost converters. The converters are constant current, constant voltage, or both. Their applications include: DIY DC power supply, LED drivers, battery chargers, and electrolysis.

In microcontroller based DC-DC converters, the programmed chip reads the output current or voltage and generates a PWM output to drive the switch rather than using a dedicated chip to do the job.

Compared to using dedicated IC's, the advantages of this method include reduced power consumption in sleep mode, adjustable drive current, adjustable maximum duty cycle, the ability to make certain adjustments by only changing the program, and the ability to use the remaining pins on the chip.

A constant voltage boost converter was used to power the 12V LED strips from a 3.7V source.
A constant current buck converter was used to power a string of 0.7A LEDs with a forward voltage of 12V from a 14.8V source.
A constant current boost converter was used to power a string of 0.7A LEDs with a forward voltage of 14V from a 6.4V source.
A constant current buck converter was used to power a string of 1.5A LEDs with a forward voltage of 9V from a 12V source.