Signal generating circuit, timing circuit, safety control module and robot
By using constant current charging to generate a ramp signal in the RC timing circuit and employing a two-point correction method to eliminate errors, the problem of large timing errors in RC timing circuits during long-term timing applications is solved, thereby reducing cost and size.
Patent Information
- Application Number
- CN202410832501.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing RC timing circuits suffer from large timing errors and high costs in long-term timing applications, especially due to the use of large-value resistors or large-value capacitors.
A constant current charging process is performed when the signal generation circuit is disconnected via a switching circuit to generate a ramp signal. This ramp signal is then used as the timing signal for the timing circuit. Timing errors are eliminated using a two-point correction method, and smaller resistors and capacitors are used to reduce cost and size.
It achieves constant timing error and reliability, while reducing the cost and size of timing circuits, thus meeting the needs of miniaturized design.
Smart Images

Figure CN118381489B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic control technology, and in particular to a signal generating circuit, a timing circuit, a safety control module and a robot. Background Art
[0002] The existing RC timing circuit has a simple structure and low component cost in short timing applications. However, in long timing applications, in order to obtain a larger RC time constant, such as in applications where the timing duration exceeds about 1 second or even longer, a larger resistance (above 1MΩ) is often used, resulting in a large timing error; or a larger capacitor is used, which has a large volume and high cost. Summary of the invention
[0003] The present application provides a signal generating circuit, a timing circuit, a safety control module and a robot to reduce the error and cost of the timing circuit.
[0004] The present application provides a signal generating circuit, which includes an amplifier circuit, a first resistor, a capacitor and a switch circuit, wherein the first input end of the amplifier circuit is used to access a first power supply signal; one end of the first resistor is connected to a second power supply signal, and the other end of the first resistor is connected to the second input end of the amplifier circuit; one end of the capacitor is connected to the other end of the first resistor and the second input end, and the other end of the capacitor is connected to the output end of the amplifier circuit; the switch circuit is respectively connected to the second input end and the output end; wherein, when the switch circuit is disconnected, the second power supply signal charges the capacitor with a constant current through the first resistor.
[0005] The present application provides a timing circuit, which includes the above-mentioned signal generating circuit and a timing output circuit, wherein the timing output circuit is connected to the output end and is used to output a timing signal; wherein, when the capacitor is in a constant current charging state, the timing output circuit outputs a timing signal when the output voltage of the amplifier circuit reaches a preset voltage.
[0006] The present application provides a safety control module, which includes the above-mentioned timing circuit and an output module; wherein the preset voltage is determined based on the actual speed of the moving part during the deceleration phase; the output module is connected to the timing output circuit, and outputs the timing signal output by the timing output circuit as a shutdown signal.
[0007] The present application provides a robot, which includes a main body, a motor and the above-mentioned safety control module, wherein the motor is arranged on the main body; the safety control module is arranged on the main body and connected to the motor, and the safety control module controls the motor torque shutdown by outputting a shutdown signal.
[0008] The beneficial effects of the present application are as follows: when the switch circuit of the signal generating circuit of the present application is disconnected, the second power supply signal charges the capacitor with a constant current through the first resistor, so that the output end of the amplifier circuit outputs a signal that changes linearly with time, that is, a ramp signal. Therefore, the signal generating circuit of the present application can generate a ramp signal; because the amplitude of the ramp signal changes linearly with time, the charging voltage of the capacitor changes linearly with time, so when the signal generating circuit is used in a timing circuit, and the ramp signal is used as the timing signal of the timing circuit, the timing error caused by the error of the timing signal is constant and does not change with the ramp signal. Based on this, the error of the timing signal can be easily eliminated by, for example, a two-point correction method, thereby reducing the timing error of the timing circuit. In addition, the charging current of the capacitor is related to the first power supply signal, the second power supply signal, the resistance value of the first resistor and the capacitance value of the capacitor. Under the condition of the same resistance value and capacitance value, increasing the voltage value of the first power supply signal can change the size of the charging current, that is, long timing of the timing circuit can be achieved; or, under the same timing, the present application can adopt smaller resistance value and capacitance value. Compared with large resistance and large capacitance, small resistance and small capacitance can reduce cost and size. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:
[0010] Figure 1 is a structural schematic diagram of an embodiment of a signal generating circuit provided by the present application;
[0011] Figure 2 is a circuit diagram of an embodiment of a signal generating circuit provided by the present application;
[0012] Figure 3 is a schematic structural diagram of an embodiment of a ramp signal provided by the present application;
[0013] Figure 4 It is a structural schematic diagram of an embodiment of a timing circuit provided by the present application;
[0014] Figure 5 is a circuit diagram of an embodiment of a timing circuit provided by the present application;
[0015] Figure 6 is a circuit diagram of another embodiment of the timing circuit provided by the present application;
[0016] Figure 7 is a circuit diagram of an embodiment of a conventional RC charging circuit;
[0017] Figure 8 yes Figure 7 A schematic diagram of the relationship between the voltage across the eighth resistor and time in the embodiment;
[0018] Fig. 9 It is a structural diagram of an embodiment of a security control module provided by the present application;
[0019] Fig.10 It is a circuit diagram of a specific application embodiment of the safety control module provided by the present application;
[0020] Fig.11 It is a schematic structural diagram of an embodiment of a robot provided in the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), such directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0023] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0024] The present application provides a signal generating circuit, which can generate a ramp signal whose amplitude changes linearly with time and whose shape is similar to a ramp. For example, the ramp signal can be a ramp signal whose voltage value decreases linearly with time, or the ramp signal can be a ramp signal whose voltage value increases linearly with time. Figures 1 to 3 , Figure 1is a structural diagram of an embodiment of a signal generating circuit provided by the present application, Figure 2 is a circuit diagram of an embodiment of a signal generating circuit provided by the present application, Figure 3 Schematic diagram of a ramp signal according to an embodiment of the present invention. Figures 1 to 3 As shown, the signal generating circuit 100 includes an amplifier circuit 110, a first resistor R1, a capacitor C1 and a switch circuit 120. The first input end of the amplifier circuit 110 is used to access the first power supply signal; one end of the first resistor R1 is connected to the second power supply signal, and the other end of the first resistor R1 is connected to the second input end of the amplifier circuit 110; one end of the capacitor C1 is connected to the other end of the first resistor R1 and the second input end of the amplifier circuit 110, and the other end of the capacitor C1 is connected to the output end of the amplifier circuit 110; the switch circuit 120 is respectively connected to the second input end and the output end of the amplifier circuit 110; wherein, when the switch circuit 120 is disconnected, the second power supply signal charges the capacitor C1 with a constant current through the first resistor R1.
[0025] It can be known that the output signal of the signal generating circuit 100 is composed of the output signal of the amplifier circuit 110 and the voltage of the capacitor C1. When the switch circuit 120 is disconnected, the first resistor R1 and the capacitor C1 form an RC circuit, and the second power supply signal charges the capacitor C1 with a constant current through the first resistor R1, that is, the charging current of the capacitor C1 is a constant value. Based on this, the charging voltage of the capacitor C1 changes linearly with time. After the switch circuit 120 is disconnected, the amplitude of the output signal of the signal generating circuit 100 changes linearly with time, that is, the signal output by the signal generating circuit 100 during the period when the switch circuit 120 is disconnected can be a ramp signal Ramp. When the switch circuit 120 is closed, the capacitor C1 is short-circuited. At this time, the amplifier circuit 110 is in a voltage following state, and the output signal of the signal generating circuit 100 is a signal with a constant amplitude. Figure 3 As shown, time t0 is the starting time when the switch circuit 120 is disconnected. During the period t0-t1, the switch circuit 120 is in an open state. At this time, the signal generating circuit 100 outputs a ramp signal Ramp, and the ramp signal Ramp is a signal whose voltage value decreases linearly with time; during the period 0-t0, the switch circuit 120 is in a closed state. At this time, the output signal of the signal generating circuit 100 is a signal whose voltage value remains unchanged.
[0026] When the switch circuit 120 of the signal generating circuit 100 of the present application is disconnected, the second power supply signal charges the capacitor C1 with a constant current through the first resistor R1, so that the output end of the amplifier circuit 110 outputs a signal that changes linearly with time, that is, the ramp signal Ramp. Therefore, the signal generating circuit 100 of the present application can generate the ramp signal Ramp; because the amplitude of the ramp signal Ramp changes linearly with time, the charging voltage of the capacitor C1 changes linearly with time. Therefore, when the signal generating circuit 100 is used in a timing circuit and the ramp signal Ramp is used as the timing signal of the timing circuit, the timing error caused by the error of the timing signal is constant and does not change with the ramp signal Ramp. Based on this, the error of the timing signal can be easily eliminated by, for example, a two-point correction method, thereby reducing the error of the timing signal Comp. In addition, the charging current of capacitor C1 is related to the first power supply signal, the second power supply signal, the resistance value of the first resistor R1 and the capacitance value of capacitor C1. Under the condition of the same resistance value and capacitance value, increasing the voltage value of the first power supply signal can change the size of the charging current, that is, long timing of the timing circuit can be achieved; or, under the same timing, the present application can adopt smaller resistance value and capacitance value. Compared with large resistance and large capacitance, small resistance and small capacitance can reduce cost and size.
[0027] The timing signal refers to the signal from the start of timing to the end of timing of the timing circuit.
[0028] Optionally, the signal generating circuit 100 further includes a voltage source VCC and a first voltage divider circuit. The voltage source VCC is connected to one end of the first resistor R1 and outputs a second power supply signal. The first voltage divider circuit is respectively connected to the voltage source VCC and the first input terminal of the amplifier circuit 110, and is used to output a first power supply signal. It can be understood that the voltage source VCC outputs the second power supply signal to the first resistor R1 and the first voltage divider circuit, and the first voltage divider circuit outputs the first power supply signal after dividing the second power supply signal to provide the first power supply signal to the first input terminal of the amplifier circuit 110. In addition, the second power supply signal charges the capacitor C1 with a constant current through the first resistor R1. The first voltage divider circuit is a conventional voltage divider circuit. The signal generating circuit 100 of the present embodiment is provided with a voltage source VCC and a first voltage divider circuit, wherein the voltage source VCC provides a second power supply signal, and the first voltage divider circuit provides a first power supply signal to the first input terminal of the amplifier circuit 110 through the second power supply signal, that is, the signal generating circuit 100 of the present embodiment enables one voltage source VCC to provide two different power supply signals through the first voltage divider circuit, which can reduce the number of power supply sources and reduce the cost of the signal generating circuit 100; further, the first voltage divider circuit can use a conventional voltage divider circuit, and the first voltage divider circuit has a simpler structure than the voltage source VCC, which can reduce the design difficulty of the signal generating circuit 100.
[0029] Optionally, the voltage source VCC may be a fixed voltage source or a variable voltage source. For example, when the voltage source VCC is a variable voltage source, the variable voltage source may adjust the value of the output second power supply signal according to requirements such as the voltage value of the ramp signal Ramp and the charging time of the capacitor C1.
[0030] Optionally, the first voltage divider circuit can also be replaced by a voltage stabilizing circuit, a reference voltage circuit, an operational amplifier circuit, a controlled voltage source, a voltage-type digital-to-analog converter, a photovoltaic circuit, a voltage output sensor (such as a thermocouple), etc., to provide the first power supply signal. The above replacement schemes are all conventional schemes.
[0031] Optionally, in order to reduce the cost of the signal generating circuit 100 and the design difficulty of the signal generating circuit 100, the first voltage divider circuit includes a second resistor R2 and a third resistor R3. Among them, one end of the second resistor R2 is connected to the voltage source VCC, and the other end of the second resistor R2 is connected to the first input end of the amplifier circuit 110. One end of the third resistor R3 is connected to the first input end of the amplifier circuit 110 and the other end of the second resistor R2, and the other end of the third resistor R3 is grounded GND. Among them, when the resistance value of the first resistor R1 remains unchanged, when the resistance value of the second resistor R2 is much smaller than the resistance value of the third resistor R3, that is, when the voltage value of the first power supply signal increases, the charging current of the capacitor C1 is much smaller than the charging current of the existing RC circuit. Therefore, compared with the RC circuit composed of resistors and capacitors with the same resistance value and capacitance value, the signal generating circuit 100 of this embodiment can achieve long-term timing, thereby reducing costs.
[0032] The first voltage divider circuit of the present embodiment realizes the voltage division of the second power supply signal through two resistors, and provides the first power supply signal for the amplifier circuit 110. That is, the first voltage divider circuit of the present embodiment has a simple structure, which can reduce the design difficulty of the signal generating circuit 100; further, the first voltage divider circuit has fewer components, which can reduce the cost and reduce the volume of the signal generating circuit 100, so that the signal generating circuit 100 can meet the needs of miniaturization design.
[0033] Optionally, the amplifier circuit 110 includes an operational amplifier U1, the positive input terminal of the operational amplifier U1 is connected to the first power supply signal, the negative input terminal of the operational amplifier U1 is respectively connected to one end of the first resistor R1, one end of the capacitor C1 and one end of the switch circuit 120, and the other end of the capacitor C1 and the other end of the switch circuit 120 are also connected to the output end of the operational amplifier U1, and the other end of the first resistor R1 is also connected to the second power supply signal. In the above manner, when the switch circuit 120 is disconnected, the first resistor R1 and the capacitor C1 form an RC circuit, and the second power supply signal charges the capacitor C1 with a constant current through the first resistor R1. The amplifier circuit 110 of this embodiment only includes the operational amplifier U1, which has a simple structure, can reduce the design difficulty of the signal generating circuit 100, and reduce the cost of the signal generating circuit 100.
[0034] Optionally, in order to reduce the design difficulty of the signal generating circuit 100, the switch circuit 120 includes a switch tube S1. The first end of the switch tube S1 is connected to the second input end of the amplifier circuit 110, one end of the capacitor C1 and the other end of the first resistor R1, the second end of the switch tube S1 is connected to the output end of the amplifier circuit 110 and the other end of the capacitor C1, and the control end of the switch tube S1 is used to access the control signal. Among them, the control signal is used to control the closing and opening of the switch tube S1, and the control signal can be a high level signal or a low level signal. For example, when the switch tube S1 receives a high level signal, it is closed, so that the capacitor C1 is short-circuited, and the first resistor R1 and the amplifier circuit 110 form a follower amplifier at this time. At this time, the voltage value of the output signal of the signal generating circuit 100 remains unchanged; when the switch tube S1 receives a low level signal, it is disconnected, and the first resistor R1 and the capacitor C1 form an RC circuit. The second power supply signal charges the capacitor C1 with a constant current through the first resistor R1. At this time, the signal generating circuit 100 outputs a ramp signal Ramp, and the output voltage value of the signal generating circuit 100 decreases linearly with time.
[0035] The switch tube S1 may be any one of a triode, a field effect tube, and a power tube. For example, the switch tube S1 may be an N-type MOS tube, or a P-type MOS tube, or an N-type IGBT, or a P-type IGBT.
[0036] The present application provides a timing circuit 10, referring to Figure 4 and Figure 5 , Figure 4 is a schematic diagram of the structure of an embodiment of a timing circuit provided by the present application, Figure 5 is a circuit diagram of an embodiment of a timing circuit provided by the present application, such as Figure 4 and Figure 5As shown, the timing circuit 10 includes a signal generating circuit 100 and a timing output circuit 200. The signal generating circuit 100 is any one of the signal generating circuits in the above-mentioned signal generating circuit embodiments, which will not be described in detail here. The timing output circuit 200 is connected to the output end of the amplifier circuit 110 to output the timing signal Comp. When the capacitor C1 is in a constant current charging state, the timing output circuit 200 outputs the timing signal Comp when the output voltage of the amplifier circuit 110 reaches a preset voltage.
[0037] It can be understood that when the capacitor C1 is in a constant current charging state, the voltage value of the ramp signal Ramp output by the signal generating circuit 100 changes linearly with time, and as the charging time of the capacitor C1 increases, the output voltage of the amplifier circuit 110 increases or decreases linearly until the output voltage of the amplifier circuit 110 (e.g. Figure 3 When the voltage Vth corresponding to t1 reaches the preset voltage, the timing output circuit 200 outputs the timing signal Comp. That is, the first moment when the switch circuit 120 is disconnected is the timing start moment, and the second moment when the timing output circuit 200 outputs the timing signal Comp is the timing end moment. The duration of the timing is the difference between the second moment and the first moment. For example, refer to Figure 3 The first moment when the timing starts is t0, the second moment when the timing ends is t1, and the timing duration is t1-t0.
[0038] The timing circuit 10 of this embodiment is provided with a signal generating circuit 100 and a timing output circuit 200, wherein, when the capacitor C1 is in a constant current charging state, the output signal of the signal generating circuit 100 changes linearly with time, and the output signal of the signal generating circuit 100 serves as the threshold voltage of the timing output circuit 200, and the threshold voltage changes linearly, therefore, when the threshold voltage reaches a preset voltage, the timing output circuit 200 outputs a timing signal Comp with a small error, which can reduce the timing error of the timing circuit 10; in addition, the charging current of the capacitor C1 is related to the first power supply signal, the second power supply signal, the resistance value of the first resistor R1 and the capacitance value of the capacitor C1, and under the condition of the same resistance value and capacitance value, increasing the voltage value of the first power supply signal can change the size of the charging current, which can achieve long timing of the timing circuit 10; or, under the condition of the same timing, the present application can adopt a smaller resistance value and capacitance value, and a small resistance and a small capacitance can reduce the cost of the timing circuit 10 and reduce the volume of the timing circuit 10 compared with a large resistance and a large capacitance.
[0039] Optionally, the preset voltage may be a collected voltage.
[0040] Optionally, the first resistor R1 includes an adjustable resistor. And / or the capacitor C1 includes an adjustable capacitor. Through the adjustable resistor and / or the adjustable capacitor, the charging time of the capacitor C1 can be changed as needed, thereby changing the timing time and realizing the adjustable timing time. For example, the first resistor R1 is an adjustable resistor, and the capacitor C1 can be a fixed capacitor. The charging time of the capacitor C1 is changed by changing the resistance value of the adjustable resistor, thereby changing the timing time; or the first resistor R1 is a fixed resistor, and the capacitor C1 can be an adjustable capacitor. The charging time of the capacitor C1 is changed by changing the capacitance value of the adjustable capacitor, thereby changing the timing time; or, the first resistor R1 is an adjustable resistor, and the capacitor C1 is an adjustable capacitor, which can be changed separately.
[0041] Optionally, the adjustable resistor may be a mechanical adjustable resistor, a resistor box, a temperature-sensitive resistor, a photoresistor, a transistor, a resistance-type digital-to-analog converter, etc. The adjustable capacitor may be a mechanical adjustable capacitor, a capacitor box, etc.
[0042] Optionally, when the switch circuit 120 is closed, the capacitor C1 is in a non-charging state, and the amplifier circuit 110 is in a voltage following state, so that the output voltage of the output end of the amplifier circuit 110 is constant, and the output voltage of the amplifier circuit 110 is not equal to the preset voltage of the timing output circuit 200, then the timing output circuit 200 at this time has no timing signal Comp output, or the state of the timing signal Comp remains unchanged. When the switch circuit 120 is disconnected, the capacitor C1 is in a constant current charging state, and the output voltage of the amplifier circuit 110 is affected by the voltage of the capacitor C1, so that the output voltage of the amplifier circuit 110 changes linearly, so when the capacitor C1 is in a constant current charging state, the output voltage of the output end of the amplifier circuit 110 can be linearly adjusted to the preset voltage, and the timing output circuit 200 outputs the timing signal Comp when the output voltage of the output end of the amplifier circuit 110 is equal to the preset voltage, or the state of the timing signal Comp changes, for example, from a high level to a low level. This embodiment realizes the control of timing by controlling the opening and closing of the switch circuit 120, and its control is simple and easy to implement.
[0043] In other embodiments, the timing signal Comp may be in a level flipping process, or the timing signal Comp may be a high level signal, or the timing signal Comp may be a low level signal.
[0044] Optionally, the signal generating circuit 100 of the present embodiment further includes a voltage source VCC, a second resistor R2 and a third resistor R3. The voltage source VCC is connected to one end of the first resistor R1 and outputs a second power supply signal. One end of the second resistor R2 is connected to the voltage source VCC, and the other end of the second resistor R2 is connected to the first input end of the amplifier circuit 110; one end of the third resistor R3 is connected to the first input end of the amplifier circuit 110 and the other end of the second resistor R2, and the other end of the third resistor R3 is grounded GND. The ratio between the resistance value of the third resistor R3 and the resistance value of the second resistor R2 is greater than 100. That is, the resistance value of the second resistor R2 of the present embodiment is much smaller than the resistance value of the third resistor R3, and the charging current of the capacitor C1 of the timing circuit 10 of the present embodiment is much smaller than that of the general RC circuit, so the charging time of the capacitor C1 is much longer than that of the general RC circuit, which can achieve long-term timing.
[0045] Optionally, the timing output circuit 200 includes a comparator circuit, the positive input terminal of the comparator circuit is connected to the output terminal, the negative input terminal of the comparator circuit is used to access a preset voltage, and the comparator circuit is used to output a timing signal Comp when the voltage at the positive input terminal is less than or equal to the preset voltage. The comparator circuit can be, for example, an integrated operational amplifier, the positive input terminal of the comparator circuit is used to input the output signal of the signal generating circuit 100, the negative input terminal of the comparator circuit is used to access a preset voltage as a reference, and when the voltage value of the output signal of the signal generating circuit 100 that decreases linearly with time is less than or equal to the preset voltage, the comparator circuit outputs the timing signal Comp. The timing output circuit 200 of this embodiment includes a comparator circuit, that is, the timing output circuit 200 of this embodiment uses a hardware circuit to implement the comparison of two voltage values to output the timing signal Comp, and its structure is simple and easy to implement.
[0046] Optionally, see Figure 6 , Figure 6 is a circuit diagram of another embodiment of the timing circuit provided by the present application, such as Figure 6As shown, the timing signal Comp of this embodiment includes a first timing signal and a second timing signal, wherein the timing durations of the first timing signal and the second timing signal are different. The timing output circuit 200 of this embodiment includes a first comparator W1, a second comparator W2, and a second voltage divider circuit. Among them, the first input end of the first comparator W1 is connected to the output end of the amplifier circuit 110, the second input end of the first comparator W1 is connected to the second voltage divider circuit, and the second voltage divider circuit is used to provide a first preset voltage to the first comparator W1, and the first comparator W1 is used to output the first timing signal when the output voltage of the amplifier circuit 110 reaches the first preset voltage. The first input end of the second comparator W2 is connected to the output end of the amplifier circuit 110, the second input end of the second comparator W2 is connected to the second voltage divider circuit, and the second voltage divider circuit is used to provide a second preset voltage to the second comparator W2, and the second comparator W2 is used to output the second timing signal when the output voltage of the amplifier circuit 110 reaches the second preset voltage. The second voltage divider circuit is connected to the second input terminal of the first comparator W1 and the second input terminal of the second comparator W2 respectively, and is connected to the third power supply signal. The second voltage divider circuit is used to divide the third power supply signal, and provide a first preset voltage to the first comparator W1 and a second preset voltage to the second comparator W2 respectively. The first preset voltage is different from the second preset voltage, and the output time of the first timing signal and the second timing signal is different to achieve different timing durations.
[0047] It can be understood that the timing output circuit 200 of this embodiment is configured with a first comparator W1 and a second comparator W2, and the first comparator W1 and the second comparator W2 are connected to different preset voltages, but are connected to the output voltage of the amplifier circuit 110 at the same time, so that the first comparator W1 and the second comparator W2 output the timing signal Comp at different times, thereby realizing different timing durations of the timing circuit 10. That is, the timing circuit 10 of this embodiment, by configuring the first comparator W1 and the second comparator W2 through the timing output circuit 200, can realize the output of two timing signals Comp, and has a simple structure. In addition, the second voltage divider circuit can realize the provision of different preset voltages, and compared with setting different voltage sources VCC, the second voltage divider circuit can reduce costs.
[0048] In other embodiments, the timing output circuit 200 may also be provided with a plurality of comparators according to different timing requirements, which is not limited here.
[0049] Optionally, the second voltage divider circuit includes a fourth resistor R4, a fifth resistor R5 and a sixth resistor R6, wherein one end of the fourth resistor R4 is connected to the third power supply signal, and the other end of the fourth resistor R4 is connected to the second input end of the first comparator W1. One end of the fifth resistor R5 is connected to the other end of the fourth resistor R4 and the second input end of the first comparator W1, and the other end of the fifth resistor R5 is connected to the second input end of the second comparator W2. One end of the sixth resistor R6 is connected to the other end of the fifth resistor R5 and the second input end of the second comparator W2, and the other end of the sixth resistor R6 is grounded GND. The fourth resistor R4, the fifth resistor R5 and the sixth resistor R6 of this embodiment are arranged in series to divide the connected third power supply signal, so that the second voltage divider circuit provides different first preset voltages and second preset voltages for the first comparator W1 and the second comparator W2 respectively. The second voltage divider circuit of this embodiment has a simple structure, is easy to implement, and can reduce costs.
[0050] In a specific application, see Figure 3 and Figure 5 The switch circuit 120 includes a switch tube S1, and the amplifier circuit 110 includes an amplifier U1.
[0051] 1) Before time t0, the input signal of switch tube S1 is a high-level signal, making switch tube S1 in the on state, capacitor C1 is short-circuited, and the voltage difference across capacitor C1 is 0. Then the output voltage of amplifier U1 is equal to the input voltage of the reverse input terminal and the same input terminal voltage of amplifier U1. At this time, the output voltage of amplifier U1 is:
[0052]
[0053] Wherein, VCC is the voltage value of the second power supply signal, R2 is the resistance value of the second resistor R2, and R3 is the resistance value of the third resistor R3. Since the output voltage of the amplifier U1 is higher than the preset voltage at this time, the output signal of the comparator circuit remains in a high level state. Wherein, the preset voltage is:
[0054]
[0055] Wherein, R4 is the resistance value of the fourth resistor R4, and R5 is the resistance value of the fifth resistor R5.
[0056] 2) At time t0, the input signal of switch tube S1 changes from high to low, the switch tube S1 is disconnected, the capacitor C1 starts to charge, and the timing starts.
[0057] 3) During the timing process, as the capacitor C1 is charged, the voltage across the capacitor C1 increases linearly, and the output voltage of the amplifier U1 decreases linearly with time. At this time, the signal generating circuit 100 outputs the ramp signal Ramp. Before time t1, the voltage value of the ramp signal Ramp is higher than the preset voltage, and the timing signal Comp remains in a high level state.
[0058] 4) After time t1, the voltage value of the ramp signal Ramp is lower than the preset voltage, the output signal of the comparator circuit jumps to a low-level signal, and the timing ends.
[0059] 5) After time t1, the capacitor C1 continues to charge, and the ramp signal Ramp continues to decrease linearly until the output is saturated (approximately 0V), at which time the output of the signal generating circuit 100 ends.
[0060] In other embodiments, the second voltage divider circuit can also be replaced with a voltage stabilizing circuit, a reference voltage circuit, an op amp circuit output, a controlled voltage source, a voltage-type digital-to-analog converter, a photovoltaic circuit, a voltage output sensor (such as a thermocouple), etc., to provide different preset voltages. The above replacement schemes are all conventional schemes.
[0061] Optionally, the timing signal Comp of this embodiment also includes a third timing signal, and the timing duration of the third timing signal is different from that of the first timing signal and the second timing signal. The timing output circuit 200 of this embodiment also includes a third comparator W3, the first input end of the third comparator W3 is connected to the output end of the amplifier circuit 110, the second input end of the third comparator W3 is connected to the third preset voltage, and the third comparator W3 is used to output the third timing signal when the output voltage of the amplifier circuit 110 reaches the third preset voltage. The second voltage divider circuit also includes a seventh resistor R7, one end of the seventh resistor R7 is connected to the other end of the sixth resistor R6 and the second input end of the third comparator W3, the other end of the seventh resistor R7 is grounded, and the second voltage divider circuit is also used to provide a third preset voltage; wherein the resistance value of the fourth resistor R4, the resistance value of the fifth resistor R5 and the resistance value of the sixth resistor R6 are equal, so that the time interval between the first timing signal and the second timing signal is equal to the time interval between the second timing signal and the third timing signal.
[0062] It can be understood that the timing output circuit 200 of this embodiment includes three comparators, and the three comparators are simultaneously connected to the signal output by the signal generating circuit 100. At the same time, the three comparators are all connected to different preset voltages, and the voltage divider resistors that provide the preset voltages have the same resistance value, so that the time intervals of the timing signals Comp output at adjacent moments are equal, which can increase the application scenarios of the timing circuit 10.
[0063] See also Figure 7 , Figure 7FIG. 1 is a circuit diagram of an embodiment of a conventional RC charging circuit. Figure 7 The timing circuit of the present application is illustrated by the prior art. When the second resistor R2 = 100Ω, the third resistor R3 = 20KΩ, the first resistor R1 = 50KΩ, and the voltage source VCC = 5V (the voltage value of the second power supply signal), the constant current charging current to the capacitor C1 is:
[0064] (1)
[0065] The ramp signal Ramp output by the signal generating circuit is:
[0066] (2)
[0067] (3)
[0068] Wherein, U1P is the first power supply signal; t0 is the time when the timing starts; and t is the time when the charging of the capacitor C1 ends.
[0069] According to formulas (1)-(3), the ramp signal Ramp has a linear relationship with time t, as shown in Figure 3 As shown. According to the timing requirement t1, by substituting it into the above formula, the corresponding threshold voltage Vth can be calculated.
[0070] See also Figure 7 , when the eighth resistor R8=50KΩ, the initial charging current of the second capacitor C2 is:
[0071] (4)
[0072] The voltage across the eighth resistor R8 is:
[0073] (5)
[0074] If the capacitor C1 of the present application is 470nF, the maximum timing time of the timing circuit 10 of the present application is approximately:
[0075]
[0076] To obtain the same time constant as that of the present application in the prior art, the capacitance of the second capacitor C2 is:
[0077]
[0078] 85uF is much larger than 470nF, and the second capacitor C2 has a larger cost and volume than the capacitor C1 of the present application. Therefore, the present application achieves a longer timing under the same resistance and capacitance values; or under the same timing, a smaller resistance and capacitance can be used, which can reduce cost and volume.
[0079] According to formula (5), it can be known that the output voltage VR8 is exponentially related to time t. According to the timing requirement t1, it is difficult to calculate the corresponding threshold voltage Vth. Moreover, the threshold voltage Vth will have errors. In the present application, since the ramp signal Ramp is linearly related to time t, the timing error caused by the error in the threshold voltage Vth is constant and does not change with the threshold voltage Vth. Furthermore, since the ramp signal Ramp is linearly related to time t, the common two-point correction method can be used to eliminate the error. However, the timing error of the existing RC time constant circuit is not constant, and the longer the timing, the larger the timing error. For example Figure 8 As shown, Figure 8 yes Figure 7 A schematic diagram of the relationship between the voltage across the eighth resistor and time in the embodiment is shown in FIG. Figure 8 As shown in the figure, when the timing is small, the timing error caused by the threshold voltage error ∆Va is ∆ta; when the timing is large, the timing error caused by the threshold voltage error ∆Vb is ∆tb. Obviously, ∆tb>∆ta, that is, the larger the timing, the greater the error.
[0080] This application provides a safety control module that can be used for moving parts such as robots. This application will be introduced using robots as an example; wherein the robot may include a mobile robot, a robotic arm, etc. Fig. 9 , Fig. 9 Schematic diagram of the structure of an embodiment of the security control module provided by the present application. Fig. 9 As shown, the safety control module 20 of this embodiment includes a timing circuit 10 and an output module 21, wherein the timing circuit 10 is the timing circuit described in any embodiment of the timing circuit above, which will not be described in detail here.
[0081] Specifically, the preset voltage can be determined based on the actual speed of the moving part during the deceleration stage. The output module 21 is connected to the timing output circuit 200 of the timing circuit 10, and outputs the timing signal output by the timing output circuit 200 as a shutdown signal.
[0082] In one embodiment, the output module 21 is connected to the motor of the robot to output a shutdown signal to the motor so that the motor performs torque shutdown. It can be understood that the output module 21 can transmit the shutdown signal to the motor with almost no delay so that the motor performs torque shutdown in time to improve safety.
[0083] Optionally, the output module 21 includes a buffer.
[0084] In a specific application, such as Fig.10 As shown, Fig.10It is a circuit diagram of an embodiment of a specific application of the safety control module provided in the present application. The preset voltage connected to the second input terminal of the timing output circuit 200 is the voltage Speed corresponding to the actual speed of the robot in the deceleration stage. The control signal connected to the switch tube S1 is the deceleration signal. The second power supply signal connected to the first resistor R1 and the second resistor R2 can be the starting speed of the robot in the deceleration stage after processing and converted into a voltage signal v. The signal generating circuit 100 generates a ramp signal Ramp, that is, a safety speed signal, based on the voltage signal v and the safe deceleration time of the deceleration stage.
[0085] When the switch tube S1 is closed, the capacitor C1 is in a non-charging state, so that the signal generating circuit 100 outputs a constant voltage and the constant voltage is not equal to or less than the voltage corresponding to the actual speed, so that the signal of the timing output circuit 200 is a low-level signal; when the switch tube S1 is disconnected, that is, the switch tube S1 receives a deceleration signal, the timing circuit 10 starts timing, and the capacitor C1 is in a constant current charging state to linearly adjust the voltage at the input end of the timing output circuit 200 to the voltage corresponding to the actual speed. At this time, the timing output circuit 200 outputs a high-level signal and outputs the high-level signal as a timing signal to the output module. The output module outputs the received timing signal as a shutdown signal to the motor of the robot, so that the motor performs torque shutdown in time to improve safety.
[0086] This application also provides a robot, see Fig.11 , Fig.11 Schematic diagram of the structure of a robot embodiment provided by the present application. Fig.11 As shown, the robot 30 of this embodiment includes a main body 31, a motor 32 and a safety control module 20. The safety control module 20 is any one of the safety control modules in the above safety control module embodiments, which will not be described in detail here.
[0087] Specifically, the motor 32 and the safety control module 20 are both disposed on the main body 31 , and the safety control module 20 is connected to the motor 32 , and controls the torque shutdown of the motor 32 by outputting a shutdown signal.
[0088] The robot 30 may include a mobile robot, a robotic arm, etc., which is not limited here.
[0089] The motor 32 may be a motor that drives the robot to move, rotate, or the like as a whole, or a motor that drives one or some parts of the robot to move, rotate, or the like, and there is no limitation thereto.
[0090] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A signal generating circuit, characterized in that: The signal generating circuit comprises: an amplifier circuit, wherein a first input terminal of the amplifier circuit is used to receive a first power supply signal; A first resistor, one end of which is connected to the second power supply signal, and the other end of which is connected to the second input end of the amplifier circuit; a capacitor, one end of which is connected to the other end of the first resistor and the second input end, and the other end of which is connected to the output end of the amplifier circuit; a switch circuit, connected to the second input terminal and the output terminal respectively; Wherein, when the switch circuit is disconnected, the second power supply signal charges the capacitor with a constant current through the first resistor, so that the output signal of the amplifier circuit is a ramp signal; The second power supply signal is a voltage signal corresponding to the starting speed of the motor in the deceleration stage, and the ramp signal is a safe speed signal of the motor in the deceleration stage.
2. The signal generating circuit according to claim 1, characterized in that: The signal generating circuit further comprises: a voltage source, connected to one end of the first resistor and outputting the second power supply signal; The first voltage divider circuit is connected to the voltage source and the first input terminal respectively, and is used for outputting the first power supply signal.
3. The signal generating circuit according to claim 2, characterized in that: The first voltage divider circuit comprises: a second resistor, one end of the second resistor being connected to the voltage source, and the other end of the second resistor being connected to the first input end; A third resistor, one end of the third resistor is connected to the first input end and the other end of the second resistor, and the other end of the third resistor is grounded.
4. A timing circuit, characterized in that: The timing circuit comprises: The signal generating circuit according to any one of claims 1 to 3; A timing output circuit, connected to the output terminal, for outputting a timing signal; Wherein, when the capacitor is in a constant current charging state, the timing output circuit outputs the timing signal when the output voltage of the amplifier circuit reaches a preset voltage.
5. The timing circuit according to claim 4, characterized in that: When the switch circuit is closed, the capacitor is in a non-charging state, so that the output voltage of the output end is constant, so that the timing circuit has no timing signal output; When the switch circuit is disconnected, the capacitor is in a constant current charging state to linearly adjust the output voltage of the output end to the preset voltage.
6. The timing circuit according to claim 4, characterized in that: The signal generating circuit further comprises: a voltage source, connected to one end of the first resistor and outputting the second power supply signal; a second resistor, one end of the second resistor being connected to the voltage source, and the other end of the second resistor being connected to the first input end; a third resistor, one end of the third resistor being connected to the first input end and the other end of the second resistor, and the other end of the third resistor being grounded; Wherein, a ratio between a resistance value of the third resistor and a resistance value of the second resistor is greater than 100.
7. The timing circuit according to claim 4, characterized in that: The timing output circuit comprises: A comparator circuit, wherein the positive input terminal of the comparator circuit is connected to the output terminal, the negative input terminal of the comparator circuit is used to access the preset voltage, and the comparator circuit is used to output the timing signal when the voltage at the positive input terminal is less than or equal to the preset voltage.
8. The timing circuit according to claim 4, characterized in that: The timing signal includes a first timing signal and a second timing signal, and the timing output circuit includes: a first comparator, wherein a first input terminal of the first comparator is connected to the output terminal, a second input terminal of the first comparator is connected to a first preset voltage, and the first comparator is used to output the first timing signal when the output voltage of the amplifier circuit reaches the first preset voltage; a second comparator, wherein a first input terminal of the second comparator is connected to the output terminal, a second input terminal of the second comparator is connected to a second preset voltage, and the second comparator is used to output the second timing signal when the output voltage of the amplifier circuit reaches the second preset voltage; a second voltage divider circuit, connected to the second input terminal of the first comparator and the second input terminal of the second comparator respectively, and connected to a third power supply signal, the second voltage divider circuit is used to provide the first preset voltage and the second preset voltage; The first preset voltage is different from the second preset voltage, and the output times of the first timing signal and the second timing signal are different to achieve different timing durations.
9. The timing circuit according to claim 8, characterized in that: The second voltage divider circuit comprises: a fourth resistor, one end of which is connected to the third power supply signal, and the other end of which is connected to the second input end of the first comparator; a fifth resistor, one end of the fifth resistor being connected to the other end of the fourth resistor and the second input end of the first comparator, and the other end of the fifth resistor being connected to the second input end of the second comparator; a sixth resistor, one end of the sixth resistor is connected to the other end of the fifth resistor and the second input end of the second comparator, and the other end of the sixth resistor is grounded.
10. The timing circuit according to claim 9, characterized in that: The timing signal further includes a third timing signal, and the timing output circuit further includes a third comparator, a first input terminal of the third comparator is connected to the output terminal, a second input terminal of the third comparator is connected to a third preset voltage, and the third comparator is used to output the third timing signal when the output voltage of the amplifier circuit reaches the third preset voltage; The second voltage divider circuit further includes a seventh resistor, one end of the seventh resistor is connected to the other end of the sixth resistor and the second input end of the third comparator, the other end of the seventh resistor is grounded, and the second voltage divider circuit is further used to provide the third preset voltage; The resistance values of the fourth resistor, the fifth resistor and the sixth resistor are equal, so that the time interval between the first timing signal and the second timing signal is equal to the time interval between the second timing signal and the third timing signal.
11. The timing circuit according to claim 4, characterized in that: The first resistor comprises an adjustable resistor; And / or the capacitor includes an adjustable capacitor.
12. A safety control module, characterized in that: The safety control module comprises: The timing circuit according to any one of claims 4 to 11; wherein the preset voltage is determined based on the actual speed of the moving part during the deceleration phase; The output module is connected to the timing output circuit and outputs the timing signal output by the timing output circuit as a shutdown signal.
13. A robot, characterized in that: include: main body; A motor, arranged on the main body; A safety control module is arranged on the main body and connected to the motor, and the safety control module controls the motor torque to be shut off by outputting a shutoff signal; Wherein, the security control module is the security control module described in claim 12.
Citation Information
Patent Citations
Ramp generation circuit and A / D converter
CN101179272A
Driving circuit capable of adaptively adjusting switching speed of SiC MOSFET
CN109981088A
Auxiliary reinstalling equipment
CN110780611A
Current injection compensation capacitance detection circuit and method
CN112986694A
Novel battery charging circuit
CN115117972A
