9741bcd6e93c1c117460aed16b7a76023619bb54
Board-dat/SDR/SDR1064-dat/SDR1064-dat.md
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | |
| 12 | 12 | - [[ESP32-rc-car-dat]] - [[nodemcu-dat]] - [[RC-code-dat]] |
| 13 | 13 | |
| 14 | - |
|
| 14 | +- [[L293-dat]] |
|
| 15 | 15 | |
| 16 | 16 | ## Board map |
| 17 | 17 |
Board-dat/SDR/SDR1076-dat/SDR1076-dat.md
| ... | ... | @@ -5,6 +5,9 @@ |
| 5 | 5 | |
| 6 | 6 | [product url - TB6600 Stepper Drive Mstep-32, 4A, 42VDC](https://www.electrodragon.com/product/tb6600/) |
| 7 | 7 | |
| 8 | + |
|
| 9 | +- [[TB6600-dat]] |
|
| 10 | + |
|
| 8 | 11 | ### Board Map, Dimension, Pins, etc. |
| 9 | 12 | |
| 10 | 13 | |
| ... | ... | @@ -14,9 +17,9 @@ |
| 14 | 17 | #### Product Features |
| 15 | 18 | |
| 16 | 19 | - DC 9-42V power supply (recommended 12-24V) |
| 17 | -- Control signal input voltage 3.3V-24V universal |
|
| 20 | +- Control signal input voltage **3.3V-24V universal** |
|
| 18 | 21 | - 6 subdivision precisions available |
| 19 | -- Output peak current up to 4.0A (suitable for 1.8NM and below 57, 42 stepper motors) |
|
| 22 | +- Output peak current up to **4.0A** (suitable for 1.8NM and below 57, 42 stepper motors) - [[torque-dat]] |
|
| 20 | 23 | - H-bridge bipolar constant current drive |
| 21 | 24 | - Input signal high-speed optocoupler isolation |
| 22 | 25 | - Built-in temperature protection and overcurrent protection |
Chip-dat/toshiba-dat/TB6600-dat/TB6600-dat.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | + |
|
| 2 | +# TB6600-dat |
|
| 3 | + |
|
| 4 | +- [[SDR1076-dat]] |
|
| ... | ... | \ No newline at end of file |
Tech-dat/acturator-dat/motor-dat/motor-dat.md
| ... | ... | @@ -145,6 +145,12 @@ brushless |
| 145 | 145 | |
| 146 | 146 | |
| 147 | 147 | |
| 148 | +## motor by voltage |
|
| 149 | + |
|
| 150 | +- [[li-battery-dat]] - [[4.2V-dat]] - [[motor-130-dat]] |
|
| 151 | + |
|
| 152 | +- [[12V-dat]] - [[reduction-Gear-Motor-dat]] |
|
| 153 | + |
|
| 148 | 154 | |
| 149 | 155 | |
| 150 | 156 |
Tech-dat/acturator-dat/motor-dat/stepper-dat/stepper-dat.md
| ... | ... | @@ -11,6 +11,12 @@ |
| 11 | 11 | |
| 12 | 12 | [[motor-driver-dat]] - [[SDR1050-dat]] |
| 13 | 13 | |
| 14 | + |
|
| 15 | + |
|
| 16 | +## tech |
|
| 17 | + |
|
| 18 | +-standard - [[NEMA-dat]] - [[NEMA17-dat]] - [[NEMA-23-dat]] |
|
| 19 | + |
|
| 14 | 20 | ## common options |
| 15 | 21 | |
| 16 | 22 | - dual shaft |
Tech-dat/acturator-dat/motor-dat/stepper-dat/stepper-driver-dat/stepper-driver-dat.md
| ... | ... | @@ -1,3 +0,0 @@ |
| 1 | - |
|
| 2 | -# stepper-driver-dat |
|
| 3 | - |
Tech-dat/acturator-dat/motor-driver-dat/motor-driver-code-dat/PWM-motor-esp-webserver-ap-1.ino
| ... | ... | @@ -0,0 +1,98 @@ |
| 1 | +#include <ESP8266WiFi.h> |
|
| 2 | +#include <ESP8266WebServer.h> |
|
| 3 | + |
|
| 4 | +// ===== WiFi 配置 ===== |
|
| 5 | +const char* ssid = "YOUR_SSID"; |
|
| 6 | +const char* password = "YOUR_PASSWORD"; |
|
| 7 | + |
|
| 8 | +// ===== GPIO 定义 ===== |
|
| 9 | +const int PWM_PIN = D1; // PWM 控制速度 IO5 |
|
| 10 | +const int DIR_PIN1 = D2; // 方向引脚1 IO4 |
|
| 11 | +const int DIR_PIN2 = D3; // 方向引脚2 IO0 |
|
| 12 | + |
|
| 13 | +// ===== Web Server ===== |
|
| 14 | +ESP8266WebServer server(80); |
|
| 15 | + |
|
| 16 | +// ===== HTML Web 控制界面 ===== |
|
| 17 | +const char html_page[] PROGMEM = R"rawliteral( |
|
| 18 | +<!DOCTYPE html><html> |
|
| 19 | +<head><title>ESP8266 Motor Control</title></head> |
|
| 20 | +<body> |
|
| 21 | +<h2>Motor Control</h2> |
|
| 22 | +<form action="/control"> |
|
| 23 | +Speed: <input type="range" name="speed" min="0" max="1023"><br> |
|
| 24 | +Direction: |
|
| 25 | +<select name="dir"> |
|
| 26 | + <option value="fw">Forward</option> |
|
| 27 | + <option value="rv">Reverse</option> |
|
| 28 | +</select><br> |
|
| 29 | +<input type="submit" value="Apply"> |
|
| 30 | +</form> |
|
| 31 | +</body></html> |
|
| 32 | +)rawliteral"; |
|
| 33 | + |
|
| 34 | +// ===== 处理 Web 请求 ===== |
|
| 35 | +void handleRoot() { |
|
| 36 | + server.send(200, "text/html", html_page); |
|
| 37 | +} |
|
| 38 | + |
|
| 39 | +void handleControl() { |
|
| 40 | + if (server.hasArg("speed")) { |
|
| 41 | + int speed = server.arg("speed").toInt(); // PWM 值 0-1023 |
|
| 42 | + analogWrite(PWM_PIN, speed); |
|
| 43 | + } |
|
| 44 | + |
|
| 45 | + if (server.hasArg("dir")) { |
|
| 46 | + String d = server.arg("dir"); |
|
| 47 | + if (d == "fw") { |
|
| 48 | + digitalWrite(DIR_PIN1, HIGH); |
|
| 49 | + digitalWrite(DIR_PIN2, LOW); |
|
| 50 | + } else { |
|
| 51 | + digitalWrite(DIR_PIN1, LOW); |
|
| 52 | + digitalWrite(DIR_PIN2, HIGH); |
|
| 53 | + } |
|
| 54 | + } |
|
| 55 | + |
|
| 56 | + server.sendHeader("Location", "/"); |
|
| 57 | + server.send(302, "text/plain", ""); |
|
| 58 | +} |
|
| 59 | + |
|
| 60 | +// ===== 初始化 ===== |
|
| 61 | +void setup() { |
|
| 62 | + Serial.begin(115200); |
|
| 63 | + |
|
| 64 | + pinMode(PWM_PIN, OUTPUT); |
|
| 65 | + pinMode(DIR_PIN1, OUTPUT); |
|
| 66 | + pinMode(DIR_PIN2, OUTPUT); |
|
| 67 | + |
|
| 68 | + // 默认停止 |
|
| 69 | + analogWrite(PWM_PIN, 0); |
|
| 70 | + digitalWrite(DIR_PIN1, LOW); |
|
| 71 | + digitalWrite(DIR_PIN2, LOW); |
|
| 72 | + |
|
| 73 | + // 启动为 WiFi AP 模式,使用固定 IP |
|
| 74 | + WiFi.mode(WIFI_AP); |
|
| 75 | + // 固定 AP 地址(根据需要修改) |
|
| 76 | + IPAddress apIP(192, 168, 50, 1); |
|
| 77 | + IPAddress apGateway(192, 168, 50, 1); |
|
| 78 | + IPAddress apSubnet(255, 255, 255, 0); |
|
| 79 | + if (!WiFi.softAPConfig(apIP, apGateway, apSubnet)) { |
|
| 80 | + Serial.println("softAPConfig failed"); |
|
| 81 | + } |
|
| 82 | + |
|
| 83 | + // 启动软 AP:使用 ssid 和 password(注意:WPA2 密码至少 8 字符) |
|
| 84 | + WiFi.softAP(ssid, password); |
|
| 85 | + delay(500); |
|
| 86 | + Serial.println(""); |
|
| 87 | + Serial.print("AP started, IP: "); |
|
| 88 | + Serial.println(WiFi.softAPIP()); |
|
| 89 | + |
|
| 90 | + // Web 服务 |
|
| 91 | + server.on("/", handleRoot); |
|
| 92 | + server.on("/control", handleControl); |
|
| 93 | + server.begin(); |
|
| 94 | +} |
|
| 95 | + |
|
| 96 | +void loop() { |
|
| 97 | + server.handleClient(); |
|
| 98 | +} |
|
| ... | ... | \ No newline at end of file |
Tech-dat/acturator-dat/motor-driver-dat/motor-driver-code-dat/motor-driver-code-dat.md
| ... | ... | @@ -9,7 +9,7 @@ |
| 9 | 9 | |
| 10 | 10 | - [[wifi-motor-control-dat]] |
| 11 | 11 | |
| 12 | - |
|
| 12 | +- [[ESP32-rc-car-dat]] |
|
| 13 | 13 | |
| 14 | 14 | |
| 15 | 15 |
Tech-dat/acturator-dat/motor-driver-dat/motor-driver-dat.md
| ... | ... | @@ -30,15 +30,17 @@ |
| 30 | 30 | |
| 31 | 31 | - [[stepper-driver-dat]] |
| 32 | 32 | |
| 33 | -- [[SDR1102-dat]] - [[SDR1109-dat]] - [[SDR1048-dat]] - [[SDR1059-dat]] - [[SDR1050-dat]] |
|
| 33 | +- [[SDR1102-dat]] - [[SDR1048-dat]] - [[SDR1059-dat]] - [[SDR1050-dat]] |
|
| 34 | 34 | |
| 35 | 35 | - [[SDR1090-dat]] - [[SDR1079-dat]] - [[SDR1062-dat]] |
| 36 | 36 | |
| 37 | 37 | - [[SDR1060-dat]] - [[SDR1076-dat]] |
| 38 | 38 | |
| 39 | -- [[SDR1096-dat]] |
|
| 39 | +- high voltage control - [[SDR1109-dat]] |
|
| 40 | 40 | |
| 41 | -- [[TB6612-dat]] - [[SDR1059-dat]] - [[SDR1087-dat]] - [[MPC1114-dat]] |
|
| 41 | +- easy to use - [[TB6612-dat]] - [[SDR1059-dat]] - [[SDR1087-dat]] - [[MPC1114-dat]] |
|
| 42 | + |
|
| 43 | +- low voltage and high efficient - [[DRV8833-dat]] |
|
| 42 | 44 | |
| 43 | 45 | - [[arduino-shields-dat]] |
| 44 | 46 | |
| ... | ... | @@ -52,9 +54,11 @@ |
| 52 | 54 | |
| 53 | 55 | - [[mosfet-dat]] and [[PWM-dat]] control == [[SDR1073-dat]] |
| 54 | 56 | |
| 55 | -- [[stepper-driver-dat]] |
|
| 57 | +- [[stepper-driver-dat]] - [[stepper-dat]] |
|
| 56 | 58 | |
| 59 | +- control included board - [[SDR1117-dat]] - [[SDR1064-dat]] |
|
| 57 | 60 | |
| 61 | +- [[SAMD21-dat]] - [[SDR1096-dat]] |
|
| 58 | 62 | |
| 59 | 63 | ## chips |
| 60 | 64 |
Tech-dat/acturator-dat/motor-driver-dat/stepper-driver-dat/stepper-driver-dat.md
| ... | ... | @@ -25,6 +25,8 @@ |
| 25 | 25 | |
| 26 | 26 | - [[ULN2003-dat]] |
| 27 | 27 | |
| 28 | +- [[TB6600-dat]] |
|
| 29 | + |
|
| 28 | 30 | |
| 29 | 31 | ## ref |
| 30 | 32 |
app-dat/app-dat.md
| ... | ... | @@ -101,6 +101,9 @@ tech based - [[sensor-Camera-dat]] - [[audio-dat]] |
| 101 | 101 | |
| 102 | 102 | - [[AVR-app-dat]] - [[arduino-app-dat]] |
| 103 | 103 | |
| 104 | +## MCU based |
|
| 105 | + |
|
| 106 | +- [[ESP32-app-dat]] |
|
| 104 | 107 | |
| 105 | 108 | |
| 106 | 109 | ## ref |
mechanics-dat/physics-dat/torque-dat/torque-dat.md
| ... | ... | @@ -7,6 +7,43 @@ and stall torque is the maximum torque that the motor can deliver at zero speed. |
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | |
| 10 | +N·m and kg·cm (kgf·cm) are both used to express torque, but they come from different unit systems. |
|
| 11 | + |
|
| 12 | +What they mean |
|
| 13 | + |
|
| 14 | +N·m (Newton·meter) |
|
| 15 | + |
|
| 16 | +SI (metric) standard unit |
|
| 17 | + |
|
| 18 | +Based on force in newtons |
|
| 19 | + |
|
| 20 | +kg·cm (kgf·cm) |
|
| 21 | + |
|
| 22 | +Engineering / motor specs unit |
|
| 23 | + |
|
| 24 | +Based on kilogram-force, not mass |
|
| 25 | + |
|
| 26 | +1 kgf = force exerted by 1 kg under Earth gravity |
|
| 27 | + |
|
| 28 | + |
|
| 29 | +Which one to use? |
|
| 30 | + |
|
| 31 | +Engineering / physics / calculations → N·m |
|
| 32 | + |
|
| 33 | +RC motors, servos, hobby electronics → kg·cm |
|
| 34 | + |
|
| 35 | + |
|
| 36 | + Torque (N·m) Torque (kg·cm) |
|
| 37 | + -------------------------------- |
|
| 38 | + 0.1 ≈ 1.02 |
|
| 39 | + 0.5 ≈ 5.10 |
|
| 40 | + 1.0 ≈ 10.20 |
|
| 41 | + 2.0 ≈ 20.39 |
|
| 42 | + 5.0 ≈ 50.99 |
|
| 43 | + 10.0 ≈ 101.97 |
|
| 44 | + |
|
| 45 | + |
|
| 46 | + |
|
| 10 | 47 | |
| 11 | 48 | ## what is torque |
| 12 | 49 |