Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

📱 Blynk 2.0 Cloud Servo Controller (ESP8266 / ESP32)

GitHub Repository Developer Platform License

A production-ready enterprise IoT actuator framework connecting ESP8266 and ESP32 microcontrollers to the Blynk 2.0 Cloud platform, featuring bidirectional Virtual Pin (V0) angle streaming, zero-downtime auto-reconnection state machines, and hardware timer brownout protection.


📌 Cloud Architecture & Datastream Mapping

  • Blynk Template Authentication: Connects securely via TLS / encrypted token auth.
  • Virtual Pin V0: Mapped to an integer range of 0 to 180 for smooth angle control from the Blynk mobile app or web console.
  • Non-Blocking Execution: Utilizes BlynkTimer event scheduling to ensure steady 50Hz PWM output without blocking network keep-alive packets.
  • Auto-Reconnect State Machine: Automatically recovers Wi-Fi and cloud connectivity during network dropouts without resetting the hardware position.

⚙️ Hardware BOM & Pinout

Module / Pin NodeMCU ESP8266 ESP32 DevKit Description
Servo Signal GPIO 2 (D4) GPIO 18 50Hz PWM Servo Angle Pulse
Servo Power (5V) External 5V 2A Rail External 5V 2A Rail Isolated DC power supply
Ground (GND) Common GND Common GND Shared common ground

🚀 Getting Started & Configuration

  1. Clone repository:
    git clone https://github.com/ALWINTR/blynk-servo-controller.git
  2. Open blynk_servo_controller.ino in Arduino IDE.
  3. Configure your Blynk 2.0 credentials:
    #define BLYNK_TEMPLATE_ID   "TMPLxxxxxx"
    #define BLYNK_DEVICE_NAME   "Servo Controller"
    #define BLYNK_AUTH_TOKEN    "YourAuthToken"
    char ssid[] = "YOUR_WIFI_SSID";
    char pass[] = "YOUR_WIFI_PASSWORD";
  4. Install the Blynk library via Library Manager.
  5. Upload firmware and control the servo in real time from the Blynk mobile app.

👨‍💻 Author

Alwin T R — Robotics & Automation Engineer


📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

About

Blynk 2.0 180° Servo Controller with ESP8266 and ESP32

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages