Control circuits and circuit boards compatible with both mechanical piano keys and virtual keys
By designing a control circuit compatible with both mechanical piano keys and virtual buttons, and using an isolated switching power supply module to uniformly modulate the power supply voltage, the problem of low production efficiency caused by traditional circuit board separation was solved, achieving compatible layout and stable and reliable use on the same circuit board.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- 中山市羽伦电机有限公司
- Filing Date
- 2025-08-11
- Publication Date
- 2026-07-17
AI Technical Summary
Traditional mechanical piano keys and virtual keys need to be placed on two different circuit boards, resulting in low production efficiency and an inability to increase production capacity.
A control circuit compatible with both mechanical piano keys and virtual buttons was designed. An isolated switching power supply module was used to uniformly modulate the input power supply voltage, and power was supplied to the piano key control module and the virtual button control module respectively. The control module controlled the drive module to operate according to the control signal, so that the mechanical piano keys and virtual buttons could be compatiblely laid out on the same circuit board.
It achieves a compatible layout for both mechanical piano keys and virtual buttons, ensuring stable and reliable use and improving production efficiency.
Smart Images

Figure CN224519497U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of electronic circuit technology, and in particular to a control circuit and circuit board that is compatible with both mechanical piano keys and virtual buttons. Background Technology
[0002] Traditional mechanical piano keys form a power supply branch directly with the load, which is directly connected to a high-voltage input power source. Users can control the load by pressing the mechanical keys. However, for safe and reliable use, virtual keys require the high-voltage input power source to be converted to provide a suitable power supply voltage. The virtual keys are then connected to the control module. When users operate the virtual keys, they output control signals, and the control module controls the load based on these signals. As a result, mechanical piano keys and virtual keys use different voltage levels. To prevent high-voltage interference signals from impacting the virtual keys, mechanical piano keys and virtual keys used to be placed on two separate circuit boards. In the past, electrical appliances on the market were often divided into two categories: one using mechanical piano keys and the other using virtual keys. Therefore, manufacturers needed to set up two production lines to produce the two different circuit boards, resulting in low production efficiency and limited capacity. Utility Model Content
[0003] This invention aims to solve at least one of the technical problems existing in the prior art. To this end, this invention proposes a control circuit and circuit board compatible with both mechanical piano keys and virtual buttons. The reasonable circuit design allows mechanical piano keys and virtual buttons to be compatiblely arranged on the same circuit board, ensuring stable and reliable operation and improving production efficiency.
[0004] A control circuit compatible with mechanical piano keys and virtual keys according to a first aspect embodiment of the present invention includes: an isolated switching power supply module, the input terminal of which is connected to an input power supply; a piano key control module, the output terminal of which is connected to the piano key control module for power supply, the piano key control module being driven to generate a first control signal; a virtual key control module, the output terminal of which is connected to the virtual key control module for power supply, the virtual key control module being driven to generate a second control signal; a drive module, which is connected to a load to drive a load; and a control module, which is connected to the piano key control module, the virtual key control module, and the drive module respectively to control the operation of the drive module according to the first control signal or the second control signal.
[0005] The control circuit compatible with mechanical piano keys and virtual buttons according to the embodiments of this utility model has at least the following beneficial effects:
[0006] This utility model relates to a control circuit compatible with both mechanical piano keys and virtual buttons. It utilizes an isolated switching power supply module to connect to the input power supply. This module uniformly modulates the input power supply and establishes suitable voltage levels to power both the piano key control module and the virtual button control module. When applied to electrical equipment, either the piano key control module or the virtual button control module can be used, or both can be used simultaneously. The control module can control the drive module to operate and drive the load based on a first or second control signal. The rational circuit design allows the mechanical piano keys and virtual buttons to be compatiblely arranged on the same circuit board, ensuring stable and reliable operation and improving production efficiency.
[0007] According to some embodiments of this utility model, the isolated switching power supply module includes a first rectifier unit, a switching power supply unit, a transformer unit, a second rectifier unit, and an output voltage detection unit. The transformer unit includes a primary winding and a secondary winding that are isolated from and coupled to each other. The input terminal of the first rectifier unit is used to connect to an input power supply, and the output terminal of the first rectifier unit is connected to the beginning of the primary winding. The switching power supply unit is provided with a switch element. The end of the primary winding is connected to the input terminal of the switch element, and the output terminal of the switch element is grounded. The secondary winding is connected to the input terminal of the second rectifier unit. The output terminal of the second rectifier unit is connected to the piano key control module and the virtual button control module, respectively. The sampling terminal of the output voltage detection unit is connected to the output terminal of the second rectifier unit to collect the output voltage. The switching power supply unit is connected to the output voltage detection unit to control the switching element to modulate the magnitude of the output voltage according to the output voltage.
[0008] According to some embodiments of this utility model, the isolated switching power supply module further includes a first step-down unit and a second step-down unit. The driving module includes a dimming driving unit. The output terminal of the second rectifier unit is connected to the control module to supply power to the control module. The output terminal of the second rectifier unit is connected to the input terminal of the dimming driving unit and the input terminal of the second step-down unit, respectively. The output terminal of the dimming driving unit is connected to the input terminal of the first step-down unit. The output terminal of the first step-down unit is connected to the LED load to supply power to the LED load. The control module is connected to the controlled terminal of the dimming driving unit to control the operation of the dimming driving unit. The output terminal of the second step-down unit is connected to the piano key control module and the virtual key control module, respectively, so that the output terminal of the second rectifier unit is connected to the piano key control module and the virtual key control module, respectively.
[0009] According to some embodiments of the present invention, the first step-down unit is a BUCK step-down unit, and the second step-down unit is a step-down chip U402.
[0010] According to some embodiments of the present invention, the key control module includes at least two sets of key control units. Each key control unit includes a first key switch, a first resistor, and a second resistor. The output terminal of the second step-down unit is connected to the first end of the first key switch. The tail end of the first key switch is connected to the first end of the first resistor. The tail end of the first resistor is connected to the first end of the second resistor and the control module, respectively. The tail end of the second resistor is grounded.
[0011] According to some embodiments of the present invention, the piano key control module further includes a second push-button switch, the output terminal of the second step-down unit is connected to the first end of the second push-button switch, and the tail end of the second push-button switch is connected to the controlled end of the dimming drive unit.
[0012] According to some embodiments of the present invention, the virtual button control module includes a virtual button component and at least one set of button acquisition units. The virtual button component includes at least one output port. The button acquisition units and the output ports are connected in a one-to-one correspondence. The button acquisition unit includes a third resistor and a fourth resistor. The output terminal of the second rectifier unit is connected to the first end of the third resistor. The tail end of the third resistor is connected to the output port and the first end of the fourth resistor, respectively. The tail end of the fourth resistor is connected to the control module.
[0013] According to some embodiments of this utility model, the control circuit compatible with mechanical piano keys and virtual buttons further includes a motor connection terminal. The motor connection terminal includes a first phase connector, a second phase connector, and a third phase connector. The first phase connector is used to connect to the first winding of the motor, the second phase connector is used to connect to the second winding of the motor, and the third phase connector is used to connect to the third winding of the motor. The drive module includes a motor drive unit, which includes a first switch drive component, a second switch drive component, and a third switch drive component. The input terminal of the first switch drive component is connected to the first phase connector, the input terminal of the second switch drive component is connected to the second phase connector, and the input terminal of the third switch drive component is connected to the third phase connector. The control module is connected to the controlled terminals of the first switch drive component, the second switch drive component, and the third switch drive component, respectively.
[0014] According to some embodiments of this utility model, the control circuit compatible with mechanical piano keys and virtual keys further includes a first current sampling module, a second current sampling module, and a main circuit current sampling module. The sampling terminal of the first current sampling module is connected to the output terminal of the first switch driver, and the sampling terminal of the second current sampling module is connected to the output terminal of the second switch driver. The output terminals of the first switch driver, the second switch driver, and the third switch driver are all grounded through the sampling terminal of the main circuit current sampling module. The control module is connected to the output terminals of the first current sampling module, the second current sampling module, and the main circuit current sampling module, respectively.
[0015] A circuit board according to a second aspect of the present invention includes a circuit board body and a control circuit compatible with mechanical piano keys and virtual keys disclosed in any of the above embodiments, arranged on the circuit board body by means of electronic components.
[0016] The circuit board according to the embodiments of this utility model has at least the following beneficial effects:
[0017] This utility model circuit board features a reasonable circuit design that allows mechanical piano keys and virtual buttons to be compatiblely arranged on the same circuit board, ensuring stable and reliable operation and improving production efficiency.
[0018] Additional aspects and advantages of this invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0019] The above and / or additional aspects and advantages of this utility model will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0020] Figure 1 This is a schematic diagram of one embodiment of the control circuit compatible with mechanical piano keys and virtual keys of this utility model;
[0021] Figure 2 A circuit diagram of an isolated switching power supply module, representing one embodiment of the control circuit compatible with mechanical piano keys and virtual buttons of this utility model;
[0022] Figure 3 This is a circuit diagram of a dimming drive unit, a first step-down unit, and a second step-down unit, representing one embodiment of a control circuit compatible with both mechanical piano keys and virtual buttons of this utility model.
[0023] Figure 4 This is a circuit diagram of the control module of one embodiment of the control circuit compatible with mechanical piano keys and virtual keys of this utility model;
[0024] Figure 5 This is a circuit diagram of the key control module of one embodiment of the control circuit that is compatible with both mechanical piano keys and virtual keys of this utility model.
[0025] Figure 6 This is a circuit diagram of a virtual key control module, representing one embodiment of a control circuit compatible with both mechanical piano keys and virtual keys according to this utility model.
[0026] Figure 7 This is a circuit diagram of the motor drive unit of one embodiment of the control circuit compatible with mechanical piano keys and virtual keys of this utility model.
[0027] Figure label:
[0028] Isolated switching power supply module 100; First rectifier unit 110; Switching power supply unit 120; Transformer unit 130; Primary winding 131; Secondary winding 132; Second rectifier unit 140; Output voltage detection unit 150; First step-down unit 160; Second step-down unit 170; Keyboard control module 200; First push-button switch 210; Second push-button switch 220; First resistor 230; Second resistor 240; Virtual button control module 300; Third resistor 310; Fourth resistor 320; Drive module 400; Dimming drive unit 410; Motor drive unit 420; First switch drive 421; Second switch drive 422; Third switch drive 423; First current sampling module 431; Second current sampling module 432; Main circuit current sampling module 433; Control module 500. Detailed Implementation
[0029] The embodiments of this utility model are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this utility model, and should not be construed as limiting this utility model.
[0030] In the description of this utility model, it should be understood that the directional descriptions, such as the terms "up," "down," "front," "back," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," indicate the directional or positional relationship based on the directional or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this utility model.
[0031] In the description of this utility model, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. If "first" or "second" is used in the description, it is only for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0032] In the description of this utility model, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this utility model based on the specific circumstances.
[0033] like Figures 1 to 7 As shown, the control circuit for mechanical piano keys and virtual keys compatible according to a first aspect embodiment of the present invention includes an isolated switching power supply module 100, a piano key control module 200, a virtual key control module 300, a drive module 400, and a control module 500. The input terminal of the isolated switching power supply module 100 is used to connect to an input power supply, and the output terminal of the isolated switching power supply module 100 is connected to the piano key control module 200 to supply power. The piano key control module 200 is driven to generate a first control signal. The output terminal of the isolated switching power supply module 100 is connected to the virtual key control module 300 to supply power, and the virtual key control module 300 is driven to generate a second control signal. The drive module 400 is used to connect to a load to drive a load. The control module 500 is connected to the piano key control module 200, the virtual key control module 300, and the drive module 400 respectively to control the operation of the drive module 400 according to the first control signal or the second control signal.
[0034] Among them, the piano key control module 200 is a mechanical piano key switch, while the virtual key control module 300 is a touch screen, capacitive touch keys, etc. It should be noted that the piano key control module 200 and the virtual key control module 300 may only include a data acquisition port for acquiring key trigger signals. After the data acquisition port obtains the key trigger signal output by the key switch or the output port, it forms a first control signal or a second control signal.
[0035] The control module 500 can be an MCU or a CPU and its associated circuits. This design can also be applied to fan lights, range hoods, etc., and the load can be a fan or a light.
[0036] This utility model discloses a control circuit compatible with both mechanical piano keys and virtual buttons. It utilizes an isolated switching power supply module 100 to connect to the input power supply. The isolated switching power supply module 100 uniformly modulates the input power supply and forms suitable voltage levels to power both the piano key control module 200 and the virtual button control module 300. When applied to electrical equipment, either the piano key control module 200 or the virtual button control module 300 can be used, or both can be used simultaneously. The control module 500 can control the drive module 400 to drive the load based on a first or second control signal. The reasonable circuit design allows the mechanical piano keys and virtual buttons to be compatiblely arranged on the same circuit board, ensuring stable and reliable operation and improving production efficiency.
[0037] In some embodiments of this utility model, such as Figure 2 As shown, the isolated switching power supply module 100 includes a first rectifier unit 110, a switching power supply unit 120, a transformer unit 130, a second rectifier unit 140, and an output voltage detection unit 150. The transformer unit 130 includes a primary winding 131 and a secondary winding 132 that are isolated from and coupled to each other. The input terminal of the first rectifier unit 110 is used to connect to the input power supply, and the output terminal of the first rectifier unit 110 is connected to the beginning of the primary winding 131. The switching power supply unit 120 is provided with a switching element, and the primary winding 131... The tail end is connected to the input end of the switch, the output end of the switch is grounded, the secondary winding 132 is connected to the input end of the second rectifier unit 140, the output end of the second rectifier unit 140 is connected to the piano key control module 200 and the virtual key control module 300 respectively, the sampling end of the output voltage detection unit 150 is connected to the output end of the second rectifier unit 140 to collect the output voltage, and the switching power supply unit 120 is connected to the output voltage detection unit 150 to control the switching of the switch to modulate the magnitude of the output voltage according to the output voltage.
[0038] The first rectifier unit 110 consists of a full-wave rectifier bridge or a half-wave rectifier bridge composed of multiple rectifier diodes. The switching power supply unit 120 may include a switching power supply chip and its auxiliary circuitry. It is understood that the switching element can be a semiconductor switching transistor, integrated into the switching power supply chip, or a discrete component. The switching power supply chip connects to the controlled terminal of the switching element to control its on / off state. Figure 2As shown, the switching element is integrated into the switching power supply chip. The input terminal of the switching element is the DR terminal of the switching power supply chip. The switching power supply unit 120 can adjust the input voltage to the primary winding 131 by controlling the on and off of the switching element, thereby changing the magnitude of the output voltage of the secondary winding 132. The second rectifier unit 140 can also be composed of multiple rectifier diodes to form a full-wave rectifier bridge or a half-wave rectifier bridge. The second rectifier unit 140 rectifies the AC power output from the primary winding 131 to form a DC output. The output voltage detection unit 150 collects the output voltage and feeds it back to the switching power supply unit 120. The switching power supply unit 120 performs feedback control on the output voltage to maintain the stability of the output voltage.
[0039] In some embodiments of this utility model, the isolated switching power supply module 100 further includes a first step-down unit 160 and a second step-down unit 170. The driving module 400 includes a dimming driving unit 410. The output terminal of the second rectifier unit 140 is connected to the control module 500 to supply power to the control module 500. The output terminal of the second rectifier unit 140 is connected to the input terminal of the dimming driving unit 410 and the input terminal of the second step-down unit 170, respectively. The output terminal of the dimming driving unit 410 is connected to the input terminal of the first step-down unit 160. The output terminal of the first step-down unit 160 is connected to the LED load to supply power to the LED load. The control module 500 is connected to the controlled terminal of the dimming driving unit 410 to control the operation of the dimming driving unit 410. The output terminal of the second step-down unit 170 is connected to the piano key control module 200 and the virtual key control module 300, respectively, so that the output terminal of the second rectifier unit 140 is connected to the piano key control module 200 and the virtual key control module 300, respectively.
[0040] The first step-down unit 160 can step down the output voltage of the second rectifier unit 140. For example, if the output voltage of the second rectifier unit 140 is 24V, the first step-down unit 160 can be a BUCK step-down unit. Figure 3 As shown, the BUCK step-down unit includes a BUCK step-down chip and an inductor L401. The BUCK step-down chip contains a semiconductor switching transistor. The electrical energy output from the second rectifier unit 140 is output to the inductor L401 through the switching transistor. After the inductor L401 stores and discharges energy, the voltage is reduced to 12V or other voltage levels.
[0041] The second step-down unit 170 is the step-down chip U402 and its associated circuitry. The second step-down unit 170 can reduce the voltage to a level of 3.3V or 5V suitable for powering the piano key control module 200 or the virtual button control module 300.
[0042] like Figure 3 As shown, the dimming drive unit 410 includes a switching transistor Q401 and a switching transistor Q402. The input terminal of the switching transistor Q401 is connected to the output terminal of the first step-down unit 160, the output terminal of the switching transistor Q401 is connected to the LED load, the input terminal of the switching transistor Q402 is connected to the controlled terminal of the switching transistor Q401, the output terminal of the switching transistor Q402 is grounded, and the control module 500 is connected to the controlled terminal of the switching transistor Q402. Specifically, both the switching transistors Q401 and Q402 can be transistors, MOSFETs, or thyristors, etc.
[0043] In some embodiments of this utility model, such as Figure 5 As shown, the piano key control module 200 includes at least two sets of piano key control units. Each piano key control unit includes a first key switch 210, a first resistor 230, and a second resistor 240. The output terminal of the second step-down unit 170 is connected to the first end of the first key switch 210, the tail end of the first key switch 210 is connected to the first end of the first resistor 230, the tail end of the first resistor 230 is connected to the first end of the second resistor 240 and the control module 500, and the tail end of the second resistor 240 is grounded.
[0044] The piano key control unit can have three, four or even more sets. Each set of piano key control units can correspond to different functions, such as increasing brightness, decreasing brightness, turning on, off, accelerating, decelerating, etc. The first resistor 230 can be resistor R501, resistor R502, resistor R503, etc., and the second resistor 240 can be resistor R504, resistor R505, resistor R506, etc.
[0045] The user presses the corresponding first button switch 210 according to the needs. The first button switch 210 is closed. The voltage output by the second step-down unit 170 is divided by the first resistor 230 and the second resistor 240 to form a first control signal output to the control module 500. Each key control unit is connected to a different port of the control module 500. The control module 500 can obtain the first control signal from different ports to know the function that needs to be controlled.
[0046] In some embodiments of this utility model, such as Figure 5 As shown, the piano key control module 200 also includes a second key switch 220. The output terminal of the second step-down unit 170 is connected to the first end of the second key switch 220, and the tail end of the second key switch 220 is connected to the controlled end of the dimming drive unit 410.
[0047] Specifically, the tail end of the second push-button switch 220 is connected to the controlled end of the switching transistor Q402. Taking the switching transistor Q402 as an N-type transistor and the switching transistor Q401 as a P-type MOSFET, when the second push-button switch 220 is closed, regardless of whether the control module 500 outputs a control command, both the switching transistors Q402 and Q401 can remain on, and the LED load will light up. This design adds a mechanical control to the LED load to turn on and off simply by relying on the second push-button switch 220, in addition to the software control method of the control module 500, making it more flexible and reliable.
[0048] In some embodiments of this utility model, the virtual button control module 300 includes a virtual button component and at least one set of button acquisition units. The virtual button component includes at least one output port. The button acquisition units and the output ports are connected in a one-to-one correspondence. The button acquisition unit includes a third resistor 310 and a fourth resistor 320. The output terminal of the second rectifier unit 140 is connected to the first end of the third resistor 310. The tail end of the third resistor 310 is connected to the output port and the first end of the fourth resistor 320, respectively. The tail end of the fourth resistor 320 is connected to the control module 500.
[0049] When a user operates the virtual button component, the output voltage of a specific output port is divided by the third resistor 310 and the fourth resistor 320 to form a second control signal, which is output to the control module 500. Specifically, the third resistor 310 can be resistors R701 and R702, and the fourth resistor 320 can be resistors R703 and R704. Each button acquisition unit is connected to a different port of the control module 500. The control module 500 can obtain the second control signal from different ports to determine the function to be controlled.
[0050] In some embodiments of this utility model, such as Figure 7As shown, the control circuit compatible with both mechanical piano keys and virtual buttons also includes a motor connection terminal (not shown in the figure). The motor connection terminal includes a first phase connector (i.e., U phase), a second phase connector (i.e., V phase), and a third phase connector (i.e., W phase). The first phase connector is used to connect to the first winding of the motor, the second phase connector is used to connect to the second winding of the motor, and the third phase connector is used to connect to the third winding of the motor. The drive module 400 includes a motor drive unit 420. The motor drive unit 420 includes a first switch drive 421, a second switch drive 422, and a third switch drive 423. The input terminal of the first switch drive 421 is connected to the first phase connector, the input terminal of the second switch drive 422 is connected to the second phase connector, and the input terminal of the third switch drive 423 is connected to the third phase connector. The control module 500 is connected to the controlled terminals of the first switch drive 421, the second switch drive 422, and the third switch drive 423, respectively.
[0051] The input power supply can be directly connected to the beginning of the first winding, the beginning of the second winding, and the beginning of the third winding of the motor. The first phase connector is connected to the end of the first winding, the second phase connector is connected to the end of the second winding, and the third phase connector is connected to the end of the third winding.
[0052] The first switch driver 421, the second switch driver 422, and the third switch driver 423 can all be chips with integrated semiconductor switching transistors. The control module 500 outputs PWM signals to the first switch driver 421, the second switch driver 422, and the third switch driver 423 to control the on / off state, thereby driving the motor load to run.
[0053] In some embodiments of this utility model, such as Figure 7 As shown, the control circuit compatible with both mechanical piano keys and virtual keys also includes a first current sampling module 431, a second current sampling module 432, and a main circuit current sampling module 433. The sampling terminal of the first current sampling module 431 is connected to the output terminal of the first switch driver 421, and the sampling terminal of the second current sampling module 432 is connected to the output terminal of the second switch driver 422. The output terminals of the first switch driver 421, the second switch driver 422, and the third switch driver 423 are all grounded through the sampling terminal of the main circuit current sampling module 433. The control module 500 is connected to the output terminals of the first current sampling module 431, the second current sampling module 432, and the main circuit current sampling module 433, respectively.
[0054] The first current sampling module 431, the second current sampling module 432, and the main circuit current sampling module 433 all have sampling resistors. The sampling resistor of the first current sampling module 431 is connected in series in the first drive branch connected to the first winding and the first switch drive 421 to detect the first phase current. The sampling resistor of the second current sampling module 432 is connected in series in the second drive branch connected to the second winding and the second switch drive 422 to detect the second phase current. The first drive branch, the second drive branch, and the third drive branch connected to the third winding and the third switch drive 423 are connected in parallel and then connected in series with the sampling resistor of the main circuit current sampling module 433 so that the main circuit current is detected by the main circuit current sampling module 433. The control module 500 determines the operating status of the motor based on the first phase current, the second phase current, and the main circuit current, and feeds back to control the operation of the first switch drive 421, the second switch drive 422, and the third switch drive 423.
[0055] A circuit board according to a second aspect of the present invention includes a circuit board body and a control circuit compatible with mechanical piano keys and virtual keys disclosed in any of the above embodiments, arranged on the circuit board body by means of electronic components.
[0056] This utility model circuit board features a reasonable circuit design that allows mechanical piano keys and virtual buttons to be compatiblely arranged on the same circuit board, ensuring stable and reliable operation and improving production efficiency.
[0057] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0058] Although embodiments of the present invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the present invention, the scope of which is defined by the claims and their equivalents.
Claims
1. A control circuit compatible with both mechanical keys and virtual keys, characterized in that, include: An isolated switching power supply module, the input terminal of which is used to connect to the input power supply; A piano key control module, wherein the output terminal of the isolated switching power supply module is connected to the piano key control module for power supply, and the piano key control module is driven to generate a first control signal; A virtual button control module is provided, wherein the output terminal of the isolated switching power supply module is connected to the virtual button control module for power supply, and the virtual button control module is driven to generate a second control signal. A drive module is used for load connection to drive a load; The control module is connected to the piano key control module, the virtual button control module, and the drive module respectively to control the operation of the drive module according to the first control signal or the second control signal.
2. The mechanical key and virtual key compatible control circuit of claim 1, wherein: The isolated switching power supply module includes a first rectifier unit, a switching power supply unit, a transformer unit, a second rectifier unit, and an output voltage detection unit. The transformer unit includes a primary winding and a secondary winding that are isolated from and coupled to each other. The input terminal of the first rectifier unit is used to connect to the input power supply, and the output terminal of the first rectifier unit is connected to the beginning of the primary winding. The switching power supply unit is provided with a switch element. The end of the primary winding is connected to the input terminal of the switch element, and the output terminal of the switch element is grounded. The secondary winding is connected to the input terminal of the second rectifier unit. The output terminal of the second rectifier unit is connected to the piano key control module and the virtual button control module, respectively. The sampling terminal of the output voltage detection unit is connected to the output terminal of the second rectifier unit to collect the output voltage. The switching power supply unit is connected to the output voltage detection unit to control the switching element to modulate the magnitude of the output voltage based on the output voltage.
3. The mechanical key and virtual key compatible control circuit of claim 2, wherein: The isolated switching power supply module further includes a first step-down unit and a second step-down unit. The driving module includes a dimming driving unit. The output terminal of the second rectifier unit is connected to the control module to supply power to the control module. The output terminal of the second rectifier unit is connected to the input terminal of the dimming driving unit and the input terminal of the second step-down unit, respectively. The output terminal of the dimming driving unit is connected to the input terminal of the first step-down unit. The output terminal of the first step-down unit is connected to the LED load to supply power to the LED load. The control module is connected to the controlled terminal of the dimming driving unit to control the operation of the dimming driving unit. The output terminal of the second step-down unit is connected to the piano key control module and the virtual key control module, respectively, so that the output terminal of the second rectifier unit is connected to the piano key control module and the virtual key control module, respectively.
4. The mechanical key and virtual key compatible control circuit of claim 3, wherein: The first step-down unit is a BUCK step-down unit, and the second step-down unit is a step-down chip U402.
5. The control circuit compatible with both mechanical piano keys and virtual keys according to claim 3, characterized in that: The keyboard control module includes at least two sets of keyboard control units. Each keyboard control unit includes a first key switch, a first resistor, and a second resistor. The output terminal of the second step-down unit is connected to the first end of the first key switch. The tail end of the first key switch is connected to the first end of the first resistor. The tail end of the first resistor is connected to the first end of the second resistor and the control module, respectively. The tail end of the second resistor is grounded.
6. The mechanical key and virtual key compatible control circuit of claim 5, wherein: The piano key control module also includes a second push-button switch. The output terminal of the second step-down unit is connected to the first end of the second push-button switch, and the tail end of the second push-button switch is connected to the controlled end of the dimming drive unit.
7. The mechanical key and virtual key compatible control circuit of claim 3, wherein: The virtual button control module includes a virtual button component and at least one set of button acquisition units. The virtual button component includes at least one output port. The button acquisition units and the output ports are connected in a one-to-one correspondence. The button acquisition unit includes a third resistor and a fourth resistor. The output terminal of the second rectifier unit is connected to the first end of the third resistor. The tail end of the third resistor is connected to the output port and the first end of the fourth resistor, respectively. The tail end of the fourth resistor is connected to the control module.
8. The mechanical key and virtual key compatible control circuit of claim 1, wherein: It also includes a motor connection terminal, which includes a first phase connector, a second phase connector, and a third phase connector. The first phase connector is used to connect to the first winding of the motor, the second phase connector is used to connect to the second winding of the motor, and the third phase connector is used to connect to the third winding of the motor. The drive module includes a motor drive unit, which includes a first switch drive component, a second switch drive component, and a third switch drive component. The input terminal of the first switch drive component is connected to the first phase connector, the input terminal of the second switch drive component is connected to the second phase connector, and the input terminal of the third switch drive component is connected to the third phase connector. The control module is connected to the controlled terminals of the first switch drive component, the second switch drive component, and the third switch drive component, respectively.
9. The mechanical key and virtual key compatible control circuit of claim 8, wherein: It also includes a first current sampling module, a second current sampling module, and a main circuit current sampling module. The sampling terminal of the first current sampling module is connected to the output terminal of the first switch driver, and the sampling terminal of the second current sampling module is connected to the output terminal of the second switch driver. The output terminals of the first switch driver, the second switch driver, and the third switch driver are all grounded through the sampling terminal of the main circuit current sampling module. The control module is connected to the output terminals of the first current sampling module, the second current sampling module, and the main circuit current sampling module, respectively.
10. A wiring board, characterized by It includes a circuit board body and a control circuit compatible with mechanical piano keys and virtual keys as described in any one of claims 1 to 9, arranged on the circuit board body by electronic components.