A micro switch life test system

By controlling the combination of a DC motor and a toggle lever through an embedded system, the life of the micro switch can be automatically tested, solving the problems of low efficiency and poor reliability in traditional methods and achieving efficient and accurate life detection.

CN113359023BActive Publication Date: 2025-10-03SHANDONG STARTE MEASUREMENT & CONTROL EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110780545.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2025-10-03
Estimated Expiration
2041-07-09

AI Technical Summary

Technical Problem

Traditional micro switch life detection methods require manual participation or complex mechanical devices, which are inefficient, unreliable, and difficult to record the number of toggles.

Method used

An embedded system is used to control the uniform rotation of the DC motor. The evenly distributed micro switches are continuously toggled by the toggle lever. Combined with the circular fixing plate and spring claw fixing method, the micro switches are automatically closed and opened, the number of switches is recorded, and an audible and visual alarm is issued.

Benefits of technology

The automation, reliability and consistency of micro switch life test are achieved, which reduces costs, improves test efficiency and accuracy, and avoids the uncertainty of manual operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113359023B_ABST
    Figure CN113359023B_ABST
Patent Text Reader

Abstract

The present application discloses a microswitch life test device, comprising a circular fixed disk, a DC motor fixed at the center of the circular fixed disk, a plurality of microswitches evenly distributed near the edge of the circular fixed disk, a toggle lever fixed above the DC motor, the DC motor comprising a motor body and a motor shaft, one end of the toggle lever fixed to the motor shaft, the other end of the toggle lever being free and resting against the inside of the microswitch, and the toggle lever, driven by the DC motor, being able to continuously toggle the evenly distributed microswitches, thereby closing and opening the microswitches. The device has the following advantages: the DC motor is controlled to rotate at a constant speed by an embedded system, and the motor drives the toggle lever to continuously close and open the microswitches evenly distributed along the edge of the circular fixed disk, thereby testing the life of the microswitches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic control technology, specifically to controlling the action of a micro switch through an embedded control system to test the life of the micro switch, record the number of switches and emit an audible and visual alarm. The automatic control process and control method are also introduced in detail. Background Art

[0002] Currently, there are numerous control technologies and methods in the field of automatic control, but most use PLCs as control systems. PLCs are expensive, have low data storage capacity, and lack the flexibility of embedded systems for personalized design. Using a single-chip microcomputer or ARM chip as the main control chip and independently designing peripheral control circuits reduces costs while easily implementing functions such as key control, LCD display, 485 communication, large-capacity data storage, signal acquisition, and signal output control (such as audible and visual alarm output and motor drive).

[0003] Micro switches are widely used in daily production and life, and are found in many products. Examples include mouse buttons and valves with position detection functions. The lifespan of a micro switch is directly related to the overall lifespan of the product, making micro switch life testing a mandatory inspection item before shipment. Traditional micro switch life testing methods require manual operation or complex mechanical devices to replace manual operation. Manual operation is inefficient and unreliable, while mechanical devices are complex and costly, and the number of times the switch is operated is difficult to record. In other words, traditional testing methods make it difficult to efficiently and reliably complete switch life testing and data recording. Summary of the Invention

[0004] The present invention addresses the above shortcomings by providing a microswitch life test device. This device, controlled by an embedded system, rotates a DC motor at a constant speed. The motor drives a toggle lever to continuously close and open microswitches evenly distributed along the edge of a circular fixed plate to test the life of the microswitches. The device is simple and flexible, avoiding the complexity and uncertainty of manual switch testing and requiring no complex mechanical components. The fully automated process improves testing efficiency, reliability, and consistency.

[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0006] A micro switch life test device includes a circular fixed disk, a DC motor is fixed at the center of the circular fixed disk, and a plurality of micro switches are evenly arranged near the edge of the circular fixed disk. A toggle rod is fixed above the DC motor, and the DC motor includes a motor body and a motor shaft. One end of the toggle rod is fixed to the motor shaft, and the other end of the toggle rod is a free end that presses against the inner side of the micro switch. Driven by the DC motor, the toggle rod can continuously toggle the evenly distributed micro switches to realize the closing and opening operations of the micro switches.

[0007] Furthermore, a circular groove is provided at the center of the circular fixing disk, and the circular groove is arranged with the center of the circular fixing disk as the center of the circle;

[0008] The motor body is fixed in a circular groove by three flat-head screws. The size of the circular groove is adapted to the size of the motor body. The top plane of the flat-head screw does not exceed the plane of the circular fixed disk. The motor shaft is connected to the toggle rod, and the toggle rod and the motor shaft rotate at the same angular velocity.

[0009] Furthermore, a plurality of square grooves are evenly arranged near the edge of the circular fixed disk, and all the square grooves are arranged along an arc with the center of the circular fixed disk as the center of the circle. The micro switches are fixed in the square grooves, and the number and size of the square grooves are adapted to the number and size of the micro switches.

[0010] Furthermore, the micro switch includes a micro switch body, a spring claw is provided above the micro switch body, one end of the spring claw is fixed to the circular fixing plate by a spring claw fixing screw, and the other end of the spring claw is pressed against the upper surface of the micro switch body, and the height of the highest point of the spring claw from the upper surface of the micro switch is half of the thickness of the micro switch.

[0011] Furthermore, a micro switch reed is installed on the side of the micro switch body facing the center of the circular fixed disk, one end of the micro switch reed is fixed to the micro switch body, and the other end of the micro switch reed is a free end. The free end of the toggle rod is pressed against the micro switch reed, and a micro switch button is installed between the micro switch reed and the micro switch body.

[0012] A control system for a micro switch life test device includes a CPU and a storage module, an audible and visual alarm module, a power supply module, and a motor drive and switch action detection module. The audible and visual alarm module and the motor drive and switch action detection module are connected to the CPU and the storage module, and the power supply module supplies power to each module.

[0013] Furthermore, the CPU and storage module includes a CPU chip U1, which serves as a main control chip;

[0014] Pin 1 and pin 100 of the CPU chip U1 are connected to one end of capacitor C2 and to +3.3V, and the other end of capacitor C2 is grounded; pin 8 of the CPU chip U1 is connected to one end of crystal oscillator Y1 and one end of capacitor C3; pin 9 of the CPU chip U1 is connected to the other end of crystal oscillator Y1 and one end of capacitor C4; the other end of capacitor C3 and the other end of capacitor C4 are grounded;

[0015] Pin 23 of the CPU chip U1 is connected to pin 7 of the chip U2 and one end of the resistor R7, pin 24 of the CPU chip U1 is connected to pin 6 of the chip U2 and one end of the resistor R8, pin 25 of the CPU chip U1 is connected to pin 5 of the chip U2 and one end of the resistor R9, the other end of the resistor R7, the other end of the resistor R8 and the other end of the resistor R9 are connected to +3.3V, pin 8 of the chip U2 is connected to one end of the capacitor C5 and connected to +3.3V, the other end of the capacitor C5 is grounded, and the chip U2 is a storage chip.

[0016] Furthermore, the sound and light alarm module includes a transistor Q6, the base of the transistor Q6 is connected to one end of the resistor R4, the other end of the resistor R4 is connected to pin 67 of the CPU chip U1, the emitter of the transistor Q6 is grounded, the collector of the transistor Q6 is connected to one end of the diode D4 and one end of the alarm B1, the other end of the diode D4 and the other end of the alarm B1 are both connected to one end of the resistor R3, and the other end of the resistor R3 is connected to +5V;

[0017] The sound and light alarm module also includes a resistor R5 and a resistor R6, one end of the resistor R5 is connected to pin 58 of the CPU chip U1, the other end of the resistor R5 is connected to one end of the light-emitting diode LED1, and the other end of the light-emitting diode LED1 is grounded, one end of the resistor R6 is connected to pin 53 of the CPU chip U1, the other end of the resistor R6 is connected to one end of the light-emitting diode LED2, and the other end of the light-emitting diode LED2 is grounded.

[0018] Furthermore, the power supply module includes a chip U3, the model of the chip U3 is LM22676-ADJ, the 7th pin of the chip U3 is connected to one end of the capacitor C7, one end of the resistor R10, one end of the capacitor C6 and one end of the diode D2, the other end of the diode D2 is connected to the VIN+ power supply, the other end of the capacitor C7 and the other end of the capacitor C6 are grounded, the other end of the resistor R10 is connected to one end of the resistor R11 and the 5th pin of the chip U3, the other end of the resistor R11 is grounded, the 6th pin and the 9th pin of the chip U3 are grounded, the 4th pin of the chip U3 is connected to one end of the resistor R12 and one end of the resistor R13, the other end of the resistor R13 is grounded, and the 8th pin of the chip U3 is connected to the capacitor C8 One end, one end of the diode D3 and one end of the inductor L1, the other end of the capacitor C8 is connected to pin 1 of the chip U3, the other end of the inductor L1 is connected to the other end of the resistor R12, one end of the capacitor C9, one end of the capacitor C10, one end of the capacitor C11 and pin 2 of the chip U4, and connected to the +5V power supply, pin 1 of the chip U4, the other end of the capacitor C9, the other end of the capacitor C10, the other end of the capacitor C11 and the other end of the diode D3 are grounded, pin 3 of the chip U4 is connected to one end of the capacitor C12 and one end of the capacitor C13, and connected to +3.3V, the other end of the capacitor C12 and the other end of the capacitor C13 are grounded, the model of the chip U4 is XC62FP3302PR;

[0019] The power supply module also includes a chip U5, the model of which is LM1117MPX-ADJ. Pin 3 of the chip U5 is connected to one end of the capacitor C14 and the D pin of the MOS tube Q2, the other end of the capacitor C14 is grounded, the S pin of the MOS tube Q2 is connected to one end of the resistor R15 and to +5V, the G pin of the MOS tube Q2 and the other end of the resistor R15 are connected to the collector of the transistor Q1, the emitter of the transistor Q1 is grounded, the base of the transistor Q1 is connected to one end of the resistor R14, the other end of the resistor R14 is connected to pin 46 of the CPU chip U1, pins 2 and 4 of the chip U5 are connected to one end of the resistor R16, one end of the capacitor C15 and one end of the resistor R18, the other end of the resistor R18 is connected to +3.8V, the other end of the resistor R16 is connected to pin 1 of the chip U5 and one end of the resistor R17, the other end of the resistor R17 and the other end of the capacitor C15 are grounded.

[0020] Furthermore, the motor drive and switch action detection module includes a chip U6. The chip U6 can control the rotation of the DC motor. In this embodiment, DRV8837 is taken as an example. Pin 8 of the chip U6 is connected to one end of the capacitor C16 and connected to +3.3V. The other end of the capacitor C16 is grounded. Pin 7 of the chip U6 is connected to one end of the resistor R19. One end of the resistor R19 is connected to pin 46 of the CPU chip U1. Pin 6 of the chip U6 is connected to one end of the resistor R20. One end of the resistor R20 is connected to pin 47 of the CPU chip U1. Pin 5 of the chip U6 is connected to one end of the resistor R21. One end of the resistor R21 is connected to pin 48 of the CPU chip U1.

[0021] Pin 1 of the chip U6 is connected to one end of capacitor C17 and to +3.8V, and the other end of capacitor C17 is grounded. Pin 2 of the chip U6 is connected to pin 14 of the connector J1, and pin 3 of the chip U6 is connected to pin 15 of the connector J1. Pin 11 of the connector J1 is connected to one end of resistor R22, one end of resistor R23 and one end of capacitor C18. The other end of resistor R23 is connected to +3.3V, and the other end of capacitor C18 is grounded. The other end of resistor R22 is connected to pin 69 of the CPU chip U1. Pin 12 of the connector J1 is connected to one end of resistor R25, one end of resistor R24 ​​and one end of capacitor C19. The other end of resistor R25 is connected to +3.3V, and the other end of capacitor C19 is grounded. The other end of resistor R24 ​​is connected to pin 68 of the CPU chip U1.

[0022] The present invention adopts the above technical solution, which has the following technical effects compared with the prior art:

[0023] 1. Utilizes an embedded system. The hardware circuitry includes: CPU and storage, audio and visual alarm modules, power supply module, motor drive, and switch detection modules. By combining embedded software with hardware circuitry, PWM control is used to drive the DC motor at a constant, adjustable speed, allowing for customized test speed adjustments. The entire process requires no human intervention; it is fully automated by the embedded program, reducing costs, improving efficiency, and ensuring test reliability and consistency.

[0024] 2. Use a circular fixing plate to position and fix the motor and micro switch. There is a support base at the bottom of the circular fixing plate to support the fixing plate and the motor. There is a positioning groove in the center of the circular fixing plate that matches the shape of the motor, which facilitates accurate positioning of the motor. There are positioning grooves on the edge of the fixing plate that match the shape of the micro switch, which facilitates accurate positioning of the micro switch. The use of grooves not only facilitates the fixation of the motor and micro switch, but also ensures the relative position of the motor, circular fixing plate and micro switch is accurate, so that during the test, the micro switch position will not change slightly due to the toggle lever constantly toggling. This further improves the reliability and consistency of the test and can more accurately test the service life of the switch under test;

[0025] 3. There is a spring claw on the circular fixing plate. Instead of using the traditional screw fixing method, it uses a combination of positioning grooves and spring claws to fix the micro switch, which is convenient for quick replacement of the switch;

[0026] 4. A toggle lever is fixed to the motor shaft. The motor's uniform rotation drives the lever, which in turn toggles the reed of each microswitch. When the reed is pressed down, the switch is connected; when the reed is released, the switch is disconnected, thus closing and opening the microswitch. A smooth, round-headed toggle lever replaces manual toggling, eliminating contact with the switch reeds and preventing hand contamination or damage that could affect the appearance of the switch under test. The toggle lever rotates in a single direction, replacing a press perpendicular to the switch direction, to achieve on-off control of the microswitch. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the drawings required for the specific embodiments or the description of the prior art. Similar elements or parts are generally identified by similar reference numerals throughout the drawings. Elements or parts in the drawings are not necessarily drawn to scale.

[0028] Figure 1 Schematic diagram of the structure of the micro switch life test device of the present invention;

[0029] Figure 2 Schematic diagram of the structure of the micro switch in the present invention;

[0030] Figure 3 Schematic diagram of the structure of the circular fixed disk in the present invention;

[0031] Figure 4 For the present invention Figure 3 AA cross-sectional structural diagram;

[0032] Figure 5 It is a circuit diagram of the CPU, storage module and sound and light alarm module in the present invention;

[0033] Figure 6 This is a circuit diagram of the power module in the present invention;

[0034] Figure 7 This is a circuit diagram of the motor drive and switch action detection module in the present invention;

[0035] In the figure: 1-micro switch body; 2-toggle lever; 3-motor body; 4-motor shaft; 5-circular fixing plate; 6-spring claw; 7-spring claw fixing screw; 8-micro switch reed; 9-micro switch button, 10-square groove, 11-circular groove. DETAILED DESCRIPTION

[0036] Example 1, as Figures 1 to 4As shown, a micro switch life test device includes a circular fixed disk 5, a circular groove 11 is provided at the center of the circular fixed disk 5, and the circular groove 11 is set with the center of the circular fixed disk 5 as the center of the circle. A plurality of square grooves 10 are evenly provided near the edge of the circular fixed disk 5, and all the square grooves 10 are arranged along an arc located with the center of the circular fixed disk 5 as the center of the circle. The depth of the square grooves 10 and the circular grooves 11 are both 1 mm.

[0037] A DC motor is also fixed on the circular fixed disk 5. The DC motor includes a motor body 3 and a motor shaft 4. The motor body 3 is fixed in a circular groove 11 by three flat head screws. The size of the circular groove 11 is adapted to the size of the motor body 3. The top plane of the flat head screw does not exceed the plane of the circular fixed disk, which does not affect the rotation of the toggle rod.

[0038] The toggle rod 2 is fixed above the motor body 3, one end of the toggle rod 2 is fixed on the motor shaft 4, and the other end of the toggle rod 2 is a free end. The motor shaft 4 is connected to the toggle rod 2, and the toggle rod 2 and the motor shaft 4 rotate at the same angular velocity, which is used to drive the toggle rod to rotate continuously at a uniform speed.

[0039] A number of micro switches are evenly fixed at the edge of the circular fixing disk 5. The micro switches are fixed in square grooves 10. The number and size of the square grooves 10 are adapted to the number and size of the micro switches. The micro switch includes a micro switch body 1. A spring claw 6 is provided above the micro switch body 1. One end of the spring claw 6 is fixed to the circular fixing disk 5 by a spring claw fixing screw 7. The other end of the spring claw 6 is pressed against the upper surface of the micro switch body 1. The height of the highest point of the spring claw 6 from the upper surface of the micro switch is half of the thickness of the micro switch, so as to facilitate the installation and removal of the micro switch.

[0040] A micro switch reed 8 is installed on the side of the micro switch body 1 facing the center of the circular fixed disk 5. One end of the micro switch reed 8 is fixed to the micro switch body 1, and the other end of the micro switch reed 8 is a free end. The free end of the toggle rod 2 is pressed against the micro switch reed 8. A micro switch button 9 is installed between the micro switch reed 8 and the micro switch body 1. Driven by the DC motor, the toggle rod 2 can continuously toggle the evenly distributed micro switches to realize the closing and opening operations of the switch.

[0041] like Figures 5 to 7 As shown, a control system of a micro switch life test device includes a CPU and a storage module, an audible and visual alarm module, a power supply module, and a motor drive and switch action detection module. The audible and visual alarm module and the motor drive and switch action detection module are connected to the CPU and the storage module, and the power supply module supplies power to each module.

[0042] The CPU and storage module include a CPU chip U1. The CPU chip U1 serves as a main control chip and can adopt various types of chips, including but not limited to 430 series microcontrollers or ARM, etc. This embodiment takes the MSP430F449 microcontroller chip as an example.

[0043] Pin 1 and pin 100 of the CPU chip U1 are connected to one end of capacitor C2 and to +3.3V, and the other end of capacitor C2 is grounded. Pin 8 of the CPU chip U1 is connected to one end of the crystal oscillator Y1 and one end of capacitor C3. Pin 9 of the CPU chip U1 is connected to the other end of the crystal oscillator Y1 and one end of capacitor C4. The other end of capacitor C3 and the other end of capacitor C4 are grounded.

[0044] Pin 23 of the CPU chip U1 is connected to pin 7 of the chip U2 and one end of the resistor R7, pin 24 of the CPU chip U1 is connected to pin 6 of the chip U2 and one end of the resistor R8, pin 25 of the CPU chip U1 is connected to pin 5 of the chip U2 and one end of the resistor R9, the other end of the resistor R7, the other end of the resistor R8 and the other end of the resistor R9 are connected to +3.3V, pin 8 of the chip U2 is connected to one end of the capacitor C5 and connected to +3.3V, and the other end of the capacitor C5 is grounded. Chip U2 is a storage chip used to store the number of switch actions, record fault information, etc. This embodiment takes FM24CL64 as an example.

[0045] The sound and light alarm module includes a transistor Q6, the base of the transistor Q6 is connected to one end of the resistor R4, the other end of the resistor R4 is connected to pin 67 of the CPU chip U1, the emitter of the transistor Q6 is grounded, the collector of the transistor Q6 is connected to one end of the diode D4 and one end of the alarm B1, the other end of the diode D4 and the other end of the alarm B1 are both connected to one end of the resistor R3, and the other end of the resistor R3 is connected to +5V.

[0046] The sound and light alarm module also includes a resistor R5 and a resistor R6, one end of the resistor R5 is connected to pin 58 of the CPU chip U1, the other end of the resistor R5 is connected to one end of the light-emitting diode LED1, and the other end of the light-emitting diode LED1 is grounded, one end of the resistor R6 is connected to pin 53 of the CPU chip U1, the other end of the resistor R6 is connected to one end of the light-emitting diode LED2, and the other end of the light-emitting diode LED2 is grounded.

[0047] The power supply module includes a chip U3, the model of which is LM22676-ADJ. Pin 7 of the chip U3 is connected to one end of a capacitor C7, one end of a resistor R10, one end of a capacitor C6, and one end of a diode D2. The other end of the diode D2 is connected to the VIN+ power supply. The other end of the capacitor C7 and the other end of the capacitor C6 are grounded. The other end of the resistor R10 is connected to one end of a resistor R11 and pin 5 of the chip U3. The other end of the resistor R11 is grounded. Pins 6 and 9 of the chip U3 are grounded. Pin 4 of the chip U3 is connected to one end of a resistor R12 and one end of a resistor R13. The other end of the resistor R13 is grounded. Pin 8 of the chip U3 is connected to one end of a capacitor C8. , one end of the diode D3 and one end of the inductor L1, the other end of the capacitor C8 is connected to pin 1 of the chip U3, the other end of the inductor L1 is connected to the other end of the resistor R12, one end of the capacitor C9, one end of the capacitor C10, one end of the capacitor C11 and pin 2 of the chip U4, and connected to the +5V power supply, pin 1 of the chip U4, the other end of the capacitor C9, the other end of the capacitor C10, the other end of the capacitor C11 and the other end of the diode D3 are grounded, pin 3 of the chip U4 is connected to one end of the capacitor C12 and one end of the capacitor C13, and connected to +3.3V, the other end of the capacitor C12 and the other end of the capacitor C13 are grounded. The model of chip U4 is XC62FP3302PR.

[0048] The power supply module also includes a chip U5, the model of which is LM1117MPX-ADJ. Pin 3 of the chip U5 is connected to one end of the capacitor C14 and the D pin of the MOS tube Q2, the other end of the capacitor C14 is grounded, the S pin of the MOS tube Q2 is connected to one end of the resistor R15 and to +5V, the G pin of the MOS tube Q2 and the other end of the resistor R15 are connected to the collector of the transistor Q1, the emitter of the transistor Q1 is grounded, the base of the transistor Q1 is connected to one end of the resistor R14, the other end of the resistor R14 is connected to pin 46 of the CPU chip U1, pins 2 and 4 of the chip U5 are connected to one end of the resistor R16, one end of the capacitor C15 and one end of the resistor R18, the other end of the resistor R18 is connected to +3.8V, the other end of the resistor R16 is connected to pin 1 of the chip U5 and one end of the resistor R17, the other end of the resistor R17 and the other end of the capacitor C15 are grounded.

[0049] The motor drive and switch action detection module includes a chip U6, which can control the rotation of the DC motor. In this embodiment, DRV8837 is taken as an example. Pin 8 of the chip U6 is connected to one end of the capacitor C16 and connected to +3.3V. The other end of the capacitor C16 is grounded. Pin 7 of the chip U6 is connected to one end of the resistor R19, and one end of the resistor R19 is connected to pin 46 of the CPU chip U1. Pin 6 of the chip U6 is connected to one end of the resistor R20, and one end of the resistor R20 is connected to pin 47 of the CPU chip U1. Pin 5 of the chip U6 is connected to one end of the resistor R21, and one end of the resistor R21 is connected to pin 48 of the CPU chip U1.

[0050] Pin 1 of the chip U6 is connected to one end of capacitor C17 and to +3.8V, and the other end of capacitor C17 is grounded. Pin 2 of the chip U6 is connected to pin 14 of the connector J1, and pin 3 of the chip U6 is connected to pin 15 of the connector J1. Pin 11 of the connector J1 is connected to one end of resistor R22, one end of resistor R23 and one end of capacitor C18. The other end of resistor R23 is connected to +3.3V, and the other end of capacitor C18 is grounded. The other end of resistor R22 is connected to pin 69 of the CPU chip U1. Pin 12 of the connector J1 is connected to one end of resistor R25, one end of resistor R24 ​​and one end of capacitor C19. The other end of resistor R25 is connected to +3.3V, and the other end of capacitor C19 is grounded. The other end of resistor R24 ​​is connected to pin 68 of the CPU chip U1.

[0051] The specific control methods are as follows:

[0052] Connect the microswitches to the DC motor via a circular mounting plate and a toggle lever. The microswitches are fixed into 1mm-deep grooves on the edge of the mounting plate at 30° intervals. When the motor rotates counterclockwise at a constant speed, the toggle lever contacts the reed of each switch, connecting the switch contacts. When the toggle lever is released, the switch contacts disconnect. The control system can determine which switch is on and off and record the number of on-off cycles. To facilitate the program code's identification of each numbered switch, the toggle lever is pressed against the reed of microswitch #1, turning on microswitch #1. This serves as the system's initial power-up and the starting point for each lap. The toggle lever is initially positioned between microswitches 1 and 12. During initial system startup, the program code controls the DC motor, rotating the toggle lever counterclockwise. When the toggle lever depresses the reed of switch 1, turning it on, a system timer begins. Every five seconds, the toggle lever depresses the reed of the next switch. When the switch is on, the corresponding CPU pin is low; when the switch is off, the corresponding pin is high. If the CPU fails to detect a switch on or off within the fixed five-second interval, it deems the switch faulty. The system records the switch number and issues an audible and visual alarm via a buzzer and LED. The combination of an embedded system, a DC motor, and a simple mechanical structure allows for easy microswitch life testing. To facilitate microswitch replacement, a spring-loaded claw and a groove secure each microswitch. Each circular mounting plate can hold up to twelve microswitches, allowing each circuit to test up to twelve switches simultaneously.

[0053] The description of the present invention has been presented for purposes of illustration and description and is not intended to be exhaustive or to limit the invention to the form disclosed. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described in order to better illustrate the principles of the invention and its practical application and to enable those skilled in the art to understand the invention and design various embodiments with various modifications as are suited for specific applications.

Claims

1. A micro switch life test system, characterized by: It includes a control system and a micro switch life test device, wherein the control system is applied to the micro switch life test device; The control system includes a CPU and a storage module, an audible and visual alarm module, a power supply module, and a motor drive and switch action detection module. The audible and visual alarm module and the motor drive and switch action detection module are connected to the CPU and the storage module, and the power supply module supplies power to each module. The micro switch life test device comprises a circular fixed disk (5), a DC motor is fixed at the center of the circular fixed disk (5), a plurality of micro switches are evenly arranged near the edge of the circular fixed disk (5), a toggle rod (2) is fixed above the DC motor, the DC motor comprises a motor body (3) and a motor shaft (4), one end of the toggle rod (2) is fixed to the motor shaft (4), and the other end of the toggle rod (2) is a free end that presses against the inner side of the micro switch, and the toggle rod (2) continuously toggles the evenly distributed micro switches under the drive of the DC motor to achieve the closing and opening operations of the micro switches; A plurality of square grooves (10) are evenly arranged near the edge of the circular fixed disk (5), and all the square grooves (10) are arranged along an arc with the center of the circular fixed disk (5) as the center. The micro switches are fixed in the square grooves (10), and the number and size of the square grooves (10) are adapted to the number and size of the micro switches. The micro switch comprises a micro switch body (1), a spring claw (6) is provided above the micro switch body (1), one end of the spring claw (6) is fixed to the circular fixing plate (5) by a spring claw fixing screw (7), and the other end of the spring claw (6) is pressed against the upper surface of the micro switch body (1), and the height of the highest point of the spring claw (6) from the upper surface of the micro switch is half the thickness of the micro switch; A circular groove (11) is provided at the center of the circular fixing disk (5), and the circular groove (11) is arranged with the center of the circular fixing disk (5) as the center of the circle; The motor body (3) is fixed in the circular groove (11) by three flat head screws. The size of the circular groove (11) is adapted to the size of the motor body (3). The top plane of the flat head screw does not exceed the plane of the circular fixed disk. The motor shaft (4) is connected to the toggle rod (2). The toggle rod (2) and the motor shaft (4) rotate at the same angular velocity. A micro switch reed (8) is installed on one side of the micro switch body (1) facing the center of the circular fixed disk (5), one end of the micro switch reed (8) is fixed to the micro switch body (1), the other end of the micro switch reed (8) is a free end, the free end of the toggle rod (2) is pressed against the micro switch reed (8), and a micro switch button (9) is installed between the micro switch reed (8) and the micro switch body (1); The micro switch is connected to the DC motor through the circular fixed plate and the toggle rod. The micro switch is fixed to the square groove on the edge of the circular fixed plate every 30°. The depth of the square groove is 1mm. When the DC motor rotates counterclockwise in one direction at a constant speed, the toggle rod touches each micro switch reed. At this time, the micro switch contacts are connected. After the toggle rod leaves, the micro switch contacts are disconnected. The control system determines which micro switch is on and off and records the number of on and off times. In order to facilitate the program code in the CPU and storage module to locate each numbered switch, the toggle rod presses the 1# micro switch reed so that the 1# micro switch is turned on. As the control system is first powered on and the starting timing point of each circle, the initial position of the toggle rod is between the 1# micro switch and the 12# micro switch. The control system is first started When the micro switch is in motion, the motor drive and switch action detection module controls the DC motor to drive the toggle rod to rotate counterclockwise. When the toggle rod presses the reed of the 1# micro switch to turn it on, the control system timer starts timing. Every 5 seconds, the toggle rod presses the reed of the next micro switch. When the micro switch is turned on, the corresponding pins of the CPU and storage module are low level. When the micro switch is turned off, the corresponding pins of the CPU and storage module are high level. Within a fixed 5-second interval, if the CPU and storage module cannot detect whether the micro switch in the corresponding position is turned on or off, it is considered that the micro switch has failed. The control system records the number of this switch and sends an audible and visual alarm through the audible and visual alarm module. The life of the micro switch is detected through the cooperation of the control system, DC motor and simple mechanical structure.

2. A micro switch life test system according to claim 1, characterized in that: The CPU and storage module includes a CPU chip U1, which serves as the main control chip; Pin 1 and pin 100 of the CPU chip U1 are connected to one end of capacitor C2 and to +3.3V, and the other end of capacitor C2 is grounded; pin 8 of the CPU chip U1 is connected to one end of crystal oscillator Y1 and one end of capacitor C3; pin 9 of the CPU chip U1 is connected to the other end of crystal oscillator Y1 and one end of capacitor C4; the other end of capacitor C3 and the other end of capacitor C4 are grounded; Pin 23 of the CPU chip U1 is connected to pin 7 of the chip U2 and one end of the resistor R7, pin 24 of the CPU chip U1 is connected to pin 6 of the chip U2 and one end of the resistor R8, pin 25 of the CPU chip U1 is connected to pin 5 of the chip U2 and one end of the resistor R9, the other end of the resistor R7, the other end of the resistor R8 and the other end of the resistor R9 are connected to +3.3V, pin 8 of the chip U2 is connected to one end of the capacitor C5 and connected to +3.3V, the other end of the capacitor C5 is grounded, and the chip U2 is a storage chip.

3. The micro switch life test system according to claim 1, wherein: The sound and light alarm module includes a transistor Q6, the base of the transistor Q6 is connected to one end of a resistor R4, the other end of the resistor R4 is connected to pin 67 of the CPU chip U1, the emitter of the transistor Q6 is grounded, the collector of the transistor Q6 is connected to one end of a diode D4 and one end of an alarm B1, the other end of the diode D4 and the other end of the alarm B1 are both connected to one end of a resistor R3, and the other end of the resistor R3 is connected to +5V; The sound and light alarm module also includes a resistor R5 and a resistor R6, one end of the resistor R5 is connected to pin 58 of the CPU chip U1, the other end of the resistor R5 is connected to one end of the light-emitting diode LED1, and the other end of the light-emitting diode LED1 is grounded, one end of the resistor R6 is connected to pin 53 of the CPU chip U1, the other end of the resistor R6 is connected to one end of the light-emitting diode LED2, and the other end of the light-emitting diode LED2 is grounded.

4. The micro switch life test system according to claim 1, wherein: The power supply module includes a chip U3, the model of which is LM22676-ADJ. Pin 7 of the chip U3 is connected to one end of a capacitor C7, one end of a resistor R10, one end of a capacitor C6, and one end of a diode D2. The other end of the diode D2 is connected to the VIN+ power supply. The other end of the capacitor C7 and the other end of the capacitor C6 are grounded. The other end of the resistor R10 is connected to one end of a resistor R11 and pin 5 of the chip U3. The other end of the resistor R11 is grounded. Pins 6 and 9 of the chip U3 are grounded. Pin 4 of the chip U3 is connected to one end of a resistor R12 and one end of a resistor R13. The other end of the resistor R13 is grounded. Pin 8 of the chip U3 is connected to one end of a capacitor C8. , one end of the diode D3 and one end of the inductor L1, the other end of the capacitor C8 is connected to pin 1 of the chip U3, the other end of the inductor L1 is connected to the other end of the resistor R12, one end of the capacitor C9, one end of the capacitor C10, one end of the capacitor C11 and pin 2 of the chip U4, and connected to the +5V power supply, pin 1 of the chip U4, the other end of the capacitor C9, the other end of the capacitor C10, the other end of the capacitor C11 and the other end of the diode D3 are grounded, pin 3 of the chip U4 is connected to one end of the capacitor C12 and one end of the capacitor C13, and connected to +3.3V, the other end of the capacitor C12 and the other end of the capacitor C13 are grounded, the model of the chip U4 is XC62FP3302PR; The power supply module also includes a chip U5, the model of which is LM1117MPX-ADJ. Pin 3 of the chip U5 is connected to one end of the capacitor C14 and the D pin of the MOS tube Q2, the other end of the capacitor C14 is grounded, the S pin of the MOS tube Q2 is connected to one end of the resistor R15 and to +5V, the G pin of the MOS tube Q2 and the other end of the resistor R15 are connected to the collector of the transistor Q1, the emitter of the transistor Q1 is grounded, the base of the transistor Q1 is connected to one end of the resistor R14, the other end of the resistor R14 is connected to pin 46 of the CPU chip U1, pins 2 and 4 of the chip U5 are connected to one end of the resistor R16, one end of the capacitor C15 and one end of the resistor R18, the other end of the resistor R18 is connected to +3.8V, the other end of the resistor R16 is connected to pin 1 of the chip U5 and one end of the resistor R17, the other end of the resistor R17 and the other end of the capacitor C15 are grounded.

5. The micro switch life test system according to claim 1, characterized in that: The motor drive and switch action detection module includes a chip U6, which controls the rotation of the DC motor. The model of the chip U6 is DRV8837. Pin 8 of the chip U6 is connected to one end of a capacitor C16 and connected to +3.3V. The other end of the capacitor C16 is grounded. Pin 7 of the chip U6 is connected to one end of a resistor R19. One end of the resistor R19 is connected to pin 46 of the CPU chip U1. Pin 6 of the chip U6 is connected to one end of a resistor R20. One end of the resistor R20 is connected to pin 47 of the CPU chip U1. Pin 5 of the chip U6 is connected to one end of a resistor R21. One end of the resistor R21 is connected to pin 48 of the CPU chip U1. Pin 1 of the chip U6 is connected to one end of capacitor C17 and to +3.8V, and the other end of capacitor C17 is grounded. Pin 2 of the chip U6 is connected to pin 14 of the connector J1, and pin 3 of the chip U6 is connected to pin 15 of the connector J1. Pin 11 of the connector J1 is connected to one end of resistor R22, one end of resistor R23 and one end of capacitor C18. The other end of resistor R23 is connected to +3.3V, and the other end of capacitor C18 is grounded. The other end of resistor R22 is connected to pin 69 of the CPU chip U1. Pin 12 of the connector J1 is connected to one end of resistor R25, one end of resistor R24 ​​and one end of capacitor C19. The other end of resistor R25 is connected to +3.3V, and the other end of capacitor C19 is grounded. The other end of resistor R24 ​​is connected to pin 68 of the CPU chip U1.

Citation Information

Patent Citations

  • Testing machine for microswitch

    CN209606578U

  • Microswitch service life testing device and control system thereof

    CN216117917U