IR switching device, system and method based on electromagnetic coil control
The IR switching device controlled by the electromagnetic coil realizes zero-delay switching of the IR switching chip in the cat's eye video monitoring system, solves the problems of complex testing and low efficiency in the existing technology, and improves switching time and positioning accuracy.
Patent Information
- Application Number
- CN202510594285.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-09-05
AI Technical Summary
The existing technology requires multiple tests under different light environments to verify the IR switching device of the cat's eye video surveillance, which makes the test complicated and inefficient.
An IR switching device based on electromagnetic coil control is used. Electromagnetic coils A and B are controlled through the programmable GPIO port to achieve precise switching of the IR switching chip between RGB mode and infrared mode. Combined with the light source controller and test execution unit, strict synchronization of the light source mode and the IR chip position is achieved.
Zero-delay switching of IR switching is achieved, which reduces the risk of mechanical wear, shortens switching time and positioning deviation, and improves test efficiency and accuracy.
Smart Images

Figure CN120602775A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cat's eye video surveillance, and in particular to an IR switching device, system and method based on electromagnetic coil control. Background Art
[0002] In view of the need to ensure that the resolution requirements can be met both during the day and at night for the current cat's eye project and video surveillance project in the factory, the design will add IR_cut switching to achieve scene switching.
[0003] According to the current operating method, it is necessary to first perform white light focusing at the designed distance (i.e., RGB mode, the test environment wavelength is 650nm), then perform a power test under white light to ensure that there is no focus deviation after dispensing, and then adjust the IR film to night working mode using a magnet to verify the resolution (IR mode, wavelength is 940nm). This requires setting up two different environments for testing. Summary of the Invention
[0004] In view of the technical defects and drawbacks in the prior art, the embodiments of the present invention provide an IR switching device, system, and method based on electromagnetic coil control to overcome or at least partially solve the above problems. The specific solutions are as follows:
[0005] As a first aspect of the present invention, there is provided an IR switching device based on electromagnetic coil control, comprising:
[0006] An electronic test board, on which a first GPIO port GPIO2 and a second GPIO port GPIO3 with programmable control are provided;
[0007] The electromagnetic coil A and the electromagnetic coil B are electrically connected to the GPIO2 and GPIO3 respectively;
[0008] a core assembly configured to displace in response to a magnetic field generated by the electromagnetic coil;
[0009] an IR switch sheet, mechanically connected to the core assembly and having an RGB mode position and an infrared mode position;
[0010] in:
[0011] When GPIO2 outputs a high level and GPIO3 outputs a low level, electromagnetic coil A generates a magnetic field to attract the iron core component to position the IR switch to the RGB mode position;
[0012] When GPIO2 outputs a low level and GPIO3 outputs a high level, the electromagnetic coil B generates a magnetic field to attract the iron core component to position the IR switch to the infrared mode position.
[0013] Furthermore, the electromagnetic coils A and B adopt a symmetrical winding structure, and the directions of their magnetic poles are configured to generate magnetic forces in opposite directions, and the iron core assembly comprises a soft magnetic alloy material with a magnetic permeability of 2000-5000μ.
[0014] Furthermore, it also includes a return spring assembly, the elastic coefficient of which matches the magnetic force of the electromagnetic coil and is configured to return the iron core assembly to an initial neutral position when the electromagnetic coil is de-energized.
[0015] Furthermore, the core assembly is provided with a guide groove structure, the travel trajectory of which forms an angle of 60-75 degrees with the moving direction of the IR switching piece, and the inner wall of the guide groove is provided with a polytetrafluoroethylene lubricating layer.
[0016] As a second aspect of the present invention, there is provided an optical testing system, comprising:
[0017] An IR switching device as described in any one of the above;
[0018] A light source controller configured to control the backlight panel to switch between an IR light source and an RGB light source;
[0019] Test control module, including:
[0020] A light source driving unit, used for generating a light source switching instruction;
[0021] An electromagnetic control unit configured to generate a corresponding GPIO level combination according to a current light source mode;
[0022] The test execution unit is used to start the corresponding test item after detecting that the IR switch piece reaches the target position.
[0023] Furthermore, the working logic of the electromagnetic control unit includes:
[0024] When switching to RGB light source, a GPIO2 high-level pulse signal lasting 500ms is generated and then the device enters low-power maintenance mode;
[0025] When switching to the IR light source, a GPIO3 activation signal containing three pulse width modulations is generated to achieve gradual magnetic force enhancement.
[0026] Furthermore, the test execution unit is integrated with a position calibration module, which includes:
[0027] Laser ranging sensor, real-time monitoring of the displacement of the IR switch piece;
[0028] The feedback compensation circuit automatically adjusts the GPIO output voltage amplitude when the displacement deviation is detected to exceed 150μm.
[0029] Furthermore, a thermal management component is included, which includes:
[0030] The temperature sensor is attached to the surface of the electromagnetic coil;
[0031] The heat dissipation fins are connected to the coil housing via shape memory alloy brackets;
[0032] When the coil temperature is detected to be above 60°C, the cooling fins will be automatically deployed and forced air cooling will be triggered.
[0033] As a third aspect of the present invention, there is provided an IR mode switching control method, comprising:
[0034] receiving a mode switching instruction via a software interface;
[0035] If you switch to RGB mode:
[0036] Output a step-up voltage signal to GPIO2 and apply a reverse bias voltage to GPIO3 at the same time;
[0037] Detecting the acceleration curve of the core assembly through a Hall sensor array;
[0038] Dynamic damping adjustment is triggered when the displacement velocity reaches a preset threshold;
[0039] To switch to infrared mode:
[0040] Generate a frequency-modulated GPIO3 drive signal whose carrier frequency matches the resonant frequency of the core assembly;
[0041] The current closed-loop control is used to maintain the magnetic flux density of the electromagnetic coil B stable in the range of 0.8-1.2T.
[0042] Furthermore, it also includes exception handling mechanisms:
[0043] When the target position is not reached after three consecutive switching actions, execute:
[0044] Activate the backup solenoid pair;
[0045] Switching to redundant control circuits;
[0046] Generate device status logs and upload them to the cloud diagnostic platform;
[0047] The driving current of the spare electromagnetic coil pair is configured to be 1.2-1.5 times that of the main coil group.
[0048] The present invention has the following beneficial effects:
[0049] 1. This invention uses a dual-coil collaborative drive mechanism, where electromagnetic coils A / B are connected to independent GPIO ports (GPIO2 / GPIO3), to achieve precise control of the magnetic field direction, avoid magnetic field cancellation, and achieve zero-delay mode switching: high / low levels directly drive the corresponding coils, achieving zero-delay mode switching. The measured mode switching time is shortened from 120ms with a traditional mechanical structure to 35ms (based on the GPIO level trigger mechanism).
[0050] 2. By replacing the traditional mechanical transmission mechanism with electromagnetic drive, the number of moving parts is greatly reduced, the risk of gear transmission wear is eliminated, and the failure rate is reduced from 2.3% of the traditional solution to 0.7%.
[0051] 3. Through the linear relationship between magnetic field strength and core displacement, the positioning deviation of the IR switch is controlled within ±50μm. The reverse magnetic field configuration reduces the magnetic field leakage around the device to below 10mT. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a working principle diagram of the IR switching device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0054] An embodiment of the present invention provides an IR switching device based on electromagnetic coil control, comprising:
[0055] An electronic test board, on which a first GPIO port GPIO2 and a second GPIO port GPIO3 with programmable control are provided;
[0056] The electromagnetic coil A and the electromagnetic coil B are electrically connected to the GPIO2 and GPIO3 respectively;
[0057] a core assembly configured to displace in response to a magnetic field generated by the electromagnetic coil;
[0058] an IR switch sheet, mechanically connected to the core assembly and having an RGB mode position and an infrared mode position;
[0059] See also Figure 1 As shown, the working principle of the IR switching device is as follows:
[0060] When GPIO2 outputs a high level and GPIO3 outputs a low level, electromagnetic coil A generates a magnetic field to attract the iron core component to position the IR switch to the RGB mode position;
[0061] When GPIO2 outputs a low level and GPIO3 outputs a high level, the electromagnetic coil B generates a magnetic field to attract the iron core component to position the IR switch to the infrared mode position.
[0062] In the above embodiment, the programmable GPIO port (GPIO2 / 3) serves as the driving signal source, the dual electromagnetic coils (A / B) are respectively connected to the two GPIOs to form an independent control loop, the iron core assembly serves as the magnetic transmission mechanism, and the IR switching piece serves as the execution end, with a clear RGB / infrared dual position; the activated electromagnetic coil is selected by the GPIO level combination (high / low), and the attraction / release of the iron core is achieved by the generation / disappearance of the electromagnetic field, and a direct mapping relationship between the magnetic force and the mechanical displacement is achieved (magnetic field → iron core displacement → IR piece positioning).
[0063] The present invention uses a dual-coil collaborative drive mechanism in which electromagnetic coils A / B are connected to independent GPIO ports (GPIO2 / GPIO3) to achieve precise control of the magnetic field direction, avoid mutual cancellation of magnetic fields, and achieve zero-delay mode switching: high / low levels directly drive the corresponding coils to achieve zero-delay mode switching. The measured mode switching time is shortened from 120ms with traditional mechanical structures to 35ms (based on the GPIO level trigger mechanism).
[0064] By replacing the traditional mechanical transmission mechanism with electromagnetic drive, the number of moving parts is greatly reduced, the risk of gear transmission wear is eliminated, and the failure rate is reduced from 2.3% of the traditional solution to 0.7%.
[0065] Through the linear relationship between magnetic field strength and iron core displacement, the positioning deviation of the IR switch is controlled within ±50μm, and the reverse magnetic field configuration reduces the magnetic field leakage around the device to below 10mT.
[0066] Optionally, the electromagnetic coils A and B adopt a symmetrical winding structure, and the directions of their magnetic poles are configured to generate magnetic forces in opposite directions, and the iron core assembly comprises a soft magnetic alloy material with a magnetic permeability of 2000-5000μ.
[0067] In the above embodiment, symmetrical winding ensures consistency of magnetic field distribution, reverse magnetic pole configuration avoids magnetic field interference (such as coil A is NS pole and coil B is SN pole), and high magnetic permeability ensures fast magnetization response (hysteresis loss <5%).
[0068] In some embodiments, a return spring assembly is further included, wherein the spring constant of the spring assembly matches the magnetic force of the electromagnetic coil and is configured to return the core assembly to an initial neutral position when the electromagnetic coil is de-energized.
[0069] Through the above embodiment, a reset mechanism is added, and the spring coefficient must satisfy: F_spring ≤ F_magnetic × 80% (to ensure that the electromagnetic force can overcome the elastic force). A compression spring (such as spring steel) is preferably used, and the preload is controlled at 0.5-1.2N. When the electromagnetic coil is powered off, the spring force drives the iron core back to the neutral position to prevent the IR chip from being stuck in a non-target position due to power failure.
[0070] Furthermore, the core assembly is provided with a guide groove structure, the travel trajectory of which forms an angle of 60-75 degrees with the moving direction of the IR switching piece, and the inner wall of the guide groove is provided with a polytetrafluoroethylene lubricating layer.
[0071] Through the above embodiment, the mechanical transmission structure is optimized, and the 60-75° angle forms an inclined transmission effect, which converts the linear motion of the iron core into the compound motion of the IR plate. The angle optimization formula is: tanθ = (displacement stroke) / (IR plate movement distance); wherein, the polytetrafluoroethylene coating thickness is 20-50μm, and the friction coefficient is <0.1, which reduces mechanical wear.
[0072] An embodiment of the present invention further provides an optical testing system, comprising:
[0073] An IR switching device as described in any one of the above;
[0074] A light source controller configured to control the backlight panel to switch between an IR light source and an RGB light source;
[0075] Test control module, including:
[0076] A light source driving unit, used for generating a light source switching instruction;
[0077] An electromagnetic control unit configured to generate a corresponding GPIO level combination according to a current light source mode;
[0078] The test execution unit is used to start the corresponding test item after detecting that the IR switch piece reaches the target position.
[0079] In the above embodiment, the IR switching device serves as an actuator, the light source controller implements IR / RGB light source switching (switching time <100ms), the test control module implements closed-loop control (instruction → switching → detection → test), the light source mode is strictly synchronized with the IR chip position (timing deviation <10ms), and the test item triggering requires position verification (such as photoelectric sensor feedback).
[0080] In some embodiments, the operating logic of the electromagnetic control unit includes:
[0081] When switching to RGB light source, a GPIO2 high-level pulse signal lasting 500ms is generated and then the device enters low-power maintenance mode;
[0082] When switching to the IR light source, a GPIO3 activation signal containing three pulse width modulations is generated to achieve gradual magnetic force enhancement.
[0083] In the above embodiment, the control strategy is refined, a 500ms high-level pulse provides instantaneous starting energy (peak current can reach 1.2A), the maintenance mode current is reduced to below 200mA (energy-saving design), the PWM modulation frequency is 1-5kHz (avoiding mechanical resonance frequency), and three pulse width increases (30%→60%→90%) are used to achieve soft start and prevent positioning errors caused by core impact (overshoot <0.1mm).
[0084] In some embodiments, the test execution unit is integrated with a position calibration module, which includes:
[0085] Laser ranging sensor, real-time monitoring of the displacement of the IR switch piece;
[0086] The feedback compensation circuit automatically adjusts the GPIO output voltage amplitude when the displacement deviation is detected to exceed 150μm.
[0087] In the above embodiment, a precision calibration function is added, the laser ranging sensor has an accuracy of ±10μm, a sampling frequency ≥1kHz (real-time tracking of motion trajectory), and a voltage adjustment step of 0.1V (corresponding to a magnetic force change of approximately 0.05N).
[0088] In some embodiments, a thermal management assembly is also included, comprising:
[0089] The temperature sensor is attached to the surface of the electromagnetic coil;
[0090] The heat dissipation fins are connected to the coil housing via shape memory alloy brackets;
[0091] When the coil temperature is detected to be above 60°C, the cooling fins will be automatically deployed and forced air cooling will be triggered.
[0092] In the above embodiment, a thermal management system is integrated, the 60°C trigger threshold is based on the coil insulation level, the phase transition temperature of the shape memory alloy (such as Ni-Ti alloy) is set to 55°C, and the heat dissipation area increases by 300-500% after expansion.
[0093] An embodiment of the present invention further provides an IR mode switching control method, comprising:
[0094] receiving a mode switching instruction via a software interface;
[0095] If you switch to RGB mode:
[0096] Output a step-up voltage signal to GPIO2 and apply a reverse bias voltage to GPIO3 at the same time;
[0097] Detecting the acceleration curve of the core assembly through a Hall sensor array;
[0098] Dynamic damping adjustment is triggered when the displacement velocity reaches a preset threshold;
[0099] To switch to infrared mode:
[0100] Generate a frequency-modulated GPIO3 drive signal whose carrier frequency matches the resonant frequency of the core assembly;
[0101] The current closed-loop control is used to maintain the magnetic flux density of the electromagnetic coil B stable in the range of 0.8-1.2T.
[0102] In the above embodiment, the RGB mode control reduces the current impact by using a step voltage (e.g., 0V→1.5V→3.3V, 50ms per step), and the reverse bias voltage of -0.5V to -1V accelerates the magnetic field decay of coil A. The infrared mode control frequency modulation range is 80-120Hz (matching the mechanical resonant frequency of the core), and the magnetic flux density closed-loop control: the coil current is sampled every 10ms, and the PWM duty cycle is adjusted by the table lookup method.
[0103] In some embodiments, an exception handling mechanism is also included:
[0104] When the target position is not reached after three consecutive switching actions, execute:
[0105] Activate the backup solenoid pair;
[0106] Switching to redundant control circuits;
[0107] Generate device status logs and upload them to the cloud diagnostic platform;
[0108] The driving current of the spare electromagnetic coil pair is configured to be 1.2-1.5 times that of the main coil group.
[0109] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An IR switching device based on electromagnetic coil control, characterized in that: include: An electronic test board, on which a first GPIO port GPIO2 and a second GPIO port GPIO3 with programmable control are provided; The electromagnetic coil A and the electromagnetic coil B are electrically connected to the GPIO2 and GPIO3 respectively; a core assembly configured to displace in response to a magnetic field generated by the electromagnetic coil; an IR switch sheet, mechanically connected to the core assembly and having an RGB mode position and an infrared mode position; in: When GPIO2 outputs a high level and GPIO3 outputs a low level, electromagnetic coil A generates a magnetic field to attract the iron core component to position the IR switch to the RGB mode position; When GPIO2 outputs a low level and GPIO3 outputs a high level, the electromagnetic coil B generates a magnetic field to attract the iron core component to position the IR switch to the infrared mode position.
2. The IR switching device based on electromagnetic coil control according to claim 1, characterized in that: The electromagnetic coils A and B adopt a symmetrical winding structure, and the directions of their magnetic poles are configured to generate magnetic forces in opposite directions. The iron core component comprises a soft magnetic alloy material with a magnetic permeability of 2000-5000μ.
3. The IR switching device based on electromagnetic coil control according to claim 2, characterized in that: The invention also includes a return spring assembly, the spring constant of which matches the magnetic force of the electromagnetic coil and is configured to return the iron core assembly to an initial neutral position when the electromagnetic coil is de-energized.
4. The IR switching device based on electromagnetic coil control according to claim 1, characterized in that: The core assembly is provided with a guide groove structure, the travel trajectory of which forms an angle of 60-75 degrees with the moving direction of the IR switch piece, and the inner wall of the guide groove is provided with a polytetrafluoroethylene lubricating layer.
5. An optical testing system, characterized in that: include: The IR switching device according to any one of claims 1 to 4; A light source controller configured to control the backlight panel to switch between an IR light source and an RGB light source; Test control module, including: A light source driving unit, used for generating a light source switching instruction; An electromagnetic control unit configured to generate a corresponding GPIO level combination according to a current light source mode; The test execution unit is used to start the corresponding test item after detecting that the IR switch piece reaches the target position.
6. The optical testing system according to claim 5, characterized in that: The working logic of the electromagnetic control unit includes: When switching to RGB light source, a GPIO2 high-level pulse signal lasting 500ms is generated and then the device enters low-power maintenance mode; When switching to the IR light source, a GPIO3 activation signal containing three pulse width modulations is generated to achieve gradual magnetic force enhancement.
7. The optical testing system according to claim 5, wherein: The test execution unit is integrated with a position calibration module, which includes: Laser ranging sensor, real-time monitoring of the displacement of the IR switch piece; The feedback compensation circuit automatically adjusts the GPIO output voltage amplitude when the displacement deviation is detected to exceed 150μm.
8. The optical testing system according to claim 5, wherein: Also included are thermal management components, including: The temperature sensor is attached to the surface of the electromagnetic coil; The heat dissipation fins are connected to the coil housing via shape memory alloy brackets; When the coil temperature is detected to be above 60°C, the cooling fins will be automatically deployed and forced air cooling will be triggered.
9. An IR mode switching control method, characterized in that: include: receiving a mode switching instruction via a software interface; If you switch to RGB mode: Output a step-up voltage signal to GPIO2 and apply a reverse bias voltage to GPIO3 at the same time; Detecting the acceleration curve of the core assembly through a Hall sensor array; Dynamic damping adjustment is triggered when the displacement velocity reaches a preset threshold; To switch to infrared mode: Generate a frequency-modulated GPIO3 drive signal whose carrier frequency matches the resonant frequency of the core assembly; The current closed-loop control is used to maintain the magnetic flux density of the electromagnetic coil B stable in the range of 0.8-1.2T.
10. The control method according to claim 9, characterized in that: It also includes exception handling mechanisms: When the target position is not reached after three consecutive switching actions, execute: Activate the backup solenoid pair; Switching to redundant control circuits; Generate device status logs and upload them to the cloud diagnostic platform; The driving current of the spare electromagnetic coil pair is configured to be 1.2-1.5 times that of the main coil group.
Citation Information
Patent Citations
Visible light and near-infrared light switching mechanism based on electromagnetic driving
CN108873570A
Double-filter test method and device, equipment and storage medium
CN110505477A
Control circuit, camera module, terminal, method, device and storage medium
CN112788220A
Electromagnetic operating device
CN1479929A
Testing machine based on double-optical-filter switcher
CN204479275U