Direct current motor positive and negative rotation control system of egg quality analyzer
By designing the current detection output circuit and motor control circuit in the egg quality analyzer, the closed-loop control and automatic braking function of the motor is realized using the ACS712-05B and AS4950 chips, the problem of lack of rotational state detection in the traditional control system is solved and the experiment is improved. rate and work efficiency.
Patent Information
- Application Number
- CN202420936791.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2034-04-30
AI Technical Summary
The DC motor control of traditional egg quality analyzers lacks rotational state detection, resulting in poor performance under high-standard control requirements, inability to detect load size and resistance in real time, and lack of automatic braking function.
A DC motor forward and reverse control system including current detection output circuit and motor control circuit is designed. The load detection during motor rotation is realized through current detection and op amp components using the ACS712-05B current detection chip and AS4950 motor drive chip. and automatic braking function, combined with the MCU's ADC and IO port for real-time control.
The closed-loop control of the motor is realized, ensuring that the egg chamber is in full, improving the success rate of experiments, real-time detection of load and resistance, preventing equipment damage and personnel injuries caused by foreign objects, and improving work efficiency.
Smart Images

Figure CN221948062U_ABST
Abstract
Description
Technical Field
[0001] The utility model is a DC motor forward and reverse rotation control system of an egg quality analyzer, belonging to the technical field of electronics. Background Art
[0002] DC motor control is often used in many industries. In egg quality analyzers, DC motors are needed to control the entry and exit of eggs in the egg bin. Traditional egg analyzer in-and-out motor control has an open loop, no stall detection, and no motor protection. The open-loop control method lacks rotation state detection, so it performs poorly in situations with high standard control requirements. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a DC motor forward and reverse control system for an egg quality analyzer in view of the above shortcomings. The load size can be detected during the rotation of the motor, and the motor can be stopped at any time according to the resistance size. A travel switch and a control pin are connected in parallel to realize an automatic braking function in place, which is more real-time than traditional in-place detection technology.
[0004] In order to solve the above technical problems, the utility model adopts the following technical solutions:
[0005] A DC motor forward and reverse control system for an egg quality analyzer, comprising a current detection output circuit and a motor control circuit, wherein the motor control circuit is used for motor forward and reverse control and in-position detection, and the current detection output circuit is connected to the motor control circuit;
[0006] The current detection output circuit includes a current detection chip U1, and the model of the current detection chip U1 is ACS712-05B.
[0007] Furthermore, pin 8 of the current detection chip U1 is connected to one end of capacitor C2 and to +5V, the other end of capacitor C2 is grounded, pin 7 of the current detection chip U1 is connected to one end of resistor R2, the other end of resistor R2 is connected to pin 3 of op amp U2 and one end of resistor R1.
[0008] Furthermore, the current detection output circuit also includes an operational amplifier U2, pin 1 of the operational amplifier U2 is connected to one end of a precision controllable voltage regulator U3 and one end of a resistor R4, the other end of the resistor R4 is connected to the +5V precision controllable voltage regulator U3, and the other two ends are respectively connected to one end of the resistor R4 and ground, and pin 4 of the operational amplifier U2 is connected to the ADC port of the MCU.
[0009] Furthermore, pin 4 of the operational amplifier U2 is also connected to the other end of the resistor R1, one end of the resistor R3, one end of the capacitor C3, one end of the magnetic bead FB1, one end of the capacitor C6 and one end of the capacitor C3; the other end of the magnetic bead FB1 is connected to one end of the resistor R5; the other end of the resistor R3, the other end of the capacitor C3, the other end of the resistor R5, the other end of the capacitor C6 and the other end of the capacitor C3 are grounded.
[0010] Furthermore, the motor control circuit includes a motor driver chip U4, and the model of the motor driver chip U4 is AS4950.
[0011] Furthermore, pin 2 of the motor drive chip U4 is connected to one end of a resistor R6 and the collector of a transistor Q1, the other end of the resistor R6 is connected to +5V, the emitter of the transistor Q1 is grounded, the base of the transistor Q1 is connected to one end of a resistor R8 and one end of a resistor R10, the other end of the resistor R10 is grounded, the other end of the resistor R8 is connected to one end of a resistor R7 and pin 1 of the interface P2, and is connected to the IO port of the MCU as an open-drain output end for motor control, and the other end of the resistor R7 is connected to +5V.
[0012] Furthermore, pin 3 of the motor drive chip U4 is connected to one end of a resistor R11 and the collector of a transistor Q2, the other end of the resistor R11 is connected to +5V, the emitter of the transistor Q2 is grounded, the base of the transistor Q2 is connected to one end of a resistor R12 and one end of a resistor R14, the other end of the resistor R14 is grounded, the other end of the resistor R12 is connected to one end of a resistor R13 and pin 3 of the interface P2, and is connected to the IO port of the MCU as another open-drain output end of the motor control, and the other end of the resistor R13 is connected to +5V.
[0013] Furthermore, pins 1 and 2 of the interface P2 are connected to a forward travel switch, and pins 3 and 4 of the interface P2 are connected to a reverse travel switch.
[0014] Furthermore, pins 3 and 4 of the current detection chip U1 are connected to pin 6 of the motor drive chip U4, pins 1 and 2 of the current detection chip U1 are connected to pin 1 of interface P1, pin 8 of the motor drive chip U4 is connected to pin 3 of interface P1, and interface P1 is connected to an external motor.
[0015] The utility model adopts the above technical solution, and compared with the prior art, has the following technical effects:
[0016] The closed-loop control of the motor in the egg quality analyzer can ensure that the egg bin is fully in place, thereby improving the success rate of the experiment. The load size can be detected during the rotation of the motor, and it can also be stopped at any time according to the resistance size. Compared with the traditional in-place detection technology, it is more real-time. The travel switch and the control pin are connected in parallel to realize the automatic braking function in place. The stall detection that stops at any time according to the resistance size can protect the operator and equipment, prevent foreign objects from blocking the equipment and causing injuries to personnel, and improve work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the specific implementation of the utility model or the technical solution in the prior art, the following is a brief introduction to the drawings required for the specific implementation or the prior art description. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale.
[0018] Figure 1 The utility model is a circuit diagram of a DC motor forward and reverse control system. DETAILED DESCRIPTION
[0019] Embodiment 1, as Figure 1 As shown, a DC motor forward and reverse control system of an egg quality analyzer includes a current detection chip U1, the model of the current detection chip U1 is ACS712-05B, the 8th pin of the current detection chip U1 is connected to one end of a capacitor C2 and connected to +5V, the other end of the capacitor C2 is grounded, the 7th pin of the current detection chip U1 is connected to one end of a resistor R2, the other end of the resistor R2 is connected to the 3rd pin of an operational amplifier U2 and one end of the resistor R1, the 1st pin of the operational amplifier U2 is connected to one end of a precision controllable voltage regulator U3 and one end of a resistor R4, and the resistor R4 The other end is connected to the +5V precision controllable voltage source U3, and the other two ends are respectively connected to one end of the resistor R4 and the ground. The 4th pin of the operational amplifier U2 is connected to the other end of the resistor R1, one end of the resistor R3, one end of the capacitor C3, one end of the magnetic bead FB1, one end of the capacitor C6 and one end of the capacitor C3, and is connected to the ADC port of the MCU. The other end of the magnetic bead FB1 is connected to one end of the resistor R5, and the other end of the resistor R3, the other end of the capacitor C3, the other end of the resistor R5, the other end of the capacitor C6 and the other end of the capacitor C3 are grounded. This part constitutes the current detection output circuit.
[0020] The control system also includes a motor control circuit, which includes a motor drive chip U4. The model of the motor drive chip U4 is AS4950. Pin 2 of the motor drive chip U4 is connected to one end of a resistor R6 and the collector of a transistor Q1, and the other end of the resistor R6 is connected to +5V. The emitter of the transistor Q1 is grounded, and the base of the transistor Q1 is connected to one end of a resistor R8 and one end of a resistor R10. The other end of the resistor R10 is grounded, and the other end of the resistor R8 is connected to one end of a resistor R7 and pin 1 of the interface P2, and is connected to the IO port of the MCU as an open-drain output end of the motor control. The other end of the resistor R7 is connected to +5V. This part is used for motor forward control and in-position control. Detection circuit, pin 3 of the motor drive chip U4 is connected to one end of the resistor R11 and the collector of the transistor Q2, the other end of the resistor R11 is connected to +5V, the emitter of the transistor Q2 is grounded, the base of the transistor Q2 is connected to one end of the resistor R12 and one end of the resistor R14, the other end of the resistor R14 is grounded, the other end of the resistor R12 is connected to one end of the resistor R13 and pin 3 of the interface P2, and is connected to the IO port of the MCU as another open-drain output end of the motor control, the other end of the resistor R13 is connected to +5V, this part is used for the motor reversal control circuit, pins 1 and 2 of the interface P2 are connected to the forward travel switch, and pins 3 and 4 of the interface P2 are connected to the reverse travel switch.
[0021] Pins 3 and 4 of the current detection chip U1 are connected to pin 6 of the motor drive chip U4, pins 1 and 2 of the current detection chip U1 are connected to pin 1 of interface P1, pin 8 of the motor drive chip U4 is connected to pin 3 of interface P1, and interface P1 is connected to an external motor.
[0022] The motor control terminal 2 of the motor driver chip U4 is connected to the negative pole of the motor, the overcurrent protection terminal of the motor driver chip U4 is connected to R9 and then grounded, and the motor control terminal 1 of the motor driver chip U4 is connected to the two input terminals of the current detection chip U1; the other two input terminals of the current detection chip U1 are connected in parallel and connected to the positive pole of the motor. This part of the circuit constitutes the output and current detection input loop of the motor. The filter capacitor pin of the current detection chip U1 is connected to the capacitor C5, and one end of the capacitor C5 is grounded. The detection output terminal of the current detection chip is connected to the inverting input terminal of the operational amplifier U2 through the resistor R2, and the inverting input terminal of the operational amplifier U2 is connected to the output terminal of the current detection chip U1 through the resistor R1. The in-phase input terminal of the current detection chip U1 is simultaneously connected to the reference terminal and input terminal of the controllable precision voltage source, and the input terminal of the current detection chip U1 is connected to +5V through the resistor R4, and the output terminal of the current detection chip U1 is grounded. After the resistor R3 is connected in parallel with the capacitor C4, one end is connected to the output terminal of the operational amplifier U2, and the other end is grounded. At the same time, the output of the op amp is connected to one end of the magnetic bead FB1, and the other end of the magnetic bead FB1 is connected to one end of the resistor R5, and the other end of the resistor R5 is grounded. At the same time, the capacitors C3 and C6 are connected in parallel, and one end is connected to the output of the op amp, and the other end is grounded. After that, the output of the op amp is connected to the ADC port of the MCU, and this part constitutes the current detection output circuit.
[0023] When the motor needs to rotate forward, the output control of transistor Q1 through resistor R8 and the in-place output circuit are high, and the output control of transistor Q1 through resistor R12 and the in-place output circuit are low. At this time, the motor driver chip works in the forward direction, the motor rotates forward, and the output of the motor and the current detection input circuit work, so that the above-mentioned current detection output circuit obtains the current size of the motor and transmits it to the MCU. When the motor moves to the right position, the travel switch is touched, and the output control of transistor Q1 through resistor R8 and the level of the in-place output circuit are pulled down, so that the motor driver chip works in the braking mode, and the motor movement stops immediately. At the same time, it is detected that the actual level of the above-mentioned control and in-place detection end changes, and the output of the current detection output circuit is 0, and a signal that the motor is in place and stops normally is obtained, and the same is true for the motor reversal.
[0024] The description of the present invention is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the present invention to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.
Claims
1. A DC motor forward and reverse rotation control system for an egg quality analyzer, characterized in that: It includes a current detection output circuit and a motor control circuit. The motor control circuit is used for motor forward and reverse control and in-position detection. The current detection output circuit is connected to the motor control circuit. The current detection output circuit includes a current detection chip U1, and the model of the current detection chip U1 is ACS712-05B.
2. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 1, characterized in that: Pin 8 of the current detection chip U1 is connected to one end of capacitor C2 and connected to +5V, the other end of capacitor C2 is grounded, pin 7 of the current detection chip U1 is connected to one end of resistor R2, the other end of resistor R2 is connected to pin 3 of op amp U2 and one end of resistor R1.
3. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 1, characterized in that: The current detection output circuit also includes an operational amplifier U2, wherein pin 1 of the operational amplifier U2 is connected to one end of a precision controllable voltage regulator U3 and one end of a resistor R4, the other end of the resistor R4 is connected to the +5V precision controllable voltage regulator U3, and the other two ends are respectively connected to one end of the resistor R4 and ground, and pin 4 of the operational amplifier U2 is connected to the ADC port of the MCU.
4. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 3, characterized in that: Pin 4 of the operational amplifier U2 is also connected to the other end of the resistor R1, one end of the resistor R3, one end of the capacitor C3, one end of the magnetic bead FB1, one end of the capacitor C6 and one end of the capacitor C3; the other end of the magnetic bead FB1 is connected to one end of the resistor R5; the other end of the resistor R3, the other end of the capacitor C3, the other end of the resistor R5, the other end of the capacitor C6 and the other end of the capacitor C3 are grounded.
5. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 1, characterized in that: The motor control circuit includes a motor driver chip U4, and the model of the motor driver chip U4 is AS4950.
6. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 5, characterized in that: Pin 2 of the motor drive chip U4 is connected to one end of a resistor R6 and the collector of a transistor Q1, the other end of the resistor R6 is connected to +5V, the emitter of the transistor Q1 is grounded, the base of the transistor Q1 is connected to one end of a resistor R8 and one end of a resistor R10, the other end of the resistor R10 is grounded, the other end of the resistor R8 is connected to one end of a resistor R7 and pin 1 of the interface P2, and is connected to the IO port of the MCU as an open-drain output end for motor control, and the other end of the resistor R7 is connected to +5V.
7. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 5, characterized in that: Pin 3 of the motor drive chip U4 is connected to one end of a resistor R11 and the collector of a transistor Q2, the other end of the resistor R11 is connected to +5V, the emitter of the transistor Q2 is grounded, the base of the transistor Q2 is connected to one end of a resistor R12 and one end of a resistor R14, the other end of the resistor R14 is grounded, the other end of the resistor R12 is connected to one end of a resistor R13 and pin 3 of the interface P2, and is connected to the IO port of the MCU as another open-drain output end of the motor control, and the other end of the resistor R13 is connected to +5V.
8. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 7, characterized in that: Pins 1 and 2 of the interface P2 are connected to a forward travel switch, and pins 3 and 4 of the interface P2 are connected to a reverse travel switch.
9. A DC motor forward and reverse rotation control system for an egg quality analyzer as claimed in claim 5, characterized in that: Pins 3 and 4 of the current detection chip U1 are connected to pin 6 of the motor drive chip U4, pins 1 and 2 of the current detection chip U1 are connected to pin 1 of interface P1, pin 8 of the motor drive chip U4 is connected to pin 3 of interface P1, and interface P1 is connected to an external motor.
