Simple library to get 9V/12V/20V/configurable output with step 0.2V from chargers with Quick Charge 2.0/3.0.
- Article (rus): https://cxemka.com/61-poluchenie-9v-12v-ot-quick-charge-s-mikrokontrollerom-stm32-regulirovka.html
- Youtube (rus): https://youtu.be/tvPMxghyDuc
- STM32F103C8; STM32CubeIDE; HAL
Execute function corresponding to voltage:
- 5V: QC_GPIO_5V();
- 9V: QC_GPIO_9V();
- 12V: QC_GPIO_12V();
- 20V: QC_GPIO_20V();
For regulation (continuous) mode execute initialization and then set output voltage by using incrementation/decrementation functions (MAX 12V out):
- QC_GPIO_Reg();
- +0.2V: QC_GPIO_Inc();
- -0.2V: QC_GPIO_Dec();