Control circuit for realizing keyboard rocker macro definition
By combining the main control module, the storage module and the joystick module, and using the EPROM memory and the on-off switch to realize the macro definition function of the keyboard joystick, it solves the problems of complex circuits and high cost in the existing technology, and provides a simple, low-cost solutions that meet user needs and improve operational convenience.
Patent Information
- Application Number
- CN202420246375.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2034-01-31
AI Technical Summary
The existing keyboard rocker control circuit is complex, costly, difficult to implement macro definition, and cannot meet user needs.
It adopts a combination of main control module, storage module, USB interface circuit, rocker module and button module, and uses EPROM memory and main control chip together with the on-off switch to realize the writing and storage of user-defined instructions, simplifying the circuit structure and reducing costs. .
The macro definition function of the keyboard rocker is realized, with simple operation, low cost and reasonable circuit structure, which meets the needs of users and improves the convenience of operation.
Smart Images

Figure CN221884274U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of electronic equipment, in particular to a control circuit for a keyboard and an upper rocker thereof. Background Art
[0002] In order to improve the convenience and speed of operation, many keyboards are currently equipped with joysticks, and the forward, backward, left, right, and down movements of the joystick are defined as different commands. This is not only more convenient but also faster to operate. Therefore, such keyboards are welcomed by many people, especially in industries such as e-sports, which has led to more and more applications of macro definitions in the keyboard field. However, similar keyboards on the market can generally only provide a few fixed command definitions for joysticks, and cannot achieve true macro definitions, making it difficult to meet user needs. At the same time, even keyboards on the market that can perform macro definitions still have problems such as complex circuit structures, difficult implementation, and high costs. The control circuit that combines the keyboard with the joystick is even more complicated. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a control circuit for realizing keyboard joystick macro definition with simpler circuit structure, more reasonable design, lower cost, more convenient use and easier implementation in view of the defects of the prior art.
[0004] In order to solve the above technical problems, the utility model adopts the following technical solutions: a control circuit for realizing the macro definition of a keyboard joystick, comprising a main control module, a storage module, a USB interface circuit, a joystick module and a key module, wherein the storage module, the USB interface circuit, the joystick module and the key module are respectively connected to the main control module, and the joystick module is connected to the key module, characterized in that: the main control module adopts a main control chip U1, whose model is K201, the storage module adopts an EPROM memory U2, and the memory U2 is connected to the 4th and 5th pins of the main control chip U1; the key module includes at least five on-off switches, and the joystick used by the joystick module includes at least five directions of action: forward, backward, left, right and press, and the number of on-off switches is greater than the number of directions of the action of the joystick; the instruction is written into the memory U2 through the USB interface circuit, and when the keyboard enters the macro definition setting state, the corresponding on-off switch is triggered by operating the joystick to perform any action, and the on-off switch transmits the corresponding trigger signal to the main control chip U1, and the main control chip U1 calls the required instruction from the memory U2 and defines it as the corresponding instruction of the action performed by the joystick.
[0005] The joystick has five directions of movement, namely forward, backward, left, right and press, and is respectively connected to pins 26-28, pin 30, pin 35 and pin 37 of the main control chip U1.
[0006] The key module includes 13 on-off switches K1-K12 and K18, which are respectively connected to pin 34, pin 17-18, pin 21-25, pin 32-33, pin 31 and pin 29 of the main control chip U1 through the on-off switches K1-K12, and the on-off switch K18 is connected to pin 36 of the main control chip U1.
[0007] The model of the memory U2 is 24C16, and its 5th and 6th pins are connected to the 5th and 4th pins of the main control chip U1 respectively.
[0008] The USB interface circuit is connected to the 8th and 9th pins of the main control chip U1, and the USB interface circuit adopts a TypeC_16Pin interface.
[0009] It also includes a light control circuit, which includes a toggle switch, a light control chip U3 and a backlight circuit. The model of the light control chip U3 is D26. The backlight circuit uses a number of light emitting diodes. The toggle switch and the backlight circuit are respectively connected to the light control chip U3. The 10th pin of the light control chip U3 is connected to the 10th pin of the main control chip U1.
[0010] The indicator light circuit also includes an indicator light circuit, which uses a light emitting diode as an indicator light Win Loc, and the indicator light Win Loc is connected to the 48th pin of the main control chip U1.
[0011] The utility model can write and store the user's own instructions in the EPROM storage circuit through the USB interface circuit through the mutual cooperation of the EPROM storage circuit and the main control circuit, the rocker circuit, the on-off switch button circuit and other circuit modules. When the rocker needs to be macro-defined, the rocker is shaken or pressed in the required direction, and then the corresponding on-off switch transmits the signal to the main control, and the main control calls the corresponding instructions from the EPROM and realizes the macro definition of the corresponding action of the rocker. Not only is the operation and use convenient, but the entire circuit structure is simpler and more reasonable, easier to realize, and the cost is lower. It combines the control of keyboard buttons and rockers and can better meet the needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is the circuit diagram of the main control module;
[0013] Figure 2 EPROM is a memory module circuit schematic diagram;
[0014] Figure 3 This is the schematic diagram of the USB interface circuit;
[0015] Figure 4 This is the circuit schematic diagram of the joystick module;
[0016] Figure 5This is the circuit schematic diagram of the on-off switch button module;
[0017] Figure 6 This is the schematic diagram of the lighting control circuit;
[0018] Figure 7 This is the schematic diagram of the indicator light circuit. DETAILED DESCRIPTION
[0019] In this embodiment, refer to Figure 1-Figure 7 The control circuit for realizing the macro definition of keyboard joystick includes a main control module, a storage module, a USB interface circuit, a joystick module and a key module. The storage module, the USB interface circuit, the joystick module and the key module are respectively connected to the main control module, and the joystick module is connected to the key module. It is characterized in that: the main control module adopts the main control chip U1, whose model is K201, and the storage module adopts the EPROM memory U2, and the memory U2 is connected to the 4th and 5th pins of the main control chip U1.
[0020] The joystick has five directions of movement, namely forward, backward, left, right and press. Of course, more directions can be set, such as a cross-shaped distribution. The joystick is respectively connected to pins 26-28, pin 30, pin 35 and pin 37 of the main control chip U1.
[0021] The key module includes 13 on-off switches K1-K12 and K18, through which the on-off switches K1-K12 are respectively connected to the 34th, 17th-18th, 21st-25th, 32nd-33rd, 31st and 29th pins of the main control chip U1, and the on-off switch K18 is connected to the 36th pin of the main control chip U1. Five of the on-off switches correspond to the five actions of the joystick, such as turning on K1-K5. Of course, other on-off switches can also be set to correspond to the joystick.
[0022] The model of the memory U2 is 24C16, and its 5th and 6th pins are respectively connected to the 5th and 4th pins of the main control chip U1. The data of the memory U2 is not lost when the power is off, and the user can burn the key array, light mode, joystick macro definition, etc. according to specific needs.
[0023] The USB interface circuit is connected to the 8th and 9th pins of the main control chip U1, and the USB interface circuit adopts the Type C_16Pin interface. The capacitors C1 and C2 of the USB interface circuit are filter capacitors, the resistors R3 and R4, the capacitors C3 and C4 are safety circuits, and the resistors R1 and R2 are used to determine the insertion direction of the Type_C interface.
[0024] It also includes a light control circuit, which includes a toggle switch, a light control chip U3 and a backlight circuit. The model of the light control chip U3 is D26. The backlight circuit uses a number of RGB light-emitting diodes. The toggle switch and the backlight circuit are respectively connected to the light control chip U3, and the 10th pin of the light control chip U3 is connected to the 10th pin of the main control chip U1. When the toggle switch is turned to the left, all light-emitting diodes are not connected to the power supply, and the lights are turned off; when the toggle switch is turned to the right, the power supply is connected to the light control chip U3, and the main control chip U1 recognizes the light control chip U3 and outputs a light control signal to it, and the light mode is changed by time-sharing scanning.
[0025] The indicator light circuit also includes an indicator light circuit, which uses a light-emitting diode as an indicator light Win Loc. The indicator light Win Loc is connected to the 48th pin of the main control chip U1 to indicate whether WIN is pressed.
[0026] The instructions are written into the memory U2 through the USB interface circuit. When the keyboard enters the macro definition setting state, the corresponding on-off switch is triggered by operating the joystick to perform any action. The on-off switch transmits the corresponding trigger signal to the main control chip U1. The main control chip U1 calls the required instructions from the memory U2 and defines it as the corresponding instruction for the action performed by the joystick. When operating the joystick, when the joystick is pushed forward, backward, left, or right to any angle that deviates from the center angle by more than 20° to the travel limit of 45°, a circuit path will be formed, triggering the corresponding key function; after releasing the joystick, the thrust disappears, and the joystick will automatically reset to the center position. When the angle from the center point is less than 20°, a circuit will be formed, and the key function will stop.
[0027] The present invention has been described in detail above. The above description is only a preferred embodiment of the present invention and should not limit the scope of implementation of the present invention. That is, all equivalent changes and modifications made within the scope of this application should still fall within the scope of the present invention.
Claims
1. A control circuit for realizing keyboard joystick macro definition, comprising a main control module, a storage module, a USB interface circuit, a joystick module and a key module, wherein the storage module, the USB interface circuit, the joystick module and the key module are respectively connected to the main control module, and the joystick module is connected to the key module, characterized in that: The main control module adopts the main control chip U1, whose model is K201, and the storage module adopts EPROM memory U2, and the memory U2 is connected to the 4th and 5th pins of the main control chip U1; the key module includes at least five on-off switches, and the joystick used in the joystick module includes at least five directions of action: forward, backward, left, right and press, and the number of on-off switches is greater than the number of joystick action directions; the instructions are written into the memory U2 through the USB interface circuit, and when the keyboard enters the macro definition setting state, the corresponding on-off switch is triggered by operating the joystick to perform any action, and the on-off switch transmits the corresponding trigger signal to the main control core U1, and the main control chip U1 calls the required instructions from the memory U2 and defines them as the corresponding instructions for the actions performed by the joystick.
2. The control circuit for realizing keyboard joystick macro definition according to claim 1, characterized in that: The joystick has five directions of movement, namely forward, backward, left, right and press, and is respectively connected to pins 26-28, pin 30, pin 35 and pin 37 of the main control chip U1.
3. The control circuit for realizing keyboard joystick macro definition according to claim 2, characterized in that: The key module includes 13 on-off switches K1-K12 and K18, which are respectively connected to pin 34, pin 17-18, pin 21-25, pin 32-33, pin 31 and pin 29 of the main control chip U1 through the on-off switches K1-K12, and the on-off switch K18 is connected to pin 36 of the main control chip U1.
4. The control circuit for realizing keyboard joystick macro definition according to claim 1, characterized in that: The model of the memory U2 is 24C16, and its 5th and 6th pins are connected to the 5th and 4th pins of the main control chip U1 respectively.
5. The control circuit for realizing keyboard joystick macro definition according to claim 1, characterized in that: The USB interface circuit is connected to the 8th and 9th pins of the main control chip U1.
6. The control circuit for realizing keyboard joystick macro definition according to claim 5, characterized in that: The USB interface circuit adopts TypeC_16Pin.
7. The control circuit for realizing keyboard joystick macro definition according to claim 1, characterized in that: It also includes a light control circuit, which includes a toggle switch, a light control chip U3 and a backlight circuit. The model of the light control chip U3 is D26. The backlight circuit uses a number of light emitting diodes. The toggle switch and the backlight circuit are respectively connected to the light control chip U3. The 10th pin of the light control chip U3 is connected to the 10th pin of the main control chip U1.
8. The control circuit for realizing keyboard joystick macro definition according to claim 1, characterized in that: The circuit also includes an indicator light circuit, which uses a light emitting diode as an indicator light, and the indicator light is connected to the 48th pin of the main control chip U1.
