<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Serhii Tsyrulnyk</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Vasyl' Stus Donetsk National University</institution>
          ,
          <addr-line>str. 600-richchia, 21, Vinnytsia, 21021</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Vinnytsia National Agrarian University</institution>
          ,
          <addr-line>str. Sonyachna, 3, City, Vinnytsia, 21008</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Vinnytsia National Technical University</institution>
          ,
          <addr-line>Khmelnytske highway, 95, Vinnytsia, 21021</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Vinnytsia Technical Applied College</institution>
          ,
          <addr-line>Khmelnytske highway, 91/2, Vinnytsia, 21021</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>The work presents the development and investigation of a programmable power block with remote control based on Quick Charge technology. It was figured out that power sources/chargers for mobile phones with Quick Charge 2.0, 3.0 technology can be used to construct a programmable power block with remote control. For this purpose, an additional control module needs to be developed. In this case, the output voltage level can be programmatically set through the high-voltage dedicated Qualcomm charging port (HVDCP). The remotely set output voltage is extracted from the HVDCP port lines: Vbus, Gnd (pins 1, 4). The control of the output voltage is achieved through voltage levels of specific duration using the D+, D- lines of the HVDCP port. The developed scheme of the programmable power source based on Quick Charge technology requires specialized software. The control module program should provide identification of power adapters that support Quick Charge 2.0, 3.0 technology. In this case, the HVDCP continuous mode allows remote control of the output voltage from 3.6V to 20V when using the control module with corresponding software. The article presents the scheme and software for the control module of the programmable power block based on Quick Charge technology, which operate in accordance with the developed algorithms. Modeling and experimental research confirmed the possibility of remote change of the adapter's output voltage using the proposed control module and corresponding software. Thanks to the online processing and monitoring of obtained data on a personal computer, both manual and automatic control of the output voltage level are possible. Remote control of the programmable power block can be done through the USB port or wireless interfaces like Bluetooth, Wi-Fi. For this purpose, the microcontroller of the control module must support a UART interface to which shields, modules, or interface converters can be connected to interact with remote control elements. Programmable power unit; Quick Charge; control module; HVDCP Proceedings ITTAP'2023: 3rd International Workshop on Information Technologies: Theoretical and Applied Problems, November 22-24, ORCID: 0000-0002-5703-9761 (S. Tsyrulnyk); 0000-0001-5022-8159 (V. Tromsyuk) 0000-0001-9398-8529 (I. Bogach); 0000-0003-45664102 (N. Potapova); Proceedings</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Potapovac</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>Power sources provide electrical energy in the form of operating voltage to a wide spectrum of
systems. With the increasing use of IoT devices in industrial equipment, home automation, and
EMAIL:
2013tvd@gmail.com
(V.
(I. Bogach);</p>
      <p>2023 Copyright for this paper by its authors.
CEUR</p>
      <p>
        ceur-ws.org
medicine, there is a growing need for optimizing power control elements. In many applications,
programmable power sources can significantly enhance system capabilities and efficiency. While
traditional power sources have fixed output voltage values, programmable power sources offer greater
flexibility and multiple operational modes. Such programmable power sources with software controllers
provide control over various voltage, current, power, and operating mode settings [
        <xref ref-type="bibr" rid="ref2">1</xref>
        ].
      </p>
      <p>
        In certain chemical processes, the power source must deliver a predetermined power level, often
referred to as Constant Power (CP). This requires constant monitoring of the process and a
programmable power source that interacts with the control system in real-time mode. Programming is
done by the controller, and the power block responds to these commands. Such a power source may
even have a built-in controller, where the user simply writes and runs a program that suits his process.
As a result, a standard programmable power source can meet specific and diverse user requirements
[
        <xref ref-type="bibr" rid="ref3">2</xref>
        ].
      </p>
      <p>
        Programmable power sources are utilized in various applications, including galvanic processes in
industries, automated test equipment, testing, certification, and calibration processes, troubleshooting
and modeling, medical diagnostic and treatment systems, hydrogen and helium generation systems,
testing of research and development equipment [
        <xref ref-type="bibr" rid="ref1 ref10 ref11 ref2 ref3 ref4 ref5 ref6 ref7 ref8 ref9">1-10</xref>
        ].
      </p>
      <p>
        One significant requirement for modern switched-mode power supplies is the ability to remotely
control output parameters, achieved through remote control units or computers [
        <xref ref-type="bibr" rid="ref1 ref4">3</xref>
        ]. Software control
offers several advantages, including the ability to create custom power supply operation modes.
      </p>
      <p>
        The main applications of programmable power sources are [
        <xref ref-type="bibr" rid="ref3">2</xref>
        ]:
- Operating the devices with unknown or variable voltages.
      </p>
      <p>- Working with devices that have unique power supply requirements not covered by standard power
supplies.</p>
      <p>- Dynamically adjusting voltage during operation.
- Switching between operational modes for different devices.</p>
      <p>
        Programmable power sources can fulfill these requirements, allowing easy switching between
different operation modes. For example, an intelligent charger with a programmable power source can
charge a battery by initially supplying constant current (CC) and then switching to constant voltage
(CV) mode as the battery approaches full charge. If the power source exceeds the user-set current limit
in CV mode, it can automatically revert to CC mode [
        <xref ref-type="bibr" rid="ref3">2</xref>
        ].
      </p>
      <p>The objective of this work is to study power blocks (chargers) with Quick Charge technology and
develop a programmable power block based on them, capable of remote (software) voltage control via
USB port or Wi-Fi wireless network.</p>
      <p>To achieve this objective, the following tasks need to be addressed:
1. Study the characteristics of output voltage variation through the high-voltage dedicated
Qualcomm charging port (HVDCP) in Quick Charge technology.</p>
      <p>2. Develop an algorithm for detecting HVDCP on devices that support fast charging functionality.
3. Design a device that interfaces through HVDCP and allows setting the output voltage of the power
block.</p>
      <p>4. Develop software that enables software-based adjustment of the power block's output voltage
through the USB port.</p>
      <p>5. Investigate the Quick Charge-based programmable power block using the developed software.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Researching the Characteristics of Output Voltage Variation Through the</title>
    </sec>
    <sec id="sec-4">
      <title>Qualcomm High-Voltage Dedicated Charging Port (HVDCP).</title>
      <p>
        In response to growing demand, the capabilities of USB technology are constantly evolving. The
power of USB 2.0 power sources, originally 2.5 watts (5V at 0.5A), has been increased to 4.5 watts (5V
at 0.9A) with the introduction of USB 3.0. Similarly, the power of power sources supporting USB BC
1.2 has also increased to 7.5 watts (5V at 1.5A). However, the true breakthrough in power source
capabilities came with the advent of Qualcomm's Quick Charge (QC) technology. The Quick Charge
2.0 and 3.0 specifications developed by Qualcomm incorporate a comprehensive power delivery
mechanism, significantly enhancing power source capabilities up to 60 watts (20V at 3A) [
        <xref ref-type="bibr" rid="ref12 ref13">11, 12</xref>
        ].
      </p>
      <p>Qualcomm Quick Charge is employed in smartphones, chargers, external power banks, and car
sockets. The QC technology from Qualcomm, specifically versions 2.0 and 3.0, has gained popularity
due to its support and widespread availability in the majority of modern smartphones. Other
manufacturers also employ similar quick charging technologies in their products (Ошибка! Источник
ссылки не найден.).
USB PD
Qualcomm Quick Charge 1.0
Qualcomm Quick Charge 2.0
Qualcomm Quick Charge 3.0
Qualcomm Quick Charge 4.0+
Samsung Adaptive Fast Charging
Apple Fast Charging
Huawei Super Charge
Huawei Super Charge 2.0
Motorola Turbo Power
OPPO VOOC
OPPO Super VOOC
OnePlus Dash Charge
OnePlus Warp Charge
MediaTek Pump Express 2.0+
MediaTek Pump Express 3.0
MediaTek Pump Express 4.0
Voltage</p>
      <p>A power adapter for a mobile phone is cheaper than a comparable power block. It is practical to use
a mobile phone power adapter/charger as the basis for constructing a programmable power block with
remote control. The interaction between the power adapter with Quick Charge support and the mobile
phone is illustrated in Figure 1.</p>
      <p>5V is supplied
1 when
connected</p>
      <p>Smartphone
The smartphone The power The smartphone The power The power
recognizes the supply informs asks for a supply unit management
2 power supply 3 about the values 4 specific 5 supplies the 6 system
unit with Quick of U, I that are algorithm and necessary controls the
Charge supported power power current</p>
      <p>Power supply unit with Quick Charge support</p>
      <p>
        The Qualcomm High Voltage Dedicated Charging Port (HVDCP) is used for interacting with the
load via D+/D lines and setting the voltage level for the power source at 5V, 9V, 12V, and 20V or
voltage adjustment steps for QC 3.0 [
        <xref ref-type="bibr" rid="ref13">12</xref>
        ].
      </p>
      <p>Interactions between QC2.0+ devices and the adapter occur through the D+ and D- USB lines. The
QC protocol does not adhere to USB characteristics and utilizes specialized logical levels. To control
the adapter, it is necessary to generate 0V, 0.6V, and 3.3V levels.</p>
      <p>How to determine which type of adapter is connected? In QC1.0, compatible adapters have a
distinctive feature: the D+ and D- lines inside the adapter are shorted (Figure 2, a).</p>
      <p>QC2.0 adapters, after being powered on, output a voltage of 5V, and the D+ and D- lines inside are
still shorted by a transistor (Figure 2, b), ensuring compatibility with QC1.0. By applying a voltage of
0.6V to the D+ line and waiting for approximately 1.5 seconds, the adapter will open the lines and
connect a 20kΩ pull-down resistor to the D- line (Figure 2, c)</p>
      <p>
        If D- is pulled down to 0 for a few milliseconds, the adapter will switch to the HVDCP special mode.
Setting specific combinations of logic levels on the lines allows obtaining the required voltage (Table
2). Each adapter is protected against interference, so the indicated levels should remain unchanged for
60ms for the changes to take effect [
        <xref ref-type="bibr" rid="ref12 ref13 ref14">11-13</xref>
        ].
      </p>
      <p>
        It is not possible to programmatically differentiate QC2.0 from QC3.0. QC3.0 inherits everything
from QC2.0; however, it allows setting any voltage at the output. This is achieved using the Continuous
Mode. The timing diagram for generating the output voltage of a power adapter with QC2.0, 3.0 is
provided in Figure 3 [
        <xref ref-type="bibr" rid="ref14">13, 14</xref>
        ].
      </p>
      <p>Therefore, depending on the control signals on the D+ and D- lines, it is possible to
programmatically set the desired output voltage of the power source. This enables dynamic adjustment
of operating modes and remote control of energy consumption levels for various devices. To achieve
this, it is necessary to develop a control module and corresponding software for its operation.</p>
      <sec id="sec-4-1">
        <title>The adapter disconnects the lines D+, D</title>
      </sec>
      <sec id="sec-4-2">
        <title>Pull D- to GND</title>
        <p>The device generates
0.6V to D+
0.6V passes through
the adapter to
D5V
9V
12V
20V</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>3. Development of a Programmable Power Supply Unit based on Quick</title>
    </sec>
    <sec id="sec-6">
      <title>Charge Technology</title>
      <p>Development of a Programmable Power Supply Unit based on Quick Charge Technology begins
with designing its structure and operational algorithm.</p>
      <p>The structural diagram of a programmable power supply unit with remote control based on Quick
Charge technology is illustrated in Figure 4.</p>
      <p>The diagram comprises:
- A power source (charging device) built upon Quick Charge technology.</p>
      <p>- A control module with the ability to connect through a USB port or wireless Wi-Fi network to a
control device, enabling remote management of operating modes.</p>
      <p>- A control device (computer, laptop, smartphone, or specialized control remote).</p>
      <sec id="sec-6-1">
        <title>Programmable Power Supply</title>
      </sec>
      <sec id="sec-6-2">
        <title>Power</title>
        <p>Supply
with
Quick
Charge</p>
        <p>Vcc
D</p>
        <p>D+
Gnd
Сontrol
module</p>
        <p>Tx
Rx</p>
        <p>VOUT
UART</p>
        <p>
          For the interaction between the control module and the power supply unit built on the basis of Quick
Charge technology, an algorithm has been developed. The initial operation algorithm of the control
module (Figure 4) of the programmable power supply unit involves interaction with the power adapter
and determining whether it supports the QC2.0, 3.0 protocol [
          <xref ref-type="bibr" rid="ref12 ref13 ref14">11-13</xref>
          ]:
        </p>
        <p>1. The control module connects to the power adapter through HVDCP and detects that the VBUS
voltage exceeds the voltage range of 0.8-4V. This indicates that the control module is connected to the
power adapter.</p>
        <p>2. The HVDCP of the power adapter closes D+ / D- through a transistor (Figure 3, b); the control
module applies a voltage of 0.6V to D+, and the power adapter compares the voltage on D- with a
threshold value of 0.25-0.4V. If the voltage on D- is higher, it means that HVDCP supports the QC2.0
protocol. If the voltage on D+ exceeds 0.25-0.4V during a period of time (1-1.5s), the control module
confirms the completion of the QC2.0, 3.0 detection procedure.</p>
        <p>3. The HVDCP of the power adapter disconnects D+/D- and activates the Pull Down 20kΩ resistor
to the D- line to inform the control module that HVDCP supports QC. After the voltage on D- drops
below 0.25V within 1ms, HVDCP can start responding to the voltage request sent by the control module
(Table 2).</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>3.2. Development of Control Module for the Programmable Power Supply with Remote Control Based on Quick Charge Technology.</title>
      <p>The output voltage (Vout) of the programmable power supply unit with remote control based on
Quick Charge technology is extracted from the 1st pin (Vbus) XS1. The output voltage (Vout) can have
fixed values of +5V, +9V, +12V, and +20V. The selection of the output voltage is accomplished using
button SA1. By default, the output voltage is set to +5V. With each pressing of button SA1, the output
voltage will change accordingly to Table 2. If the power adapter supports QC3.0 and higher
technologies, it can be switched to Continuous Mode, and the output voltage can be programmatically
set from 3.6V to 20V in 200mV increments through the UART interface (Rx, Tx). If the power adapter
supports QC2.0, then fixed values of +5V, +9V, +12V, and +20V can be programmatically set through
the UART interface. For power adapters supporting QC1.0, it is not possible to programmatically set
the output voltage through the UART interface.</p>
    </sec>
    <sec id="sec-8">
      <title>3.3. Software Development for Control Module to Change Output Voltage</title>
    </sec>
    <sec id="sec-9">
      <title>Using the Tactile Button of the Programmable Power Supply.</title>
      <p>To ensure the functionality of the control module for the programmable power supply unit in
accordance with the developed algorithm, it is necessary to create the appropriate software
(QC_SWITCH program). The QC_SWITCH program is written in the Arduino IDE environment and
enables the adjustment of the output voltage through the press of the SA1 button (Figure 5).</p>
      <p>Here is the program listing for QC_SWITCH:</p>
      <p>In lines 14-27 of the QC_SWITCH program, the operating modes of the microcontroller ports are
configured, the interrupt mode INT0 is set up for pressing the SA1 button, an output voltage of 0.6V is
set on the D+ line, and a delay of 1.5 seconds is introduced to allow the control module to confirm the
completion of the QC2.0, 3.0 detection procedure. A voltage of 0V is set on the D- line for 3 ms to
prompt the power adapter through HVDCP to start responding to voltage requests from the control
module.</p>
      <p>In lines 29-49, the state of the variable "mode" is analyzed, which can take values from 0 to 3. The
value of "mode" changes in the "blink" function (lines 51-54) when the SA1 button is pressed. The
value of "mode" determines the output voltage of the power adapter through HVDCP (Vout in Figure
5). Lines 56-84 contain functions to generate voltages of 0V, 0.6V, and 3.3V on the D+ and D- lines.</p>
    </sec>
    <sec id="sec-10">
      <title>3.4. Investigation of the Programmable Power Supply Control Module.</title>
      <p>To verify the voltage values on the D+ and D- lines of the charger, we will conduct a study of the
control module in the virtual environment of Proteus and on a prototype board.</p>
    </sec>
    <sec id="sec-11">
      <title>3.4.1. Computer Simulation of the Control Module in Proteus Environment.</title>
      <p>The schematic diagram for modeling the operation of the control module in the Proteus environment
is shown in Figure 6.</p>
      <p>The QC_SWITCH program was compiled into a binary file and uploaded to the Arduino Nano
module (Figure 6). During computer simulation in the Proteus environment, pressing the SA1 button
resulted in voltage changes on the D+/D- lines: 0.66V/0V, 3.56V/0.66V, 0.66V/0.66V, 3.56V/3.56V.
Thus, the circuit and software operate correctly, and further experiments can be conducted.</p>
    </sec>
    <sec id="sec-12">
      <title>3.4.2. Investigation of the Control Module on a Prototype Board</title>
      <p>The control module schematic was implemented on a prototype board (Figure 7). The Arduino Nano
module was programmed with the QC_SWITCH program using the Arduino IDE. The Xiaomi
MOY11-EZ charger was used as the power adapter. Figure 7 shows experimental investigation of the
interaction between the control module and the power adapter to implement the programmable power
supply based on Quick Charge technology.</p>
      <p>As a result of the studies, the circuit operated according to the specified algorithm, and output
voltage values of 5.185V, 9.017V, 12.02V, and 18.98V were obtained. It was found that the Forever
Core QC3.0 FC-01 22.5W Power Bank and the RavPower PP-PC132 power adapter also worked with
the control module. Other power adapters (InFinix XC02, USlion USR UD7656, Remax PD P-96 Power
Bank, Xiaomi Mi Power Bank 2) only provided a voltage of +5V at the output and did not change the
output voltage upon pressing SA1, despite being labeled as QC3.0. Therefore, changes need to be made
to the control module program for further investigation, which should include the detection of the QC
protocol supported by the power adapter. In the case of QC2.0 and QC3.0, an attempt should be made
to switch to Continuous Mode and remotely control the output voltage Vout.</p>
    </sec>
    <sec id="sec-13">
      <title>3.5. Development of Algorithm for Software Control and Interrogation of the</title>
    </sec>
    <sec id="sec-14">
      <title>Power Adapter</title>
      <p>
        The algorithm for software control and polling of the QC1.0, QC2.0, and QC3.0 power adapters to
generate the required output voltage on HVDCP [
        <xref ref-type="bibr" rid="ref12 ref13 ref14">11-14</xref>
        ] is shown in Figure 8.
      </p>
      <p>The QC technology supported by the power adapter can be determined basing on the voltage level
on D-. To do this, the control module applies a voltage of 0.6V to the D+ line. If after 1.5 seconds the
voltage on the D- line equals 0.6V, it means that the adapter supports only QC1.0. If the voltage on the
D- line is 0V, the adapter supports QC2.0. The adapter will enter HVDCP discrete mode. Setting one
of the combinations of logic levels on the D+ and D- lines within 60ms allows obtaining the required
voltage (Table 2). The QC3.0 power adapter can be switched to HVDCP Continuous mode [14].
Transition to Continuous mode does not change the current voltage (you can start with 9V, switch to
Continuous mode, and then change to 11V, or start in Continuous mode directly from 5V). Exiting
Continuous mode is possible only in the 5V state. From the 5V, 9V, 12V, 20V modes, you can perform
transition to any other mode. Control of the output voltage in Continuous mode is done discretely using
pulses on D+ or D-. Each pulse has a duration of about 1 ms (Figure 9).</p>
      <p>Figure 8: Algorithm for Software Control and Polling of the Power Adapter</p>
      <p>Increment +200 mV</p>
    </sec>
    <sec id="sec-15">
      <title>3.6. Development of Software for Controlling the Operation of the</title>
    </sec>
    <sec id="sec-16">
      <title>Programmable Power Supply via USB Port of a Personal Computer</title>
      <p>The next step in implementing the programmable power supply with remote control based on Quick
Charge technology was the development of the QuickCharge.h library and the QC_Remote program
for controlling the power supply using a personal computer. The library includes the QuickCharge class
and methods: begin, which returns the adapter type; setMode, which sets the output voltage mode of
the adapter - QC_5V, QC_9V, QC_12V, QC_20V, QC_VAR; and set, which sets the output voltage of
the adapter in the QC_VAR mode.</p>
      <p>QC_Remote program listing:
1 #define DP_H 4
2 #define DP_L 5
3 #define DM_H A4
4 #define DM_L A5
5
6 #include "QuickCharge.h"
7 QuickCharge QC (DP_H_PIN, DP_L_PIN, DM_H_PIN, DM_L_PIN, QC_CLASS_B);
8
9 void setup() {
10 Serial.begin(9600); // open Serial port
11 Serial.setTimeout(100); // set the timeout
12 // Information on the adapter type is displayed
13 Serial.print(F("Charger type: "));
14 // The begin method is called, which returns the adapter type
15 int type = QC.begin();
16 switch (type) { // the adapter type is displayed
17 case QC_NA: Serial.println(F("QC is not available")); break;
18 case QC_GEN1: Serial.println(F("QC1.0 - (5V 2A)")); break;
19 case QC_GEN2: Serial.println(F("QC2.0 or QC3.0")); break;
20 }
21 QC.setMode(QC_VAR); // voltage setting mode</p>
      <p>The program enables remote control of the operation of the programmable power supply. To do this,
you need to connect the control module to a Quick Charge-compatible power adapter and to a computer.
Afterward, run the "QC_Remote" program in the Arduino IDE and input the desired output voltage in
the Serial Monitor. Within 1 ms, the required output voltage will appear at the output of the
programmable power supply.</p>
    </sec>
    <sec id="sec-17">
      <title>3.7. Study of the QuickCharge-Based Programmable Power Supply</title>
      <p>The Arduino Nano module was programmed with the QC_Remote program using the Arduino IDE.
The Xiaomi MOY-11-EZ charger, Forever Core QC3.0 FC-01 22.5W Power Bank, RavPower
PPPC132 power adapter, InFinix XC02, USlion USR UD7656, Remax PD P-96 Power Bank, and Xiaomi
Mi Power Bank 2 were used as test devices. The results of the QC protocol type determination are
shown in Figure 10.</p>
      <p>Based on the QC protocol testing results, the Xiaomi MOY-11-EZ charger, RavPower PP-PC132
power adapter, and Forever Core QC3.0 FC-01 22.5W Power Bank can be used for further experiments.
The results of experimental studies of the programmable power supply with remote control using the
Xiaomi MOY-11-EZ charger are presented in Figure 11 and Figure 12. Remote control of the
programmable power supply was conducted through the Serial Monitor in the Arduino IDE. The desired
output voltage was entered in millivolts in the Message window. This message was sent to the Arduino
Nano through COM5 and processed in the loop section (lines 24-34) of the QC_Remote program.</p>
      <p>Remote control of the power supply through a wireless Wi-Fi interface can be implemented using
the following methods [18, 19]: establish a connection between Arduino Nano and a Wi-Fi shield based
on HDG04; establish a connection with Arduino Nano and ESP-01; use an IoT module based on the
ESP8266/ESP32 chip, such as Node MCU V3, WeMos D1, Arduino Nano 33 IoT, or Arduino Nano
RP2040. For remote control via Bluetooth interface, Bluetooth modules HC04-HC09 can be connected
to the control module (Tx, Rx lines), or an Arduino Nano 33 BLE module can be used. Various adapters
and converters into the UART interface are available for connecting to the control module using USB,
RS-485, RS232, and CAN interfaces.</p>
    </sec>
    <sec id="sec-18">
      <title>4. Acknowledgements</title>
      <p>In this work, practical research on the implementation of a programmable power supply with remote
control based on Quick Charge technology was conducted. The following conclusions can be drawn
from the results:</p>
      <p>1. Quick Charge 2.0 and 3.0 power adapters/chargers for mobile phones can be used to build a
programmable power supply with remote control.</p>
      <p>2. The output voltage can be remotely adjusted through the dedicated high-voltage Qualcomm
charging port (HVDCP).</p>
      <p>3. The control module is connected to the power adapter through HVDCP. The control module is
powered either from a personal computer or from the power adapter. The remotely controlled output
voltage is taken from the Vbus, Gnd lines (pins 1, 4) of the HVDCP port. Control of the output voltage
is achieved through voltage levels of specific duration on the D+, D- lines of the HVDCP port.</p>
      <p>4. The control module software allows for the detection of power adapters that support Quick Charge
2.0 and 3.0 technologies. Adapters with Quick Charge 2.0 can be switched to HVDCP discrete mode
and have their output voltage remotely changed to fixed values of 5V, 9V, 12V, 20V. Adapters with
Quick Charge 3.0 can be switched to HVDCP discrete and HVDCP continuous modes. HVDCP
continuous mode allows remote control of the output voltage from 3.6V to 20V.</p>
      <p>5. Remote control of the power supply can be achieved through the USB port, wireless Bluetooth,
or Wi-Fi interfaces. The microcontroller of the control module must support a UART interface, to which
shields, modules, or interface converters can be connected for interaction with remote control elements.</p>
      <p>6. The software for remote control on the client side should be developed separately and should
interact with the control module software.</p>
    </sec>
    <sec id="sec-19">
      <title>5. References</title>
      <p>[14] FAN6290QF/FAN6290QH, Compact Secondary-Side Adaptive Charging Controller Synchronous
Rectifier Control, Product data sheet, 2016. URL:
https://rocelec.widen.net/view/pdf/njq3oux9gc/ONSM-S-A0003587093-1.pdf.
[15] Cai, Hong Zhuan, and Yong Liu. “Adaptive USB Fast Charger Design Based on Quick Charge 2.0
Protocol.” Advanced Materials Research, vol. 852, Trans Tech Publications, Ltd., Jan. 2014, pp.
357–360, doi:10.4028/www.scientific.net/amr.852.357.
[16] C. Huang et al., An A.I.-Based Fuzzy Logic DC-DC Converter for USB Type-C Charging, in:
IEEE International Conference on Integrated Circuits, Technologies and Applications (ICTA),
Nanjing, China, 2020, pp. 153-154, doi: 10.1109/ICTA50426.2020.9332002.
[17] F. He, USB Port and power delivery: An overview of USB port interoperabiliy, in: IEEE
Symposium on Product Compliance Engineering (ISPCE), Chicago, IL, USA, 2015, pp. 1-5, doi:
10.1109/ISPCE.2015.7138710.
[18] S. Tsyrulnyk, V. Tromsyuk, M. Tsyrulnyk, P. Rymar, Energy Monitoring System based on IoT,
in: CEUR Workshop Proceedings (CEUR-WS. org). 2021. Vol. 3039. P. 136–153.
[19] Е. Kulynych., O. Nazarova, D. Goncharov, S. Chernyshev, &amp; V. Piskun, Laboratory stand with
wireless interface for investigation of automatic control systems of dc electric drives, Electrical
Engineering and Power Engineering, 2021, 3, pp. 24-36, doi: 10.15588/1607-6761-2020-3-3.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <article-title>3.1. Development of HVDCP Detection Algorithm for the Programmable Power Supply Based on Quick Charge Technology</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>V.</given-names>
            <surname>Dromenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kudas</surname>
          </string-name>
          ,
          <article-title>Computer-integrated laboratory power source control system</article-title>
          ,
          <source>in: Mechatronic Systems: Innovation and Engineering</source>
          . Kyiv National University of Technology and Design,
          <year>2021</year>
          . pp.
          <fpage>192</fpage>
          -
          <lpage>193</lpage>
          . URL: https://er.knutd.edu.ua/bitstream/123456789/19350/1/MSIE_2021_
          <fpage>P192</fpage>
          -
          <lpage>193</lpage>
          .pdf.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Programmable</given-names>
            <surname>Power Supplies</surname>
          </string-name>
          ,
          <year>2023</year>
          . URL: https://www.astrodynetdi.com/blog/programmablepower-supplies.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <article-title>[3] RS-485 interface in BVP Electronics housing units</article-title>
          ,
          <year>2023</year>
          . URL: https://bvp.com.ua/ua/Art_RS485.php.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Shanliang</given-names>
            <surname>Guan</surname>
          </string-name>
          , Hongmei Duan, Ming Deng, Qisheng Zhang and Binbin Hao,
          <article-title>The application of intelligent power management system in engineering seismograph</article-title>
          ,
          <source>in: 2nd International Conference on Artificial Intelligence, Management Science and Electronic Commerce (AIMSEC)</source>
          ,
          <source>Deng Feng, China</source>
          ,
          <year>2011</year>
          , pp.
          <fpage>4416</fpage>
          -
          <lpage>4418</lpage>
          , doi: 10.1109/AIMSEC.
          <year>2011</year>
          .
          <volume>6009898</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Lanzisera</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. R.</given-names>
            <surname>Weber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Liao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pajak</surname>
          </string-name>
          and
          <string-name>
            <given-names>A. K.</given-names>
            <surname>Meier</surname>
          </string-name>
          , Communicating Power Supplies:
          <article-title>Bringing the Internet to the Ubiquitous Energy Gateways of Electronic Devices</article-title>
          ,
          <source>in: IEEE Internet of Things Journal</source>
          , vol.
          <volume>1</volume>
          , no.
          <issue>2</issue>
          , pp.
          <fpage>153</fpage>
          -
          <lpage>160</lpage>
          ,
          <year>April 2014</year>
          , doi: 10.1109/JIOT.
          <year>2014</year>
          .
          <volume>2307077</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>H.</given-names>
            <surname>Runhong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Chengzhi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Xiaoyi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Ming</surname>
          </string-name>
          and
          <string-name>
            <given-names>Z.</given-names>
            <surname>Fuzeng</surname>
          </string-name>
          , The Research and
          <article-title>Application of the Batch Testing Technology for the Power Distribution IOT Intelligence</article-title>
          ,
          <source>in: IEEE 3rd International Conference on Electronic Technology, Communication and Information (ICETCI)</source>
          , Changchun, China,
          <year>2023</year>
          , pp.
          <fpage>85</fpage>
          -
          <lpage>92</lpage>
          , doi: 10.1109/ICETCI57876.
          <year>2023</year>
          .
          <volume>10176497</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Xiong</surname>
          </string-name>
          ,
          <string-name>
            <surname>Dezhi</surname>
          </string-name>
          , et al.
          <article-title>Design of intelligent low-voltage load switch for remote control system in smart grid</article-title>
          ,
          <source>in: Iranian Journal of Science and Technology, Transactions of Electrical Engineering</source>
          ,
          <year>2021</year>
          ,
          <volume>45</volume>
          , pp.
          <fpage>585</fpage>
          -
          <lpage>595</lpage>
          , doi: 10.1007/s40998-020-00370-0.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.</given-names>
            <surname>Rajalingam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Malathi</surname>
          </string-name>
          ,
          <article-title>HEM algorithm based smart controller for home power management system</article-title>
          ,
          <source>Energy and Buildings</source>
          ,
          <year>2016</year>
          ,
          <volume>131</volume>
          , pp.
          <fpage>184</fpage>
          -
          <lpage>192</lpage>
          , doi: 10.1016/j.enbuild.
          <year>2016</year>
          .
          <volume>09</volume>
          .026.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>T. C.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. H.</given-names>
            <surname>Peng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. W.</given-names>
            <surname>Tsai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. H.</given-names>
            <surname>Chen</surname>
          </string-name>
          and
          <string-name>
            <given-names>C. L.</given-names>
            <surname>Wey</surname>
          </string-name>
          ,
          <article-title>Fast Charging and High Efficiency Switching-Based Charger With Continuous Built-In Resistance Detection and Automatic Energy Deliver Control for Portable Electronics</article-title>
          , in:
          <source>IEEE Journal of Solid-State Circuits</source>
          , vol.
          <volume>49</volume>
          , no.
          <issue>7</issue>
          , pp.
          <fpage>1580</fpage>
          -
          <lpage>1594</lpage>
          ,
          <year>July 2014</year>
          , doi: 10.1109/JSSC.
          <year>2014</year>
          .
          <volume>2312411</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Tsyrulnyk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Tromsiuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Borodai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Metelytsya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Nepiyvoda</surname>
          </string-name>
          ,
          <article-title>An Intelligent Adaptive DC Voltage Stabilization with a Digital Control Contour</article-title>
          ,
          <source>in: CEUR Workshop Proceedings (CEURWS.org)</source>
          .
          <year>2023</year>
          . Vol.
          <volume>3403</volume>
          , pp.
          <fpage>248</fpage>
          -
          <lpage>262</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Qualcomm</given-names>
            <surname>Quick Charge Technology</surname>
          </string-name>
          ,
          <year>2023</year>
          . URL: https://goughlui.com/
          <year>2016</year>
          /05/29/reviewteardown-anker-powercore-10050
          <string-name>
            <surname>-</surname>
          </string-name>
          a1310
          <string-name>
            <surname>-</surname>
          </string-name>
          qc2-0
          <string-name>
            <surname>-</surname>
          </string-name>
          power-bank.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [12]
          <article-title>Introduction to Quick Charge 2.0 and 3</article-title>
          .0,
          <year>2023</year>
          . URL: https://www.graniteriverlabs.com/enus/technical-blog/
          <article-title>qualcomm-quickcharge-qc2-qc3.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Handshaking</given-names>
            <surname>Between Adjustable HVDCP Adapters and Battery Chargers. Application Report SLUA786 (PDF) - Texas Instruments</surname>
          </string-name>
          ,
          <year>2016</year>
          . URL: https://www.ti.com/lit/pdf/slua786.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>