# esp8266-mqtt-sg90 **Repository Path**: zhudachangs/esp8266-mqtt-sg90 ## Basic Information - **Project Name**: esp8266-mqtt-sg90 - **Description**: esp8266-mqtt-sg90 - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-30 - **Last Updated**: 2022-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ESP8266 + MQTT + SG90(舵机) platformio ## 连线 | ESP8266 | MG90S(舵机) | | -------- | ----------- | | GND | 棕色 | | VCC | 红色 | | 模拟引脚 | 橙色 | ## 注意事项 舵机角度有时候不是0-180 差别很大,设置 attach 最后两个参数 ```cpp // 第二个参数是0度脉冲宽度 第三个是180度的脉冲宽度 最后两个参数自己微调 servo.attach(SERVO_PIN, 500, 2400); ```