Arduino architecture-based monitoring built-in module and terminal
By embedding the monitoring built-in module based on the Arduino architecture in the terminal device to detect and limit the working current, the problem of damage to the terminal device due to the sudden increase in working current is solved, and the equipment is high reliability and low maintenance costs are achieved.
Patent Information
- Application Number
- CN202421640528.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2034-07-11
AI Technical Summary
When the working current of existing terminal equipment suddenly increases, it is easy to cause the USB chip to burn and cause equipment losses. Especially when the equipment is spread wide and exported overseas, the maintenance cost is high.
Design a built-in monitoring module based on the Arduino architecture, which can detect the working voltage and working current inside the terminal, and directly cut off the power supply when it exceeds the allowable range to prevent equipment damage. The module includes an Arduino microcontroller, an output voltage regulation and switching circuit module, and a detection and setting limiting current module, which can achieve current limiting through data communication and power control.
Effectively prevent terminal equipment from being damaged due to excessive working current, reduce maintenance costs, and improve equipment reliability and adaptability, especially when the equipment is spread wide and exported overseas.
Smart Images

Figure CN222952688U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of monitoring equipment, and in particular to a monitoring built-in module and terminal based on Arduino architecture. Background Art
[0002] Some terminals connected to computers, such as POS machines and printers, use data cables to connect to the USB chip on the motherboard for communication. If the working current suddenly increases during operation, the USB chip will burn out, causing equipment loss. When the equipment is distributed over a wide area, the manpower and material resources required for repair and maintenance will be very large, especially when some equipment is exported overseas, the problem will be more prominent.
[0003] The reasons for the sudden increase in working current are:
[0004] The power cable used by the printer is relatively thin, and the instantaneous current exceeds the safety threshold when the printer is working. In the on-site example, the instantaneous pulse ripple reaches more than 6V, which is far higher than the USB chip safety voltage. The circuits connected to the printer and even the PC motherboard circuit will be damaged.
[0005] The quality of the on-site input power supply is poor, and surges and undervoltage are very prominent, which will cause current shocks and signal interference during the use of the equipment.
[0006] The design of the crosstalk prevention measures between the USB ports on the motherboard is not perfect. When multiple USB devices are working at the same time, current pulse interference is prone to occur. Summary of the invention
[0007] The present application provides a monitoring built-in module and terminal based on the Arduino architecture, which has better adaptability and can be directly implanted into an existing terminal to detect the working voltage and working current inside the terminal, and directly cut off the power supply when the working voltage and working current exceed the allowable range.
[0008] The above-mentioned purpose of the present application is achieved through the following technical solutions:
[0009] In a first aspect, the present application provides a monitoring built-in module based on the Arduino architecture, comprising:
[0010] Arduino microcontroller, configured to communicate data with the host;
[0011] an output voltage regulating and switching circuit module configured to deliver power outputted by the host to the printer;
[0012] A detection and setting current limiting module is configured to be connected to the module power input circuit and to communicate data with the Arduino microcontroller;
[0013] Among them, the output voltage adjustment and switching circuit module also communicates data with the Arduino microcontroller.
[0014] In a possible implementation of the first aspect, the device further includes a display module electrically connected to the Arduino microcontroller;
[0015] When the preset current limit value is reached, the display module is lit.
[0016] In a possible implementation manner of the first aspect, the output voltage adjustment and switch circuit module includes:
[0017] Adjustable potentiometer;
[0018] A solenoid valve is electrically connected to the adjustable potentiometer;
[0019] The adjustable power supply integrated circuit is electrically connected to the control end of the adjustable potentiometer and the control end of the electromagnetic valve.
[0020] In a possible implementation manner of the first aspect, the module for detecting and setting the current limit includes a voltage and current detection circuit.
[0021] In a possible implementation manner of the first aspect, the voltage and current detection circuit includes an INA sensor.
[0022] In a possible implementation of the first aspect, a communication module electrically connected to the Arduino microcontroller is further included, and the communication module is configured to upload to the cloud.
[0023] In a possible implementation manner of the first aspect, the communication module includes a 4G module.
[0024] In a second aspect, the present application provides a terminal, comprising a monitoring built-in module based on the Arduino architecture as described in the first aspect and any implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 This is a schematic structural diagram of a monitoring built-in module based on the Arduino architecture provided by the present application.
[0026] Figure 2 It is a structural schematic block diagram of an output voltage adjustment and switching circuit module provided in the present application.
[0027] Figure 3 This is a circuit diagram of an output voltage adjustment and switching circuit module provided by the present application.
[0028] Figure 4 This is a peripheral circuit diagram of an INA219 sensor provided in this application.
[0029] Figure 5 This is a connection diagram between a display module and an Arduino microcontroller provided in this application.
[0030] In the figure, 1. Arduino microcontroller, 2. Detection and setting current limit module, 3. Output voltage adjustment and switch circuit module, 4. Communication module, 5. Display module, 31. Adjustable potentiometer, 32. Solenoid valve, 33. Adjustable power supply integrated circuit. DETAILED DESCRIPTION
[0031] In order to more clearly understand the technical solution of the present application, the relevant contents are first introduced.
[0032] Arduino is a combination of a single-chip microcomputer + external circuit, including hardware (various types of Arduino boards) and software (ArduinoIDE). It is built on an open source simple I / O panel and has a Processing / Wiring development environment using languages similar to Java and C.
[0033] Arduino mainly consists of two parts: the hardware part is the Arduino circuit board that can be used to make circuit connections; the other is the Arduino IDE. As long as you write the program code in the IDE and upload the program to the Arduino circuit board, the program will tell the Arduino circuit board what to do.
[0034] Arduino can sense the environment through various sensors, and can feedback and influence the environment by controlling lights, motors and other devices. The microcontroller on the board can be programmed using the Arduino programming language, compiled into a binary file, and burned into the microcontroller.
[0035] From the above description, we can see that Arduino is a platform that can directly develop functions.
[0036] The technical solution in this application is further described in detail below in conjunction with the accompanying drawings.
[0037] This application discloses a monitoring built-in module based on the Arduino architecture, see Figure 1 In some examples, the monitoring built-in module based on the Arduino architecture disclosed in the present application includes an Arduino microcontroller 1, a current limiting detection and setting module 2, and an output voltage adjustment and switching circuit module 3. The Arduino microcontroller 1 is electrically connected to the host, the current limiting setting module 2, and the output voltage adjustment and switching circuit module 3, and the Arduino microcontroller 1 communicates data with the host.
[0038] The module 2 for detecting and setting the current limit is connected to the analog input port of the Arduino microcontroller.
[0039] The output voltage regulating and switching circuit module 3 is connected to the analog input port of the Arduino microcontroller.
[0040] In some possible implementations, the host communicates with the Arduino microcontroller 1 via a USB serial port, and the Arduino program can be refreshed to achieve functions such as setting the current value and displaying the content of the indicator screen. For example, for different terminals (hosts), the monitoring built-in module based on the Arduino architecture disclosed in this application can be directly connected to the terminal, and the staff can directly set the monitoring built-in module based on the Arduino architecture disclosed in this application through the terminal.
[0041] This approach makes the monitoring built-in module based on the Arduino architecture disclosed in the present application widely adaptable. Without changing the existing architecture of the terminal, there is no need to replace the internal circuit board or design a circuit board with new functions. The monitoring built-in module based on the Arduino architecture disclosed in the present application can be directly deployed inside the terminal.
[0042] The output voltage regulating and switch circuit module 3 is configured to transmit the power outputted by the host to the printer, that is, the power outputted by the host will pass through the output voltage regulating and switch circuit module 3 and then reach the printer. The printer includes various types of POS machines.
[0043] The specific structure of the output voltage adjustment and switch circuit module 3 is as follows Figure 2 and Figure 3 shown.
[0044] In this way, the output voltage and the switch circuit module 3 can be adjusted to control and adjust the power supply, and the control content includes the connection and disconnection of the circuit, and the adjustment content includes the level of the output voltage. As mentioned above, the present application can be deployed at different terminals, and different terminals require different voltages, so it is necessary to adjust the output voltage and the switch circuit module 3 to provide different voltages.
[0045] In some examples, the output voltage adjustment and switching circuit module 3 includes an adjustable potentiometer 31, a solenoid valve 32 and an adjustable power supply integrated circuit 33, the solenoid valve 32 is electrically connected to the adjustable potentiometer 31, and the adjustable power supply integrated circuit 33 is electrically connected to the control end of the adjustable potentiometer 31 and the control end of the solenoid valve 32.
[0046] The adjustable potentiometer 31 is an adjustable electronic component. It is composed of a resistor and a rotating or sliding system. The adjustable potentiometer 31 is a variable resistor used for voltage division, which can adjust the output voltage and the output voltage of the switch circuit module 3.
[0047] The solenoid valve 32 is responsible for the on-off of the circuit.
[0048] The adjustable power supply integrated circuit 33 is responsible for controlling the realization of the above functions. Specifically, after the detection and setting current limit module 2 detects an abnormality, the Arduino microcontroller 1 controls the output voltage adjustment and the switch circuit module 3 to disconnect the circuit; when the host sends an adjustment instruction, the Arduino microcontroller 1 controls the output voltage adjustment and the switch circuit module 3 to adjust the output voltage.
[0049] The module 2 for detecting and setting the current limit is configured to be connected to the module power input circuit and to perform data communication with the Arduino single chip computer 1. The module 2 for detecting and setting the current limit is used to detect the voltage of the module power input circuit and to feed back the voltage value to the Arduino single chip computer 1.
[0050] In some examples, the current limit detection and setting module 2 includes a voltage and current detection circuit.
[0051] In some possible implementations, the voltage and current detection circuit includes an INA219 sensor, which is a shunt and power monitor with an I2C or SMBUS compatible interface. The device connects the two ends of the shunt resistor through the Vin+ and Vin- pins to monitor the shunt voltage drop and bus power supply voltage. The peripheral circuit diagram of the INA219 sensor is shown in Figure 4 shown.
[0052] From the above description, it can be seen that the Arduino microcontroller 1 can directly detect the voltage at a specified location by detecting and setting the current limiting module 2. When the voltage is abnormal, the power supply is cut off by adjusting the output voltage and the switch circuit module 3. This method can effectively protect the specified location.
[0053] For some examples, see Figure 5 A display module 5 electrically connected to the Arduino microcontroller 1 is also added. When the preset limiting current value is reached, the display module 5 is lit.
[0054] In some possible implementations, the display module 5 may be an indicator light.
[0055] In some other possible implementations, the display module 5 may be a display screen.
[0056] The display module 5 is connected to the PWM output port of the Arduino single-chip computer 1, and adopts an LCD display screen. The LED display screen is directly driven by the Arduino single-chip computer 1, and can display information such as voltage, current, and preset limit current.
[0057] In some examples, a communication module 4 electrically connected to the Arduino microcontroller 1 is added, and the communication module 4 is configured to upload to the cloud. Uploading to the cloud here mainly means that when the output voltage is adjusted and the switch circuit module 3 cuts off the power supply, the communication module 4 will upload to the cloud, and the staff can receive the notification in time and handle the situation.
[0058] The communication module 4 is connected to the Arduino microcontroller 1 through the UART bus. The Arduino microcontroller 1 can send the instructions and status information collected and issued from the detection and setting current limit module 2 and the output voltage adjustment and switch circuit module 3 to the 4G module, connect to the Internet through dial-up, upload the information to the cloud server, and the background can monitor the terminal status distributed in various places in real time.
[0059] In some examples, in order to meet the use of terminals (such as POS machines) in scenarios with WIFI networks, a WiFi microcontroller is set to realize WIFI connection to the cloud server and realize the function of background remote monitoring of load current. Exemplarily, the WIFI microcontroller ESP8266 is used as a remote monitoring solution as a supplement to the use of a 4G module for dial-up connection. It has UART-WIFI function, and is connected to the SCL and SDA pins of the INA219 sensor to upload the received data to the cloud via WIFI, which is convenient for remote viewing. The use of ESP8266 as a remote monitoring solution is a supplement to the use of a 4G module for dial-up connection. For example, in some unmanned production scenarios, staff need to be informed of equipment failures through notifications.
[0060] The present application also discloses a terminal, including any one of the monitoring built-in modules based on the Arduino architecture described in the above content, and the terminal includes but is not limited to the printer, POS machine, etc. in this embodiment.
[0061] The embodiments of this specific implementation method are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Therefore, all equivalent changes made based on the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A monitoring built-in module based on Arduino architecture, characterized in that: include: Arduino microcontroller (1), configured to communicate data with a host computer; An output voltage regulating and switching circuit module (3) is configured to transmit power outputted by the host to the printer; A detection and setting current limit module (2) is configured to be connected to a module power input circuit and to communicate data with an Arduino microcontroller (1); The output voltage regulating and switching circuit module (3) also performs data communication with the Arduino single chip computer (1).
2. The monitoring built-in module based on the Arduino architecture according to claim 1, characterized in that: It also includes a display module (5) electrically connected to the Arduino microcontroller (1); When the preset limiting current value is reached, the display module (5) is illuminated.
3. The monitoring built-in module based on Arduino architecture according to claim 1, characterized in that, The output voltage regulating and switching circuit module (3) comprises: Adjustable potentiometer (31); A solenoid valve (32) electrically connected to the adjustable potentiometer (31); The adjustable power supply integrated circuit (33) is electrically connected to the control end of the adjustable potentiometer (31) and the control end of the solenoid valve (32).
4. The monitoring built-in module based on Arduino architecture according to claim 1, characterized in that: The module (2) for detecting and setting the current limit includes a voltage and current detection circuit.
5. The monitoring built-in module based on Arduino architecture according to claim 4, characterized in that: The voltage and current sensing circuits include the INA219 sensor.
6. The monitoring built-in module based on Arduino architecture according to claim 1, characterized in that: It also includes a communication module (4) electrically connected to the Arduino single chip computer (1), and the communication module (4) is configured to upload to the cloud.
7. The monitoring built-in module based on Arduino architecture according to claim 6, characterized in that: The communication module (4) includes a 4G module.
8. The monitoring built-in module based on Arduino architecture according to claim 6, characterized in that: The communication module (4) includes a WiFi microcontroller.
9. A terminal, characterized in that: It comprises a monitoring built-in module based on Arduino architecture as claimed in any one of claims 1 to 8.