Disclosure of Invention
In view of the defects in the prior art, the invention aims to provide a camera driving control circuit, a layout structure, a camera and a toy.
According to the present invention, there is provided a camera drive control circuit comprising: the system comprises a one-key switching circuit and a charging automatic switching circuit, wherein the one-key switching circuit enables the system to be closed or started through a key, and the charging automatic switching circuit is used for automatically starting the system when the system is charged and automatically closing the system when the system is disconnected in a system shutdown state.
Preferably, the camera drive control circuit includes: the circuit comprises a switch K1, a diode D1, a diode D2, a diode D3, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a first MCU chip, a second MCU chip, a FLASH chip, a transistor Q1, a transistor Q2 and a capacitor C1;
one end of the switch K1 is connected to a VCC _ IN terminal, the other end of the switch K1 is connected to the anode of the diode D1 and one end of the resistor R4, the other end of the resistor R4 is connected to one end of the resistor R5 and the ADC _ VCC _ IN port of the first MCU chip, the other end of the resistor R5 is grounded, the cathode of the diode D1 is connected to one end of the resistor R1, the anode of the diode D2 is connected to the SW _ CTRL port of the first MCU chip, and the other end of the diode D2 is connected to one end of the resistor R1;
the other end of the resistor R1 is connected with one end of a capacitor C1, one end of a resistor R2 and a gate of a transistor Q1 respectively, the other end of the capacitor C1 is connected with the other end of a resistor R2 and a source of a transistor Q1 respectively and is grounded, a drain of the transistor Q1 is connected with a gate of the transistor Q2 and one end of a resistor R3 respectively, the other end of the resistor R3 is connected with a source of a transistor Q2, the other end of the resistor R3 is connected with a VCC _ IN end, a drain of the transistor Q2 forms a VCC _ OUT end, the VCC _ OUT end is connected with a VCC2 port of a second MCU chip, the second MCU chip is connected with a FLASH chip, and a drain of the transistor Q2 is connected with a VCC1 port of the first MCU chip;
the positive pole of diode D3 is connected camera drive control circuit's charging end CHG _ IN, diode D3's positive pole is connected with the one end of resistance R6, the other end of resistance R6 is connected with the one end of resistance R7, the ADC _ CHG _ IN port of first MCU chip is connected to the other end of resistance R6, the other end ground connection of resistance R7, the negative pole of diode D3 is connected with the one end of resistance R1.
Preferably, the switch K1 is a four-corner key switch, and a normally closed pin of the four-corner key switch is grounded.
Preferably, the model of the first MCU chip is PAN2025, and the model of the second MCU chip is ESP 32.
Preferably, the transistor Q1 is an N-type transistor, and the transistor Q2 is a P-type transistor.
The camera driving control circuit layout structure comprises a camera circuit board and a main control circuit board, wherein the second MCU chip, the FLASH chip and the switch K1 are installed in the camera circuit board, the diode D1, the diode D2, the diode D3, the resistor R1, the resistor R2, the resistor R3, the resistor R4, the resistor R5, the resistor R6, the resistor R7, the first MCU chip, the transistor Q1, the transistor Q2 and the capacitor C1 are installed on the main control circuit board, and circuits on the camera circuit board and the main control circuit board are connected through flat cables.
Preferably, the camera circuit board adopts a double-layer PCB structure, and the second MCU chip and the FLASH chip are respectively arranged on two sides of the camera circuit board.
Preferably, the pins of the second MCU chip penetrate through the through holes on the camera circuit board to be connected with the pins of the FLASH chip, and resistors are connected in series between the mutually connected pins of the second MCU chip and the FALSH chip.
The camera provided by the invention comprises the camera driving control circuit.
According to the toy provided by the invention, the camera is included.
Compared with the prior art, the invention has the following beneficial effects:
1. the camera driving control circuit provided by the invention is added with the automatic system startup and shutdown function during charging on the basis of the existing one-key startup and shutdown function.
2. The camera driving control circuit provided by the invention has the advantages of simple structure, lower manufacturing cost and convenience for large-scale production.
3. The camera driving control circuit layout provided by the invention adopts the arrangement of the two boards of the camera circuit board and the main control circuit board, so that the structure of the camera circuit board is compact, and the camera circuit board is convenient to install in a narrow space.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The invention provides a camera driving control circuit which comprises a one-key startup and shutdown circuit and an automatic startup and shutdown circuit during charging, wherein the one-key startup and shutdown circuit enables a system to be closed or started through keys, and the automatic startup and shutdown circuit during charging is used for automatically starting the system during charging and automatically closing the system during disconnection of charging in a system shutdown state.
Specifically, referring to fig. 2, the camera driving control circuit includes: the circuit comprises a switch K1, a diode D1, a diode D2, a diode D3, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a first MCU chip, a second MCU chip, a FLASH chip, a transistor Q1, a transistor Q2 and a capacitor C1. The transistor Q1 is an N-type transistor, and the transistor Q2 is a P-type transistor.
One end of a switch K1 is connected with a VCC _ IN end, the other end of a switch K1 is respectively connected with the anode of a diode D1 and one end of a resistor R4, the switch K1 is a four-corner key switch, and a normally closed pin of the four-corner key switch is grounded; the other end of the resistor R4 is connected with one end of the resistor R5 and an ADC _ VCC _ IN port of the first MCU chip respectively, the model of the first MCU chip is PAN2025, the other end of the resistor R5 is grounded, the cathode of the diode D1 is connected with one end of the resistor R1, the anode of the diode D2 is connected with the SW _ CTRL port of the first MCU chip, and the other end of the diode D2 is connected with one end of the resistor R1.
The other end of the resistor R1 is connected with one end of a capacitor C1, one end of a resistor R2 and the gate of the transistor Q1 respectively, the other end of the capacitor C1 is connected with the other end of the resistor R2 and the source of the transistor Q1 respectively and is grounded, the drain of the transistor Q1 is connected with the gate of the transistor Q2 and one end of the resistor R3 respectively, the other end of the resistor R3 is connected with the source of the transistor Q2, the other end of the resistor R3 is connected with a VCC _ IN end, the drain of the transistor Q2 forms a VCC _ OUT end, the VCC _ OUT end is connected with a VCC2 port of the second MCU chip, the second MCU chip is connected with the FLASH chip, the second MCU chip and the FLASH chip are connected with the camera to control the working state of the camera, the model number of the second MCU chip is ESP32, and the drain of the transistor Q2 is connected with a VCC1 port of the first MCU chip.
The anode of the diode D3 is connected to the charging terminal CHG _ IN of the camera driving control circuit, the anode of the diode D3 is connected to one end of the resistor R6, the other end of the resistor R6 is connected to one end of the resistor R7, the other end of the resistor R6 is connected to the ADC _ CHG _ IN port of the first MCU chip, the other end of the resistor R7 is grounded, and the cathode of the diode D3 is connected to one end of the resistor R1.
The working principle of the circuit is as follows: when the switch K1 is closed, the terminal VCC _ IN goes high to the gate terminal of the transistor Q1, the transistor Q1 is turned on, the drain terminal of the transistor Q1 goes low, the transistor Q2 is turned on, and thus the terminal VCC _ IN and the terminal VCC _ OUT are turned on, and the system starts to operate. The first MCU chip controls the IO input port of the SW _ CTRL end to output high level, then the VCC _ IN and VCC _ OUT ends are continuously conducted, and the system continuously and normally works; IN the normal working process of the system, the switch KEY is closed again, the first MCU chip detects the high level state of the IO port of the ADC _ VCC _ IN, the first MCU chip controls the IO input port of the SW _ CTRL end to output low level, and after the switch K1 is lifted, the system is closed, so that the KEY on/off of the system is realized.
When the voltage is input into the charging port CHG _ IN, the CHG _ IN port is at a high level, the gate pin of the transistor Q1 is at a high level, the transistor Q1 is turned on, the drain of the transistor Q1 is at a low level, the transistor Q2 is turned on, and thus the VCC _ IN terminal and the VCC _ OUT terminal are turned on, and the system starts to operate.
The first MCU chip controls the IO port of the SW _ CTRL terminal to output a high level, then the VCC _ IN and VCC _ OUT terminals are continuously conducted, and when the charging port CHG _ IN port stops charging to a low level, the system can still continuously and normally work.
And controlling the IO port of the SW _ CTRL end to output a low level through the first MCU chip, stopping charging the CHG _ IN port of the charging port, and closing the system when the port is at the low level.
The system automatic power on/off function and one-key power on/off function during charging are controlled in the above mode, and the effects are as follows:
1) IN the system shutdown state, when the CHG _ IN port is charged, the system automatically and normally starts up, the charging of the CHG _ IN is removed, the system is automatically shut down, the automatic startup and shutdown function is normally realized, and the automatic startup and shutdown are normal.
2) When the system is IN a power-on state and the CHG _ IN port is charged, the system normally works, the charging of the CHG _ IN is removed, the system still normally works, and the system is powered off by pressing a KEY KEY. The automatic on-off does not affect the original working state of the system.
3) When the switch K1 is triggered, the system is normally started, the system starts to work normally, and in the normal working process of the system, the switch K1 is pressed, the system is shut down, and the one-key on-off is normal.
The utility model provides a camera drive control circuit layout structure, owing to the limited of overall dimension, camera drive control circuit layout is within 40.3mm 32mm size space, and not only need lay camera drive circuit in the circuit board, still need lay the circuit of image analysis processing to and power management circuit, and each signal is walked the line and is carried out the overall arrangement according to the standard.
The camera driving control circuit layout structure comprises a camera circuit board and a main control circuit board, wherein a second MCU chip, a FLASH chip and a switch K1 are installed in the camera circuit board, a diode D1, a diode D2, a diode D3, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R7, a first MCU chip, a transistor Q1, a transistor Q2 and a capacitor C1 are installed on the main control circuit board, circuits on the camera circuit board and the main control circuit board are connected through a flat cable, and the flat cable in the embodiment adopts a 10-pin double-row connector.
Because the FLASH chip has higher requirements on layout and routing, four-layer boards are generally used for layout and routing, and the FLASH chip and the second MCU chip need to be laid on the same side to prevent interference of peripheral circuits, power supplies and other signal lines. Due to the cost and the appearance of the cloth plate, the layout can be carried out only by using double-layer plates. When the double-layer board is used for layout, the second MCU chip and the FLASH chip are respectively arranged on two sides of the camera circuit board, so that the influence on the FLASH chip and the second MCU chip is reduced.
Pins on the second MCU chip penetrate through holes on the camera circuit board to be connected with pins of the FLASH chip, and resistors are connected in series between the pins which are connected with each other of the second MCU chip and the FALSH chip. The wiring is as short as possible while connection and signal stability are guaranteed, the distance between the CLK line and other signal lines can be kept more than 3 times of the line width, the back of the clock line is completely coated with a copper package for processing, the influence of other signal lines on the clock is effectively prevented, the communication effect of the second MCU chip and the FLASH chip is guaranteed, and the space is effectively utilized.
The invention also discloses a camera which adopts the camera driving control circuit, and a toy which adopts the camera.
In the description of the present application, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present application.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.