Continuous capacitive angle sensor
By designing a continuous capacitive angle sensor and using printed circuit boards and microcontrollers to detect capacitance changes, the problems of high cost and low resolution of existing capacitive angle sensors are solved, and higher detection accuracy and durability are achieved.
Patent Information
- Application Number
- CN202410806066.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-01
AI Technical Summary
Existing capacitive angle sensors have high production costs and their resolution is limited by metal sheets. They require dedicated reading and writing circuits and are prone to wear and interference from external magnetic fields.
A continuous capacitive angle sensor is designed, which uses a combined structure of connecting pads and metal sheets. It is produced by printed circuit boards to simplify the detection circuit. It uses a single-chip microcomputer to detect capacitance changes, avoiding high-precision manufacturing and external circuits, and achieving a more accurate High durability and sensitivity.
It reduces the production cost, simplifies the detection circuit, improves the resolution and durability, can be directly produced using printed circuit boards, is not interfered by external magnetic fields, and has higher detection accuracy.
Smart Images

Figure CN118729929A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of angle sensors, in particular to a continuous capacitive angle sensor. Background Art
[0002] Capacitive angle sensors are sensors that use the principle of capacitors to detect angle changes. This type of sensor determines the angular position of a rotating part relative to a fixed part by measuring changes in capacitance, and is non-contact, highly accurate, and highly sensitive.
[0003] Angle sensors are needed when controlling motors. Currently, the main angle sensors used are optical encoders, rotary potentiometers, magnetic field sensors, and capacitive sensors. They each have their own advantages and disadvantages. For example, optical encoders are easily deformed and contaminated. Resistive potentiometers have the lowest cost, but they can wear out and open circuits. Magnetic field sensors are more convenient and accurate, but for hollow motors, multiple magnets need to be arranged around the rotating device for detection, and they will be interfered by external magnetic fields. Capacitive sensors are currently mainly an encoding method of several metal sheets. The main problems are that the resolution is limited by the metal sheets and that a dedicated read-write circuit is required. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the shortcomings of the prior art, the present invention provides a continuous capacitive angle sensor, which solves the problem of high manufacturing cost of the capacitive angle sensor.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a continuous capacitive angle sensor, comprising a connecting disk 1 and a connecting disk 2, a metal sheet 1 is fixedly connected to the outer side of the connecting disk 1, four metal sheets 2 are fixedly connected to the outer side of the connecting disk 1 near the center, a center hole 1 is opened in the middle of the connecting disk 1, a center hole 2 is opened in the middle of the connecting disk 2, and a semicircular metal sheet is fixedly connected to the outer side of the connecting disk 2.
[0008] Preferably, the distance between the metal sheet 1 and the metal sheet 2 is 0.2 mm.
[0009] Preferably, the distance between the two metal sheets 2 is 0.2 mm.
[0010] Preferably, the distance between the first connection plate and the second connection plate is 0.2 mm.
[0011] Preferably, the outer sides of the metal sheet 1 and the metal sheet 2 are connected to five pins of the single chip computer.
[0012] Preferably, the diameter of the semicircular metal sheet is greater than or equal to the diameter of the first metal sheet, and the inner diameter of the semicircular metal sheet is less than or equal to the inner diameters of the four second metal sheets.
[0013] (III) Beneficial effects
[0014] The present invention provides a continuous capacitive angle sensor having the following beneficial effects:
[0015] 1. Compared with optical encoders and capacitive encoders, it is easier to produce. It can be made directly with printed circuit boards and does not require high-precision production.
[0016] 2. Compared with capacitive encoders and electromagnetic sensors, the detection circuit is simple and only requires a single-chip microcomputer without any additional circuit.
[0017] 3. Compared with simple encoders, it can detect absolute angles.
[0018] 4. Compared with the potentiometer, the rotating parts and fixed parts have no sliding friction and are more durable. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the fixed part in the present invention;
[0020] Figure 2 It is a schematic diagram of the rotating part in the present invention;
[0021] Figure 3 It is an overall schematic diagram of the present invention.
[0022] Among them, 1. Connecting plate 1; 2. Metal sheet 1; 3. Metal sheet 2; 4. Center hole 1; 5. Connecting plate 2; 6. Semicircular metal sheet; 7. Center hole 2. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0024] Example:
[0025] like Figure 1 - Figure 3As shown, the embodiment of the present invention provides a continuous capacitive angle sensor, including a connection plate 1 and a connection plate 2 5, a metal sheet 1 2 is fixedly connected to the outside of the connection plate 1, four metal sheets 2 3 are fixedly connected to the outside of the connection plate 1 near the center, a center hole 1 4 is opened in the middle of the connection plate 1, a center hole 2 7 is opened in the middle of the connection plate 2 5, a semicircular metal sheet 6 is fixedly connected to the outside of the connection plate 2 5, the outsides of the metal sheets 1 2 and 2 3 are connected to five pins of a single-chip computer, the diameter of the semicircular metal sheet 6 is greater than or equal to the diameter of the metal sheet 1 2, and the inner diameter of the semicircular metal sheet 6 is less than or equal to the inner diameter of the four metal sheets 2 3. The four metal sheets 2 3 are numbered A, B, C, and D respectively.
[0026] The distance between the metal sheet 1 2 and the metal sheet 2 3 is 0.2 mm, the distance between the two metal sheets 2 3 is 0.2 mm, and the distance between the connection plate 1 1 and the connection plate 2 5 is 0.2 mm. The fixed part is composed of the connection plate 1 1, the metal sheet 1 2, the metal sheet 2 3 and the center hole 1 4, and the rotating part is composed of the connection plate 2 5, the semicircular metal sheet 2 6 and the center hole 2 7.
[0027] The distance between the metal sheet 1 2 and the metal sheet 2 3 and the distance between the two metal sheets 2 3 only need to be insulated from each other and can be cut with a utility knife or corroded according to the process of making circuit boards.
[0028] The rotating part and the fixed part are installed concentrically through the hole in the middle, leaving a small gap between the two parts, generally about 0.2mm. The fixed part is installed on one side of the rotating part and connected to the corresponding pins of the single chip. The rotating part rotates with the rotating part.
[0029] The rotating part will cover half of the metal sheet 12 and metal sheet 23 of the fixed part, and will also cover two or three inner metal sheets 23, so a capacitor C0 will be formed between the outer ring sheet and the rotating part, and four variable capacitors C1, C2, C3, and C4 will be formed between the four inner metal sheets 23 and the rotating part. By detecting the capacitance changes of the four capacitors C1 to C4, the rotation angle of the rotating part relative to the fixed part can be obtained.
[0030] There are two ways to detect capacitance:
[0031] 1. The PWM signal of the microcontroller passes through the metal sheet 12, coupled to the rotating part by C1, and then coupled to the four metal sheets 23 through C1, C2, C3, and C4, and then connected to the four ADC pins of the microcontroller. The PWM frequency can be adjusted to make the signal measured by the ADC pin strong and stable enough. As the rotating part rotates, C1, C2, C3, and C4 will change periodically, causing the signal strength measured by ADC1-ADC4 to change periodically. The algorithm can be used to calculate the current rotation angle based on the intensity change.
[0032] 2. The metal sheet 1 2 is connected to the ground GND of the single-chip circuit, and the four metal sheets 2 3 are connected to the power supply VCC of the single-chip circuit through resistors R, and the R value is 1M ohm. The four Input Capture input capture pins of the single-chip timer are connected to the four metal sheets 2 3 respectively. The open-drain input IO pins of the single-chip are also connected to the four metal sheets 2 3 respectively. At the initial moment of the system, Dra in0-Dra in3 all output low level to discharge the four metal sheets 2 3, and then Dra in stops outputting low level and changes to disconnect mode. At the same time, Capture0-Capture3 start the timing task of capturing high level. Then VCC charges the four metal sheets 2 3 through resistor R, and the voltage gradually rises. According to the different positions of the semicircular metal sheet 6 of the rotating part, the capacitors C1, C2, C3, and C4 formed by it and the four metal sheets 2 3 are also different in size, so the time to charge to trigger the capture pin is also different. The captured timing length can reflect the capacitance of C1 to C4, and the rotation angle can be calculated. The algorithm is described later. After the capture is completed, Drain0-Drain3 are all output low level to discharge the four metal sheets 23, and enter the next capture process. This method has higher accuracy in obtaining the angle.
[0033] The following algorithm can be used to calculate the angle in both modes. Assuming that the four changing capacitances are calculated from the collected data, they are C1, C2, C3, and C4, and Ct1 = C1 + C2 – C3 – C4, Ct2 = C1 + C4 – C3 – C2, and Cmax = 2 × (Cxmax-Cxmin). According to the law of capacitance change, through phase difference calculation, Ct1 and Ct2 filter the starting error and common mode noise of the timer, and Ct1 and Ct2 differ by 90 degrees in the measured angle value. Cmax is twice the difference between the single maximum capacitance and the single minimum capacitance from C1 to C4, and is a relatively fixed value during the rotation process. For the convenience of description, it can be assumed that the semicircular metal sheet 6 just completely covers A and B, that is, C1 and C2 reach the maximum value, and C3 and C4 reach the minimum value as the starting position of 0 degrees. As the semicircle rotates, the semicircular metal sheet 6 rotates clockwise, and the angle can be calculated according to the relationship between Ct1 and Ct2 as follows:
[0034] 1. 0-180 degrees: This interval can be defined by Ct2>=0, and then the angle value Angle1 of 0-180 degrees can be calculated by Angle1=90-90*Ct1 / Cmax.
[0035] 2. 180-360 degrees: This interval can be defined by Ct2<0, and then the angle value Angle2 of 180-360 degrees can be calculated by Angle1=270+180*Ct1 / Cmax.
[0036] Combining the Angle1-Angle2 calculated above, we can get all the angles of one rotation.
[0037] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A continuous capacitive angle sensor, comprising a first connecting plate (1) and a second connecting plate (5), characterized in that: The outer side of the connection disk one (1) is fixedly connected to a metal sheet one (2), the outer side of the connection disk one (1) is fixedly connected to four metal sheets two (3) near the center, the middle of the connection disk one (1) is provided with a center hole one (4), the middle of the connection disk two (5) is provided with a center hole two (7), and the outer side of the connection disk two (5) is fixedly connected to a semicircular metal sheet (6).
2. The continuous capacitive angle sensor according to claim 1, characterized in that: The distance between the metal sheet 1 (2) and the metal sheet 2 (3) is 0.2 mm.
3. The continuous capacitive angle sensor according to claim 1, characterized in that: The distance between the two metal sheets 2 (3) is 0.2 mm.
4. The continuous capacitive angle sensor according to claim 1, characterized in that: The distance between the connection plate 1 (1) and the connection plate 2 (5) is 0.2 mm.
5. The continuous capacitive angle sensor according to claim 1, characterized in that: The outer sides of the metal sheet 1 (2) and the metal sheet 2 (3) are connected to five pins of the single chip computer.
6. The continuous capacitive angle sensor according to claim 1, characterized in that: The diameter of the semicircular metal sheet (6) is greater than or equal to the diameter of the metal sheet one (2), and the inner diameter of the semicircular metal sheet (6) is less than or equal to the inner diameter of the four metal sheets two (3).
