SERVO MOTOR CONTROL USING WIFI

by Santhana_krishnan in Circuits > Arduino

1768 Views, 3 Favorites, 0 Comments

SERVO MOTOR CONTROL USING WIFI

20200622_112351.jpg
20200622_112255.jpg

Hi Guys,

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

Components Required

9V-battery.jpg
12615-02_Full_Size_Breadboard_Split_Power_Rails.jpg
FM3DLCMK16PF4HM.jpg
4a75924-2_bp_blogspot_com_-9-vKnWKXmg8_VYlTf9HWkEI_AAAAAAAAEe0_3th9OfSKb5k_s1600_NodeMCU-development-board-for-ESP-12E-from-ESP8266-esp-12E-Lua-IoT-programable-diy-rc-toy_jpg.png
81fafaaa-img_jumper_wire.jpg
  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

Connections

NodeMCU_V2_v2.png
  • 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

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.

Downloads

Blynk App

Screenshot_20200622-102357_Blynk.jpg
Screenshot_20200622-102417_Blynk.jpg
Screenshot_20200622-102538_Blynk.jpg
Screenshot_20200622-102453_Blynk.jpg
Screenshot_20200622-102604_Blynk.jpg
Screenshot_20200622-102657_Blynk.jpg
Screenshot_20200622-102752_Blynk.jpg
Screenshot_20200622-102832_Blynk.jpg
Screenshot_20200622-103731_Blynk.jpg
IMG_20200622_103900_764.jpg

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.

It Works!

20200622_112255.jpg

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...