Regulating the output voltage based on the desired set point is useful for many applications. However, getting the optimal value using fast computation with minimal error is still challenging. This paper aims to design, simulate, and implement a second-order Buck-Boost DC-DC converter circuit so that the voltage result according to the desired set point can be achieved. Initially, testing is conducted using Matlab Simulink. Then, Proteus is used to test the computation of the program on embedded systems in which the result is implemented in C. In low voltage power electronics applications, this approach has never been used to determine the output form. To determine the value of Kp, Ki, dan Kd, PID, Ziger Nichos (Guo, 2002). method is used. Meanwhile, tuning is done through Matlab. For simulation on Proteus, the output is tested by setting the setpoint values of 3.0, 2.5, and 1.7 volts. This aims to see the pattern of changes in the simulation. The simulation results with Proteus show that they have similar peak values but with different overshoot values. This is because the simulation must pass the reference voltage before it drops to the desired setpoint value. Proteus simulation can also help to prove embedded system programs are running correctly. On the other hand, the value of 1.7 volts is used as a setpoint in device implementation. This is due to the determination that the setpoint voltage in the implementation does not exceed the value of the source/power supply. The results show that for the rise time value of 378,770 ms, Overshoot and settling time are 11.798% and 0, respectively. This means the result produces an optimal value which is a return to the initial target. The optimal factor is assessed from the ability to minimize existing errors as well as having the shortest possible computational process.