SERVO MOTOR CONTROL USING WIFI

Introduction: SERVO MOTOR CONTROL USING WIFI

About: Love electronics stuff, and expert in Hardware projects.....Many projects are on the way in my future Instructables. Fiver link: http://www.fiverr.com/s2/0fee75a2ce My Personal Site: https://krishnansanthan…

Hi Guys,

In this instructable , let us learn how to control movement of a servo motor through WiFi using Node MCU and Blynk App.

Step 1: Components Required

  1. Node MCU
  2. SG 90 Micro Servo Motor
  3. Male-Female Jumper Wires
  4. 5v power supply (9v Battery will be good)
  5. Bread Board

Step 2: Connections

  • Use a 9v Battery in the Place of 5v mentioned in the circuit diagram.
  • Connect the Signal Pin of the servo to the D8 PIN of the Node MCU.
  • Connect the GND of the Servo Motor, Battery and the Node MCU together.

Note:
SERVO MOTOR PIN CONFIGURATION

  • SIGNAL -- ORANGE pin
  • VCC / +ve terminal -- RED pin
  • GND / -ve terminal -- BROWN pin

Step 3: Code

Upload the Following Code in your Node MCU.

Before that, if you don't have NODE MCU and Blynk Libraries.

Follow these steps to add them first.

Step 1:
Click the links separately ->
https://github.com/blynkkk/blynk-library/releases/... For Blynk

https://github.com/esp8266/Arduino/archive/refs/heads/master.zip For Node MCU

zip files will be downloaded.

(For the Node MCU click on Clone or download button and download zip file)

Step 2: open Sketch ->Libraries ->Add zip library -> a new window will popup

Step 3:search for the downloaded libraries and click open. The library will be added.

Step 4: Blynk App

Download Blynk App from Playstore

  1. Login with Facebook/Gmail
  2. Click create new project
  3. Type a project name and Select node MCU board
  4. Author token will be sent to your Gmail.
  5. Click on the + icon in the new window and Select Slider button
  6. Click on the Slider button , Set pin as V3 (Virtual pin)
  7. Click on the back button and your Blynk App will be ready.
  8. Switch ON your Mobile Hot spot.
  9. Keep the Data (Internet) ON in your mobile.
  10. Click on the Play button on the Project widow
  11. Now, Click on the Board icon on the top.
  12. Your Node MCU will be connected to your Phone.

Step 5: It Works!

After the Node MCU is connected to the Blynk App,
Slide the Slider button and release it to move the servo motor.

Refer to my previous INSTRUCTABLES to know more about Node MCU.
https://www.instructables.com/id/NODE-MCU-BASIC/

https://www.instructables.com/id/NODE-MCU-LED-Cont...

Be the First to Share

    Recommendations

    • Halloween Contest

      Halloween Contest
    • Robots Contest

      Robots Contest
    • Back to School: Student Design Challenge

      Back to School: Student Design Challenge

    Comments