c1cfa5658bd0e3874d632fad1fca9b6cdfe37c0c
Tech-dat/acturator-dat/motor-dat/servo-dat/servo-dat.md
| ... | ... | @@ -1,4 +1,3 @@ |
| 1 | - |
|
| 2 | 1 | # servo-dat |
| 3 | 2 | |
| 4 | 3 | - [[servo-gimbal-dat]] |
| ... | ... | @@ -39,6 +38,17 @@ The 90-degree and 180-degree servos have identical physical dimensions and torqu |
| 39 | 38 | The fixed-wing S-version servo (with 25cm wire length) is not the helicopter version. Compared to helicopter servos, it has lower pull strength, performance, and motor lifespan. It's suitable for electric fixed-wing aircraft made of foamboard or foam (recommended) and offers good value for money. |
| 40 | 39 | |
| 41 | 40 | |
| 41 | +## test note |
|
| 42 | + |
|
| 43 | +- user a [[servo-tester]] to get the range of the servo first |
|
| 44 | + |
|
| 45 | +- test without a load first |
|
| 46 | + |
|
| 47 | +- the internal [[gearbox-dat]] can be burned if too high load used |
|
| 48 | + |
|
| 49 | + |
|
| 50 | + |
|
| 51 | + |
|
| 42 | 52 | ## wiring |
| 43 | 53 | |
| 44 | 54 |  |
| ... | ... | @@ -93,7 +103,7 @@ Taking the 180-degree angle servo as an example, the corresponding control relat |
| 93 | 103 | ## servo calibration |
| 94 | 104 | |
| 95 | 105 | |
| 96 | -## 1. Mechanical Calibration |
|
| 106 | +## Mechanical Calibration |
|
| 97 | 107 | |
| 98 | 108 | 1. Power the servo and send 1500 µs signal (center pulse). |
| 99 | 109 | 2. Remove the servo horn (the arm). |
| ... | ... | @@ -101,6 +111,38 @@ Taking the 180-degree angle servo as an example, the corresponding control relat |
| 101 | 111 | |
| 102 | 112 | ✅ Best method — keeps full 0–180° movement range. |
| 103 | 113 | |
| 114 | +## FIND A SERVO'S PHYSICAL MIDDLE WITHOUT POWERING IT |
|
| 115 | + |
|
| 116 | +### METHOD 1: Gentle Manual Rotation |
|
| 117 | + |
|
| 118 | +1. Hold the servo body firmly in one hand. |
|
| 119 | +2. Gently rotate the output shaft with your fingers. |
|
| 120 | + |
|
| 121 | +⚠️ IMPORTANT RULES: |
|
| 122 | +- SG90 and most servos are geared; never force rotation beyond stops. |
|
| 123 | +- You will feel two hard mechanical limits (one on each side). |
|
| 124 | +- The total range is usually about 180° or a bit less. |
|
| 125 | +- The *middle* is approximately halfway between those two stops. |
|
| 126 | + |
|
| 127 | +Example steps: |
|
| 128 | + a. Turn fully to one end (gently). |
|
| 129 | + b. Mark that position (e.g., note horn orientation). |
|
| 130 | + c. Turn fully to the other end. |
|
| 131 | + d. Move the horn halfway back to the middle of that range. |
|
| 132 | + |
|
| 133 | +✅ This gives a close estimate of the neutral angle. |
|
| 134 | + |
|
| 135 | + |
|
| 136 | +### 📏 METHOD 2: Remove the Horn and Reinstall at Mid |
|
| 137 | + |
|
| 138 | +1. Unscrew and remove the servo horn (the plastic arm). |
|
| 139 | +2. Rotate the output spline gently until it’s roughly centered |
|
| 140 | + (halfway between stops as found above). |
|
| 141 | +3. Reattach the horn pointing straight (e.g., vertical). |
|
| 142 | + |
|
| 143 | +💡 When you later power the servo, it should be close to neutral. |
|
| 144 | +Fine-tune by sending 1500 µs and adjusting slightly if needed. |
|
| 145 | + |
|
| 104 | 146 | |
| 105 | 147 | |
| 106 | 148 | |
| ... | ... | @@ -126,6 +168,13 @@ Taking the 180-degree angle servo as an example, the corresponding control relat |
| 126 | 168 | - [[worm-gear-dat]] |
| 127 | 169 | |
| 128 | 170 | |
| 171 | + |
|
| 172 | +## demo |
|
| 173 | + |
|
| 174 | + |
|
| 175 | + |
|
| 176 | + |
|
| 177 | + |
|
| 129 | 178 | ## ref |
| 130 | 179 | |
| 131 | 180 | - [[motor-dat]] |
| ... | ... | \ No newline at end of file |
Tech-dat/acturator-dat/motor-dat/servo-dat/servo-sdk-dat.md
| ... | ... | @@ -3,6 +3,14 @@ |
| 3 | 3 | |
| 4 | 4 | - ESP32Servo |
| 5 | 5 | |
| 6 | + |
|
| 7 | +ESP32 LEDC official libarry |
|
| 8 | + |
|
| 9 | +https://docs.espressif.com/projects/arduino-esp32/en/latest/api/ledc.html?highlight=ledcWrite |
|
| 10 | + |
|
| 11 | + |
|
| 12 | + |
|
| 13 | + |
|
| 6 | 14 | ## 'ledcSetup' was not declared in this scope |
| 7 | 15 | |
| 8 | 16 |