Self-cleaning camera based on motor control
The self-cleaning camera driven by a motor solves the problem that binocular cameras cannot be mechanically cleaned, enabling automatic or remote cleaning, ensuring lens cleanliness, and improving monitoring effectiveness and equipment intelligence.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2026-03-17
AI Technical Summary
Existing binocular cameras cannot achieve real-time mechanical cleaning, resulting in lens contamination that affects monitoring performance. Furthermore, manual cleaning is time-consuming, labor-intensive, and poses safety hazards.
The self-cleaning camera, controlled by a motor, uses a cleaning component and control system to drive a lens brush head to clean and rotate the main and secondary lenses, achieving automatic or remote cleaning.
It reduces the need for manual cleaning of cameras, keeps lenses clean, avoids blind spots and blurry images, and improves the intelligence and ease of use of the equipment.
Smart Images

Figure CN224006757U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of security technology, and in particular to a self-cleaning camera based on motor control. Background Technology
[0002] With the widespread adoption of security monitoring systems, cameras have become crucial equipment for ensuring public safety. However, cameras exposed to the outdoors for extended periods are susceptible to contaminants such as dust, rain, and bird droppings, leading to a decline in image quality. Currently, common camera cleaning methods rely primarily on manual cleaning or simple mechanical devices, resulting in low efficiency and an inability to perform real-time cleaning. This is especially true for binocular cameras, which, with their dual video output (main and secondary cameras), offer a more comprehensive monitoring perspective and higher image quality. This also means that lens contamination will severely impact monitoring effectiveness. Binocular cameras are typically installed at high or inaccessible locations, lacking corresponding mechanical devices for cleaning the main and secondary cameras. Traditional manual cleaning methods are not only time-consuming and labor-intensive but also pose safety hazards. Utility Model Content
[0003] To address the aforementioned technical problems, this utility model provides a self-cleaning camera based on motor control, thereby solving the problem that existing binocular cameras cannot be mechanically cleaned.
[0004] This utility model provides a self-cleaning camera based on motor control, which includes a camera body, a cleaning component, and a control system; the cleaning component is installed on one side of the main lens and the secondary lens of the camera body, and the control system is electrically connected to the cleaning component;
[0005] The control system generates corresponding drive signals based on triggering conditions, and controls the cleaning components to clean and rotate the main camera lens and the secondary camera lens.
[0006] Optionally, in the motor-controlled self-cleaning camera, the cleaning component includes an upper lens brush head and a lower lens brush head; the control system connects the upper lens brush head and the lower lens brush head, drives the upper lens brush head to rotate to clean the main camera lens, and drives the lower lens brush head 22 to rotate to clean the secondary camera lens.
[0007] Optionally, in the self-cleaning camera based on motor control, the control system includes a main control processor, a communication module, a motor control module, and four motors; the main control processor is connected to the communication module and the motor control module, and the motor control module is connected to the four motors, with the first motor externally connected to the upper lens brush head, the second motor externally connected to the lower lens brush head, the third motor externally connected to the main camera lens, and the fourth motor externally connected to the secondary camera lens;
[0008] The communication module receives remote cleaning instructions and transmits them to the main control processor. The main control processor outputs corresponding control signals to the motor control module according to the remote cleaning instructions or the built-in cleaning instructions. The motor control module generates corresponding drive signals to drive the motor to rotate according to the control signals. When the first motor and the second motor rotate, they control the connected lens brush head to clean the corresponding lens. When the third motor and the fourth motor rotate, they control the connected lens to rotate up, down, left, and right.
[0009] Optionally, in the self-cleaning camera based on motor control, the motor control module includes an input circuit, a brush head control circuit, a gimbal control circuit, a brush head output circuit, and a gimbal output circuit.
[0010] The input circuit is connected to the brush head control circuit, the gimbal control circuit and the main control processor; the brush head control circuit is connected to the first motor and the second motor through the brush head output circuit, and the gimbal control circuit is connected to the third motor and the fourth motor through the gimbal output circuit.
[0011] The input circuit receives control signals and transmits them to the brush head control circuit and the gimbal control circuit. The brush head control circuit generates corresponding drive signals based on the control signals and outputs them through the brush head output circuit to drive the first motor and the second motor to clean the connected lens. The gimbal control circuit generates corresponding drive signals based on the control signals and outputs them through the gimbal output circuit to drive the third motor and the fourth motor to rotate the gimbal of the connected lens.
[0012] Optionally, in the motor-controlled self-cleaning camera, the input circuit includes a first interface, a first capacitor, and a second capacitor;
[0013] Pin 6 of the first interface is connected to pin 21 of the main control processor's UART0_RTS_I2S_DAC_BCLK_SLCD_DC_PB, the brush head control circuit, and the gimbal control circuit; pin 5 of the first interface is connected to pin 20 of the main control processor's UART0_CTS_I2S_ADC_BCLK_SLCD_CS_PB, the brush head control circuit, and the gimbal control circuit; pin 4 of the first interface is connected to pin 17 of the main control processor's PWM0_SSI1_DT_PB, the brush head control circuit, and the gimbal control circuit; the ground pin of the first interface is grounded; the first power pin of the first interface is connected to the first power supply terminal and grounded through the first capacitor; the second power pin of the first interface is connected to the second power supply terminal and grounded through the second capacitor.
[0014] Optionally, in the motor-controlled self-cleaning camera, the brush head control circuit includes a motor drive chip, a first resistor, a second resistor, and a third capacitor.
[0015] The DATA pin of the motor driver chip is connected to one end of the first resistor and pin 5 of the first interface; the LCK pin of the motor driver chip is connected to one end of the second resistor and pin 6 of the first interface; the ADDR and VIO pins of the motor driver chip are both connected to the second power supply terminal, the other end of the first resistor, the other end of the second resistor, and one end of the third capacitor; the AVDD pin of the motor driver chip is connected to one end of the third capacitor, and the other end of the third capacitor is grounded; the FCLK pin of the motor driver chip is connected to pin 4 of the first interface; the M1VCC, M2VCC, and M3VCC pins of the motor driver chip are all connected to the first power supply terminal; the M1_OA, M1_OB, M1_OC, M1_OD, M2_OA, M2_OB, M2_OC, and M2_OD pins of the motor driver chip are all connected to the output circuit; the PGND1, PGND2, PGND3, and E_PAD pins of the motor driver chip are all grounded.
[0016] Optionally, in the self-cleaning camera based on motor control, the brush head output circuit includes a third interface and a fourth interface. Pins 1, 2, 3, and 4 of the third interface are connected one-to-one with pins M1_OA, M1_OB, M1_OC, and M1_OD of the motor driver chip. Pin 5 of the third interface is connected to the first power supply terminal, and pins G1 and G2 of the third interface are both grounded. Pins 1, 2, 3, and 4 of the fourth interface are connected one-to-one with pins M2_OA, M2_OB, M2_OC, and M2_OD of the motor driver chip. Pin 5 of the fourth interface is connected to the first power supply terminal, and pins G1 and G2 of the fourth interface are both grounded. The third interface is connected to a first motor, and the fourth interface is connected to a second motor.
[0017] Optionally, in the motor-controlled self-cleaning camera, the brush head control circuit further includes a second interface, a fourth capacitor, a fifth capacitor, and a sixth capacitor;
[0018] The M3_OA pin of the motor driver chip is connected to one end of the fourth capacitor, one end of the sixth capacitor, and pin 1 of the second interface; the M3_OB pin of the motor driver chip is connected to the other end of the fourth capacitor, one end of the fifth capacitor, and pin 2 of the second interface; the other end of the fifth capacitor, the other end of the sixth capacitor, and pins G1 and G2 of the second interface are all grounded.
[0019] Optionally, in the motor-controlled self-cleaning camera, the brush head control circuit further includes a third resistor, a fourth resistor, a seventh capacitor, and an eighth capacitor.
[0020] One end of the third resistor is connected to one end of the fourth resistor, one end of the eighth capacitor, and the AVDD pin of the motor driver chip; the other end of the third resistor is connected to one end of the third capacitor, the other end of the fourth resistor is connected to the first power supply terminal and one end of the seventh capacitor, and the other ends of the seventh capacitor and the eighth capacitor are both grounded.
[0021] Optionally, in the motor-controlled self-cleaning camera, the brush head control circuit further includes a fifth resistor, a ninth capacitor, and a tenth capacitor;
[0022] One end of the fifth resistor is connected to one end of the ninth capacitor and the FCLK pin of the motor driver chip, and the other end of the fifth resistor is connected to one end of the tenth capacitor and pin 4 of the first interface. The other ends of the ninth capacitor and the tenth capacitor are both grounded.
[0023] The technical solution provided in this embodiment of the invention includes a motor-controlled self-cleaning camera comprising a camera body, a cleaning component, and a control system. The cleaning component is installed on one side of the main and secondary lenses of the camera body, and the control system is electrically connected to the cleaning component. The control system generates corresponding drive signals according to triggering conditions to control the cleaning component to clean and rotate the main and secondary lenses. This reduces the need for manual cleaning of the camera and solves the problem that existing binocular cameras cannot be mechanically cleaned. Attached Figure Description
[0024] Figure 1 This is a structural block diagram of the self-cleaning camera in an embodiment of this utility model.
[0025] Figure 2 This is a circuit diagram of the input circuit and the main control processor in an embodiment of this utility model.
[0026] Figure 3 This is a circuit diagram of the brush head control circuit in an embodiment of this utility model.
[0027] Figure 4 This is a circuit diagram of the brush head output circuit in an embodiment of this utility model. Detailed Implementation
[0028] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. All other embodiments of the present utility model obtained by those skilled in the art without creative effort are within the scope of protection of the present utility model.
[0029] Please also refer to Figures 1 to 4This utility model provides a self-cleaning camera based on motor control, comprising a camera body 10, a cleaning component 20, and a control system 30. The cleaning component 20 is installed on one side of the main camera lens 11 and the secondary camera lens 12 of the camera body 10, and the control system 30 is electrically connected to the cleaning component 20. The control system 30 generates corresponding drive signals according to triggering conditions, controlling the cleaning component 20 to clean and rotate the main camera lens 11 and the secondary camera lens 12.
[0030] The camera body 10 is a conventional binocular camera, comprising a main lens 11 and a secondary lens 12, supporting dual-channel video output. The main lens 11 is primarily responsible for high-definition shooting of the main monitoring area and can rotate 360 degrees. The secondary lens 12 is a wide-angle lens used to assist in monitoring within a fixed field of view, thereby providing more comprehensive monitoring coverage, a wider monitoring angle, and higher image quality. This embodiment mainly improves the circuit structure within the control system 20 to provide an autonomous cleaning function for this binocular camera.
[0031] Based on the structure of the binocular camera, the cleaning component 20 includes an upper lens brush head 21 and a lower lens brush head 22. The control system 30 connects the upper lens brush head 21 and the lower lens brush head 22, driving the upper lens brush head 21 to rotate to clean the main camera lens and driving the lower lens brush head 22 to rotate to clean the secondary camera lens 12. This cleans dust, dirt, and other contaminants from the surfaces of the corresponding camera lenses, completing the cleaning task of the binocular camera.
[0032] The control system 30 includes a main control processor 31, a communication module 32, a motor control module 33, and four motors. The main control processor 31 is connected to the communication module 32 and the motor control module 33. The motor control module 33 is connected to the four motors: the first motor is connected to an upper lens brush head 21, the second motor is connected to a lower lens brush head 22, the third motor is connected to a main camera lens 11, and the fourth motor is connected to a secondary camera lens 12. The communication module 32 receives remote cleaning commands and transmits them to the main control processor 31. The main control processor 31 outputs corresponding control signals to the motor control module 33 according to the remote cleaning commands or built-in cleaning commands. The motor control module 33 generates corresponding drive signals to drive the motors to rotate according to the control signals. When the first and second motors rotate, they control the connected lens brush heads to clean the corresponding lenses. When the third and fourth motors rotate, they control the connected lenses to rotate up, down, left, and right.
[0033] The main control processor 31 and the communication module 32 are integrated on a single motherboard. For ease of motor connection, the motor control module 33 is integrated on a separate circuit board (as an expansion board), and the circuit board and the motherboard are connected by wires. The motherboard and circuit board are located inside the camera body, and the four motors are mounted inside the housing of the camera body 10 and electrically connected to the motor control module 33.
[0034] This embodiment uses four motors, preferably stepper motors. The first motor controls the upper lens brush head 21 to brush back and forth to clean the main lens; it can be set to rotate 90 degrees to complete one cleaning cycle. The second motor controls the lower lens brush head 22 to brush back and forth to clean the secondary lens; it can be set to rotate 180 degrees to complete one cleaning cycle. The third motor is specifically connected to the gimbal of the main lens 11 and controls its rotation (up, down, left, right). The fourth motor is specifically connected to the gimbal of the secondary lens 12 and controls its rotation direction (up, down, left, right) and number of steps. By setting the position of the lens brush heads, it is ensured that the bristles cover the entire lens, ensuring thorough cleaning.
[0035] In this embodiment, the main control processor 10 and the communication module 32 are existing technologies. The main control processor 10 may be a processing device including but not limited to a microprocessor MCU or a programmable logic device FPGA. It internally stores the corresponding computer program used in this embodiment to control the gimbal and brush head rotation functions. By running the computer program stored in the storage, it outputs corresponding control signals to the motor control module 33, thereby performing the cleaning function. Figure 2 Only the connection pins of the main control processor 10 related to this embodiment are shown. Other pins and their connection relationships are existing technologies and will not be described in detail here.
[0036] The communication module 32 is used to communicate with a user terminal (such as a user's mobile phone with a corresponding camera control APP installed). The communication module 32 can use P2P (peer-to-peer) technology, so the camera does not need a fixed IP address; it can communicate with the server through a unique ID, enabling a direct connection between the camera and the user terminal. P2P technology also ensures the stability and timeliness of remote control, allowing users to clean the camera anytime, anywhere, ensuring the clarity of the monitoring image and the normal operation of the monitoring equipment. The user terminal sends a remote cleaning command through the P2P network. After receiving it, the communication module 32 transmits it to the main control processor 10. The main control processor 10 outputs corresponding control signals according to the remote cleaning command. The drive signal output by the motor control module 33 is transmitted to the corresponding motor, thereby driving the brush head in the cleaning component 20 to clean the lens, thus ensuring the clarity of the monitoring image. The communication module 32 can also use wireless communication (WIFI), with its internal WiFi chip transmitting remote cleaning commands to the main control processor 10 via a USB data cable.
[0037] It is important to understand that most existing cameras have built-in storage, alarm, and dirt detection functions. Therefore, the control system 30 also includes a storage module for storing captured video, an alarm module for issuing alarms, and a detection module for detecting dirt on the lens surface. The storage module is connected to the communication module via the main control processor 10, and the alarm and detection modules are connected to the main control processor 10 and the communication module. The main control processor 10 periodically uploads the stored video to the user terminal via the communication module 32, allowing users to view and play it back at any time.
[0038] The triggering conditions include: automatic cleaning when the detection module (photosensitive sensor) detects that the lens surface is obstructed; automatic cleaning when the main control processor 10 determines that stains have appeared based on image processing in the video; automatic cleaning when the main control processor 10 detects that its internally set cleaning time has been reached; and automatic cleaning when the main control processor 10 receives a remote cleaning command. When any condition is met, the main control processor 10 will output a control signal to the motor control module 33, and also control the alarm module to sound an alarm, or control the alarm module to output alarm information and send it to the user terminal through the communication module, so that the user can take appropriate measures in a timely manner to ensure the safety of the monitored area.
[0039] The motor control module 33 includes an input circuit 331, a brush head control circuit 332, a gimbal control circuit 333, a brush head output circuit 334, and a gimbal output circuit 335. The input circuit 331 is connected to the brush head control circuit 332, the gimbal control circuit 333, and the main control processor 10. The brush head control circuit 332 is connected to the first and second motors through the brush head output circuit 334, and the gimbal control circuit 333 is connected to the third and fourth motors through the gimbal output circuit 335.
[0040] The input circuit 331 receives control signals and transmits them to the brush head control circuit 332 and the gimbal control circuit 333. The brush head control circuit 332 generates corresponding drive signals based on the control signals and outputs them through the brush head output circuit 334 to drive the first motor and the second motor to clean the connected lens. The gimbal control circuit 333 generates corresponding drive signals based on the control signals and outputs them through the gimbal output circuit 335 to drive the third motor and the fourth motor to rotate the gimbal of the connected lens.
[0041] like Figure 2 As shown, the input circuit 331 includes a first interface J1, a first capacitor C1, and a second capacitor C2; the data pins (pins 4, 5, and 6) of the first interface J1 are connected to the motor control pin, brush head control circuit 332, and gimbal control circuit 333 of the main control processor 10; the ground pins (pins 3, G1, and G2) of the first interface J1 are grounded; the first power pin (pin 1) of the first interface J1 is connected to the first power terminal (input first voltage +5V) and grounded through the first capacitor C1; the second power pin (pin 2) of the first interface J1 is connected to the second power terminal (input second voltage VCC_3V3) and grounded through the second capacitor C2.
[0042] Specifically, pin 6 of the first interface J1 is connected to pin 21 of the UART0_RTS_I2S_DAC_BCLK_SLCD_DC_PB of the main control processor 10, the brush head control circuit 332, and the gimbal control circuit 333; pin 5 of the first interface J1 is connected to pin 20 of the UART0_CTS_I2S_ADC_BCLK_SLCD_CS_PB of the main control processor 10, the brush head control circuit 332, and the gimbal control circuit 333; pin 4 of the first interface J1 is connected to pin 17 of the PWM0_SSI1_DT_PB of the main control processor 10, the brush head control circuit 332, and the gimbal control circuit 333. The first interface J1 is an SMT connector, such as a 6P (6 pins) horizontal surface mount socket, preferably with parameters head1*6_SMT_1.25mm. The first capacitor C1 and the second capacitor C2 are used for filtering the input voltage and are located near the first interface J1 on the circuit board. The main control processor 10 transmits control signals (SMB2_SCK signal, SMB2_SDA signal, MOTO_FCLK signal) to the brush head control circuit 332.
[0043] like Figure 3As shown, the brush head control circuit 332 includes a motor driver chip U1, a first resistor R1, a second resistor R2, and a third capacitor C3. The DATA pin of the motor driver chip U1 is connected to one end of the first resistor R1 and pin 5 of the first interface J1; the LCK pin of the motor driver chip U1 is connected to one end of the second resistor R2 and pin 6 of the first interface J1; the ADDR and VIO pins of the motor driver chip U1 are both connected to the second power supply terminal, the other end of the first resistor R1, the other end of the second resistor R2, and one end of the third capacitor C3; the AVDD pin of the motor driver chip U1 is connected to the third power supply terminal. One end of capacitor C3 is grounded, and the other end of the third capacitor C3 is grounded. The FCLK pin of the motor driver chip U1 is connected to the fourth pin of the first interface J1. The M1VCC, M2VCC, and M3VCC pins of the motor driver chip U1 are all connected to the first power supply terminal. The M1_OA, M1_OB, M1_OC, M1_OD, M2_OA, M2_OB, M2_OC, and M2_OD pins of the motor driver chip U1 are all connected to the output circuit 334. The PGND1, PGND2, PGND3, and E_PAD pins of the motor driver chip U1 are all grounded.
[0044] The motor driver chip U1 is preferably a CP3206. The first resistor R1 and the second resistor R2 are pull-up resistors, preferably with a resistance of 1KΩ, to prevent malfunction of the motor driver chip when there is no signal input. The third capacitor C3 is used to filter the input second voltage VCC_3V3, making the power supply to the ADDR and AVDD pins more stable.
[0045] The SMB2_SCK and SMB2_SDA signals are transmitted to the motor driver chip U1 via the I2C bus, where they are converted into two sets of drive signals to control the rotation of one motor respectively. The first set of drive signals includes AM_D1, AM_D2, AM_D3, and AM_D4 signals; the second set includes BM_D1, BM_D2, BM_D3, and BM_D4 signals. These drive signals control the motor's rotation speed (the speed of the brush head's movement) and rotation angle (e.g., the brush head rotates 90° or 180° clockwise or counterclockwise, or the gimbal rotates to a specific number of steps). Thus, one motor driver chip can control two motors simultaneously. The drive signals primarily control whether the motor rotates forward or backward. Depending on the structural installation position, forward rotation can correspond to up or left rotation, and reverse rotation to down or right rotation. The MOTO_FCLK signal is a reserved external input clock for the motor driver chip U1. If the motor driver chip U1 does not have an internal clock circuit, an external clock is required. This clock is used for the internal main logic and counters of the motor driver chip U1.
[0046] Preferably, the brush head control circuit 332 further includes a second interface J2, a fourth capacitor C4, a fifth capacitor C5, and a sixth capacitor C6; the M3_OA pin of the motor drive chip U1 is connected to one end of the fourth capacitor C4, one end of the sixth capacitor C6, and pin 1 of the second interface J2; the M3_OB pin of the motor drive chip U1 is connected to the other end of the fourth capacitor C4, one end of the fifth capacitor C5, and pin 2 of the second interface J2; the other end of the fifth capacitor C5, the other end of the sixth capacitor C6, and pins G1 and G2 of the second interface J2 are all grounded.
[0047] The second interface J2 is reserved for future connection of a DC motor. The camera body 10 is equipped with a pair of IR-CUT filters (infrared cut-off filters). While controlling the two motors, the DC motor can also be used for IRCUT switching control (IRCUT switching is existing technology; the difference is that in this embodiment, it is controlled by a motor driver chip U1). This saves PCB layout area and also eliminates the need for an IRCUT driver chip. The fourth capacitor C4, the fifth capacitor C5, and the sixth capacitor C6 are used for filtering.
[0048] Preferably, the brush head control circuit 332 further includes a third resistor R3, a fourth resistor R4, a seventh capacitor C7, and an eighth capacitor C8; one end of the third resistor R3 is connected to one end of the fourth resistor R4, one end of the eighth capacitor C8, and the AVDD pin of the motor drive chip U1; the other end of the third resistor R3 is connected to one end of the third capacitor C3, the other end of the fourth resistor R4 is connected to the first power supply terminal and one end of the seventh capacitor C7, and the other ends of the seventh capacitor C7 and the eighth capacitor C8 are both grounded.
[0049] The power supply is provided by connecting the first voltage +5V through R4, C7 filters the first voltage +5V, C8 filters the voltage on the AVDD pin, and R3 is used to isolate the voltage across its two ends.
[0050] Preferably, the brush head control circuit 332 further includes a fifth resistor R5, a ninth capacitor C9, and a tenth capacitor C10; one end of the fifth resistor R5 is connected to one end of the ninth capacitor C9 and the FCLK pin of the motor drive chip U1, the other end of the fifth resistor R5 is connected to one end of the tenth capacitor C10 and the fourth pin of the first interface J1, and the other ends of the ninth capacitor C9 and the tenth capacitor C10 are both grounded.
[0051] R5, C9, and C10 form a Π-type RC filter circuit, reserved for EMI suppression.
[0052] Preferably, the brush head control circuit 332 further includes an eleventh capacitor C11 and a twelfth capacitor C12. One end of the eleventh capacitor C11 is connected to the first power supply terminal and the M1VCC and M2VCC pins of the motor drive chip U1; the other end of the eleventh capacitor C11 is grounded. The twelfth capacitor C12 is connected in parallel with the eleventh capacitor C11. C11 and C12 are used to filter the voltage of the input M1VCC and M2VCC pins, making the power supply more stable.
[0053] like Figure 4 As shown, the brush head output circuit 334 includes a third interface J3 and a fourth interface J4. Pins 1, 2, 3, and 4 of the third interface J3 are connected one-to-one with pins M1_OA, M1_OB, M1_OC, and M1_OD of the motor driver chip U1. Pin 5 of the third interface J3 is connected to the first power supply terminal, and pins G1 and G2 of the third interface J3 are both grounded. Pins 1, 2, 3, and 4 of the fourth interface J4 are connected one-to-one with pins M2_OA, M2_OB, M2_OC, and M2_OD of the motor driver chip U1. Pin 5 of the fourth interface J4 is connected to the first power supply terminal, and pins G1 and G2 of the fourth interface J4 are both grounded. The third interface J3 is connected to the first motor, and the fourth interface J4 is connected to the second motor.
[0054] Among them, the first set of drive signals (AM_D1~4 signals) output by the third interface J3 is used to drive the first motor, so that the upper lens brush head 21 can rotate up and down or left and right; the second set of drive signals (BM_D1~4 signals) output by the fourth interface J4 is used to drive the second motor, so that the upper lens brush head 21 can brush back and forth.
[0055] Preferably, the brush head output circuit 334 further includes a thirteenth capacitor C13, a fourteenth capacitor C14, a fifteenth capacitor C15, and a sixteenth capacitor C16. One end of the thirteenth capacitor C13 is connected to pin 5 of the third interface J3 and the first power supply terminal, and the other end of the thirteenth capacitor C13 is grounded. The fourteenth capacitor C14 is connected in parallel with the thirteenth capacitor C13. One end of the fifteenth capacitor C15 is connected to pin 5 of the fourth interface J4 and the first power supply terminal, and the other end of the fifteenth capacitor C15 is grounded. The sixteenth capacitor C16 is connected in parallel with the fifteenth capacitor C15. C13 to C16 are used to filter the first +5V voltage output to the motor, making the connected motor work more stably.
[0056] The internal circuit structure of the gimbal control circuit 333 is the same as that of the brush head control circuit 332. The input terminal of the gimbal control circuit 333 is also connected to the motor control pin of the main control processor 10. The difference is that the output terminal of the gimbal control circuit 333 is connected to the gimbal output circuit 335. The internal circuit structure of the gimbal output circuit 335 is the same as that of the brush head output circuit 334; the difference is that the brush head output circuit 334 is externally connected to a third and fourth motor. The specific circuit structures of the gimbal control circuit 333 and the gimbal output circuit 335 will not be described in detail here.
[0057] In practical implementation, more motors can be controlled simply by adding a set of motor control modules 33 and connecting the outputs to the corresponding motors. When I2C resources are insufficient, multiple slave devices (motor driver chips) can be connected to one I2C bus. The internal registers of the motor driver chip can be edited to set the address of the slave device. The SMB2_SCK and SMB2_SDA signals are sent to the corresponding motor driver chip through addressing to control the rotation of the corresponding motor.
[0058] In summary, the self-cleaning camera based on motor control provided by this utility model can control four or five motors via two lines of the I2C bus. It can automatically or remotely clean the main and secondary cameras, keeping the lenses clean at all times and providing clear monitoring images. This avoids blind spots and blurry images caused by lens damage. It reduces the need for manual cleaning of the cameras, making it particularly suitable for installations in high or inaccessible locations, thus lowering the risks and costs of manual cleaning. The remote control function allows for operation anytime, anywhere, enhancing the intelligence and ease of use of the device.
[0059] The above embodiments are only used to illustrate the technical solutions of this utility model, and are not intended to limit it. Although this utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this utility model.
Claims
1. A motor control-based self-cleaning camera, characterized by, The camera lens cleaning device comprises a camera body, a cleaning assembly and a control system, wherein the cleaning assembly is installed on one side of the main camera lens and the auxiliary camera lens of the camera body, and the control system is electrically connected with the cleaning assembly. The control system generates corresponding driving signals according to the trigger conditions to control the cleaning assembly to clean and rotate the main camera lens and the auxiliary camera lens. The cleaning assembly comprises an upper lens brush head and a lower lens brush head. The control system connects the upper lens brush head and the lower lens brush head, drives the upper lens brush head to rotate to clean the main camera lens, and drives the lower lens brush head to rotate to clean the auxiliary camera lens. The control system comprises a master control processor, a communication module, a motor control module and four motors, wherein the master control processor is connected with the communication module and the motor control module, the motor control module is connected with the four motors, the first motor is connected with the upper lens brush head, the second motor is connected with the lower lens brush head, the third motor is connected with the main camera lens, and the fourth motor is connected with the auxiliary camera lens. The communication module receives remote cleaning instructions and transmits them to the master control processor, the master control processor outputs corresponding control signals to the motor control module according to the remote cleaning instructions or built-in cleaning instructions, the motor control module generates corresponding driving signals according to the control signals to drive the motors to rotate, the first motor and the second motor control the connected lens brush heads to clean the corresponding lenses when rotating, and the third motor and the fourth motor control the connected lenses to rotate up, down, left and right when rotating.
2. The motor control based self-cleaning camera according to claim 1, wherein, The motor control module comprises an input circuit, a brush head control circuit, a gimbal control circuit, a brush head output circuit and a gimbal output circuit. The input circuit is connected with the brush head control circuit, the gimbal control circuit and the master control processor, the brush head control circuit is connected with the first motor and the second motor through the brush head output circuit, and the gimbal control circuit is connected with the third motor and the fourth motor through the gimbal output circuit. The input circuit receives control signals and transmits them to the brush head control circuit and the gimbal control circuit, the brush head control circuit generates corresponding driving signals according to the control signals and outputs them through the brush head output circuit to drive the first motor and the second motor to clean the connected lenses, and the gimbal control circuit generates corresponding driving signals according to the control signals and outputs them through the gimbal output circuit to drive the third motor and the fourth motor to rotate the gimbal of the connected lenses. The input circuit comprises a first interface, a first capacitor and a second capacitor.
3. The motor control based self-cleaning camera according to claim 2, wherein, The 6th pin of the first interface is connected with the UART0_RTS_I2S_DAC_BCLK_SLCD_DC_PB21 pin of the master control processor, the brush head control circuit and the gimbal control circuit, the 5th pin of the first interface is connected with the UART0_CTS_I2S_ADC_BCLK_SLCD_CS_PB20 pin of the master control processor, the brush head control circuit and the gimbal control circuit, the 4th pin of the first interface is connected with the PWM0_SSI1_DT_PB17 pin of the master control processor, the brush head control circuit and the gimbal control circuit, the ground pin of the first interface is grounded, the first power supply pin of the first interface is connected with the first power supply end and grounded through the first capacitor, and the second power supply pin of the first interface is connected with the second power supply end and grounded through the second capacitor. 4. The motor control based self-cleaning camera according to claim 3, wherein, The brush head control circuit comprises a motor drive chip, a first resistor, a second resistor and a third capacitor; The DATA pin of the motor drive chip is connected with one end of the first resistor and the 5th pin of the first interface, the LCK pin of the motor drive chip is connected with one end of the second resistor and the 6th pin of the first interface, the ADDR pin and the VIO pin of the motor drive chip are both connected with the second power supply end, the other end of the first resistor, the other end of the second resistor and one end of the third capacitor, the AVDD pin of the motor drive chip is connected with one end of the third capacitor, the other end of the third capacitor is grounded, the FCLK pin of the motor drive chip is connected with the 4th pin of the first interface, the M1VCC pin, the M2VCC pin and the M3VCC pin of the motor drive chip are all connected with the first power supply end, the M1_OA pin, the M1_OB pin, the M1_OC pin, the M1_OD pin, the M2_OA pin, the M2_OB pin, the M2_OC pin and the M2_OD pin of the motor drive chip are all connected with the output circuit. The PGND1 pin, the PGND2 pin, the PGND3 pin and the E_PAD pin of the motor drive chip are all grounded.
5. The motor control based self-cleaning camera according to claim 4, wherein, The brush head output circuit comprises a third interface and a fourth interface, the 1st pin, the 2nd pin, the 3rd pin and the 4th pin of the third interface are one-to-one connected with the M1_OA pin, the M1_OB pin, the M1_OC pin and the M1_OD pin of the motor drive chip, the 5th pin of the third interface is connected with the first power supply end, the G1 pin and the G2 pin of the third interface are both grounded, the 1st pin, the 2nd pin, the 3rd pin and the 4th pin of the fourth interface are one-to-one connected with the M2_OA pin, the M2_OB pin, the M2_OC pin and the M2_OD pin of the motor drive chip, the 5th pin of the fourth interface is connected with the first power supply end, the G1 pin and the G2 pin of the fourth interface are both grounded, the third interface is externally connected with a first motor, and the fourth interface is externally connected with a second motor.
6. The motor control based self-cleaning camera according to claim 4, wherein, The brush head control circuit further comprises a second interface, a fourth capacitor, a fifth capacitor and a sixth capacitor; The M3_OA pin of the motor drive chip is connected with one end of the fourth capacitor, one end of the sixth capacitor and the 1st pin of the second interface, the M3_OB pin of the motor drive chip is connected with the other end of the fourth capacitor, one end of the fifth capacitor and the 2nd pin of the second interface, the other end of the fifth capacitor, the other end of the sixth capacitor, the G1 pin and the G2 pin of the second interface are all grounded.
7. The motor control based self-cleaning camera according to claim 6, wherein, The brush head control circuit further comprises a third resistor, a fourth resistor, a seventh capacitor and an eighth capacitor; One end of the third resistor is connected with one end of the fourth resistor, one end of the eighth capacitor and the AVDD pin of the motor drive chip, the other end of the third resistor is connected with one end of the third capacitor, the other end of the fourth resistor is connected with the first power supply end and one end of the seventh capacitor, the other end of the seventh capacitor and the other end of the eighth capacitor are both grounded.
8. The motor control based self-cleaning camera according to claim 4, wherein, The brush head control circuit further comprises a fifth resistor, a ninth capacitor and a tenth capacitor; One end of the fifth resistor is connected with one end of the ninth capacitor and the FCLK pin of the motor drive chip, the other end of the fifth resistor is connected with one end of the tenth capacitor and the 4th pin of the first interface, the other end of the ninth capacitor and the other end of the tenth capacitor are both grounded.