fb472e7ff9334594eaa961d57dea7db7a7af6ccd
Tech-dat/acturator-dat/motor-dat/servo-dat/2026-02-28-01-37-32.png
| ... | ... | Binary files /dev/null and b/Tech-dat/acturator-dat/motor-dat/servo-dat/2026-02-28-01-37-32.png differ |
Tech-dat/acturator-dat/motor-dat/servo-dat/servo-dat.md
| ... | ... | @@ -76,6 +76,58 @@ The fixed-wing S-version servo (with 25cm wire length) is not the helicopter ver |
| 76 | 76 |  |
| 77 | 77 | |
| 78 | 78 | |
| 79 | +### servo with five wires |
|
| 80 | + |
|
| 81 | + |
|
| 82 | + |
|
| 83 | +A 5-wire servo consists of a **DC Motor** and a **Potentiometer** (feedback sensor) without an internal control board. To use it, you must provide an external motor driver and a microcontroller. |
|
| 84 | + |
|
| 85 | +--- |
|
| 86 | + |
|
| 87 | +#### 1. Wiring Diagram |
|
| 88 | + |
|
| 89 | +##### The Potentiometer (Feedback) |
|
| 90 | +The three wires connected to the potentiometer act as a **Voltage Divider**. |
|
| 91 | + |
|
| 92 | +* **Wire 1 (Outer):** Connect to **VCC** (3.3V or 5V from MCU). |
|
| 93 | +* **Wire 2 (Center/Wiper):** Connect to an **Analog Input Pin (ADC)** on your Microcontroller. |
|
| 94 | +* **Wire 3 (Outer):** Connect to **GND**. |
|
| 95 | + |
|
| 96 | +##### The DC Motor (Power) |
|
| 97 | +* **Wire 4:** Connect to **Motor Driver Output A** (e.g., OUT1 on DRV8701). |
|
| 98 | +* **Wire 5:** Connect to **Motor Driver Output B** (e.g., OUT2 on DRV8701). |
|
| 99 | + |
|
| 100 | + |
|
| 101 | + |
|
| 102 | +#### 2. Technical Specifications & Calculations |
|
| 103 | + |
|
| 104 | +##### Potentiometer Feedback |
|
| 105 | +The voltage read by the ADC tells you the current position. |
|
| 106 | +$$V_{out} = V_{cc} \times \frac{R_{lower}}{R_{total}}$$ |
|
| 107 | +As the motor turns the gears, the resistance changes, and the voltage shifts linearly with the angle. |
|
| 108 | + |
|
| 109 | +##### Control Logic (The Feedback Loop) |
|
| 110 | +Since there is no internal IC, your code must perform **Closed-Loop Control**: |
|
| 111 | + |
|
| 112 | +1. **Read Position:** Get the current analog value ($Current\_Pos$). |
|
| 113 | +2. **Calculate Error:** $Error = Target\_Pos - Current\_Pos$. |
|
| 114 | +3. **Drive Motor:** * If **Error > Threshold**: Drive Motor CW (Clockwise). |
|
| 115 | + * If **Error < -Threshold**: Drive Motor CCW (Counter-Clockwise). |
|
| 116 | + * If **Error ≈ 0**: Stop Motor (Brake). |
|
| 117 | + |
|
| 118 | + |
|
| 119 | + |
|
| 120 | +#### 3. Why Use This Setup? |
|
| 121 | + |
|
| 122 | +| Feature | Standard 3-Wire Servo | Raw 5-Wire Servo | |
|
| 123 | +| :--- | :--- | :--- | |
|
| 124 | +| **Control Board** | Internal (Built-in) | External (MCU + Driver) | |
|
| 125 | +| **Customization** | Limited by internal IC | Fully programmable PID | |
|
| 126 | +| **Current/Torque** | Limited by tiny internal MOSFETs | Limited only by your external driver | |
|
| 127 | +| **Response** | Fixed 50Hz PWM | High-speed real-time control | |
|
| 128 | + |
|
| 129 | + |
|
| 130 | + |
|
| 79 | 131 | ## Knowledge |
| 80 | 132 | |
| 81 | 133 | The control of the steering gear generally requires a time base pulse of about 20ms. The high level part of the pulse is generally the angle control pulse part in the range of 0.5ms-2.5ms, and the total interval is 2ms. |
| ... | ... | @@ -215,6 +267,38 @@ connector to a [[crank-dat]] |
| 215 | 267 |  |
| 216 | 268 | |
| 217 | 269 | |
| 270 | +### servo shaft |
|
| 271 | + |
|
| 272 | +#### 1. Standard Servo Shaft (25T Spline) |
|
| 273 | + |
|
| 274 | +The most common standard for hobbyist and robotics servos is the **25T (25-tooth)** spline, often referred to as the "Futaba" or "PowerHD" standard. |
|
| 275 | + |
|
| 276 | +* **Outer Diameter (OD):** **5.90 mm to 6.00 mm** (measured at the peaks of the teeth). |
|
| 277 | +* **Inner Diameter (ID):** Approximately **5.40 mm** (measured at the valleys of the teeth). |
|
| 278 | +* **Spline Count:** **25 Teeth**. |
|
| 279 | +* **Center Screw:** Typically requires an **M3** machine screw. |
|
| 280 | + |
|
| 281 | + |
|
| 282 | + |
|
| 283 | +#### 2. Micro Servo Shaft (e.g., SG90, MG90S) |
|
| 284 | + |
|
| 285 | +If you are using smaller servos for the **Rover V2** (for sensors or light mechanisms), the dimensions are smaller: |
|
| 286 | + |
|
| 287 | +* **Outer Diameter (OD):** **4.80 mm to 4.90 mm**. |
|
| 288 | +* **Spline Count:** Usually **21 Teeth** (21T) or sometimes **20T**. |
|
| 289 | +* **Center Screw:** Typically requires an **M2** or **M2.5** screw. |
|
| 290 | + |
|
| 291 | + |
|
| 292 | + |
|
| 293 | +#### 3. Comparison Table for Design |
|
| 294 | + |
|
| 295 | +| Servo Class | Typical Model | Shaft OD (mm) | Spline Count | Screw Size | |
|
| 296 | +| :--- | :--- | :--- | :--- | :--- | |
|
| 297 | +| **Micro** | SG90 / MG90S | ~4.85 mm | 21T | M2 / M2.5 | |
|
| 298 | +| **Standard** | MG996R / S3003 | ~5.95 mm | 25T | M3 | |
|
| 299 | +| **Large/Giant** | HS-805BB | ~8.00 mm | 15T / 17T | M4 | |
|
| 300 | + |
|
| 301 | + |
|
| 218 | 302 | ## code |
| 219 | 303 | |
| 220 | 304 | - [[code-dat]] |
Tech-dat/acturator-dat/motor-dat/servo-dat/servo-rank-dat/2026-02-28-01-24-21.png
| ... | ... | Binary files /dev/null and b/Tech-dat/acturator-dat/motor-dat/servo-dat/servo-rank-dat/2026-02-28-01-24-21.png differ |
Tech-dat/acturator-dat/motor-dat/servo-dat/servo-rank-dat/servo-rank-dat.md
| ... | ... | @@ -13,21 +13,28 @@ |
| 13 | 13 | | MG996R | 9~15 | | | [[SCU1012-DAT]] | |
| 14 | 14 | | MG995 / MG946R / MG945 | 9~13 | | | [[SCU1012-DAT]] | |
| 15 | 15 | | PTK 7465 7465W | 5.8 @ 8.4V | | | | |
| 16 | -| SG92R | 2.5 | | | | |
|
| 17 | -| ES08MA | 1.8 @ 6V | | 55g | | |
|
| 16 | +| SG92R | 2.5 | | 9g | | |
|
| 17 | +| EMAX ES08MA | 1.8 @ 6V | | 9g | | |
|
| 18 | 18 | | SG90 | 1.6 | | | [[SCU1030-DAT]] | |
| 19 | 19 | | MG90S / MG90 | 2.0 | | | [[SCU1031-dat]] | |
| 20 | +| PTK 7350MG-D 5.5g | |
|
| 21 | + |
|
| 22 | + |
|
| 20 | 23 | |
| 21 | 24 | - [[current-dat]] |
| 22 | 25 | |
| 23 | 26 | |
| 24 | 27 | ## nangu |
| 25 | 28 | |
| 26 | -steel gears |
|
| 29 | +steel gears, gears number == x4 or x5 |
|
| 27 | 30 | |
| 28 | 31 |  |
| 29 | 32 | |
| 33 | + |
|
| 34 | + |
|
| 30 | 35 | |
| 31 | 36 | ## ref |
| 32 | 37 | |
| 33 | -- [[servo-dat]] |
|
| ... | ... | \ No newline at end of file |
| 0 | +- [[servo-dat]] - [[servo]] |
|
| 1 | + |
|
| 2 | +- [[robot]] |
|
| ... | ... | \ No newline at end of file |