0% found this document useful (0 votes)
12 views17 pages

Servo Motor

The document provides an overview of interfacing a servo motor with NodeMCU for IoT applications, detailing the components required, PWM control, and wiring instructions. It also includes programming steps, troubleshooting tips, and real-world applications such as robotic arms and smart ventilation systems in mining. The document emphasizes the importance of NodeMCU in generating PWM signals to control servo motors effectively.

Uploaded by

Ramdas Hansda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views17 pages

Servo Motor

The document provides an overview of interfacing a servo motor with NodeMCU for IoT applications, detailing the components required, PWM control, and wiring instructions. It also includes programming steps, troubleshooting tips, and real-world applications such as robotic arms and smart ventilation systems in mining. The document emphasizes the importance of NodeMCU in generating PWM signals to control servo motors effectively.

Uploaded by

Ramdas Hansda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

❑ TITLE :-SERVO MOTOR INTERFACE WITH NODE MCU

INTRODUCTION TO IOT AND SERVO CONTROL

NAME :- 1. PRINCE KUMAR


2. PRIYANSHU KUMAR
3. RAJ KUMAR YADAV
4. RAMDAS HANSDA
5. RAMESH KUMAR
INTRODUCTION TO NODE MCU
NODEMCU IS AN OPEN-SOURCE SOFTWARE AND HARDWARE DEVELOPMENT ENVIRONMENT
FOR INTERNET OF THINGS (IOT) APPLICATION

nodeMCU is a development board with many


features and applications
IOT project
Home automation
Smart agriculture
Industrial IOT
Weather stations
Education and prototyping
INTRODUCTION TO SERVO
MOTOR
A SERVO MOTOR IS A ROTARY OR LINEAR ACTUATOR THAT ALLOWS PRECISE CONTROL OF ANGULAR TO LINEAR
POSITION, VELOCITY AND ACCELERATION.
TYPES OF SERVO MOTOR
▪ AC SERVO MOTOR
▪ DC SERVO MOTOR
▪ POSITIONAL SERVO MOTOR
▪ CONTINUOUS SERVO MOTOR
▪ LINEAR SERVO MOTOR
APPLICATION OF SERVO MOTOR
• ROBOTICS
• AEROSPACE
• INDUSTRIAL AUTOMATION
• SMART DEVICE
• MEDICAL EQUIPMENT
COMPONENTS REQUIRED
LIST OF COMPONENTS

1: node-MCU

2: servo motor

3: power supply

4: connecting wire

5: breadboard (optional)
BASIC OF PWM (PULSE WIDTH
MODULATION)
❑ WHAT IS PWM ?
Pulse width modulation (PWM) is a technique that uses the width of pulse to encode or modulation

❑ How PWM controls servo motor position


PWM control servo motor by varying the pulse
width of the electrical signal send to the motor’s control circuit .
❑ Role of nodeMCU in generating PWM signals
The nodeMCU GPLOs can only output ON or 3.3V , but PWM
allows for the simulation of intermediate voltage level
PIN DIAGRAM OF NODE-MCU
❖ NODE-MCU GPIO PINOUT
UNDERSTANDING SERVO MOTOR
WIRING
❑Singal, power , and ground pins
Servo motors typically have three wires: power (RED) ,
ground (BLACK or BROWN),
and signal (YELLOW,ORANGE ,WHOTE )

❑Voltage requirements
• Small DC servo motors: typically operate at 4.8-240V with 5V being common
• AC servo motors: typically operate at 100-240V depending on power requirements.
Common mistakes in wiring
A common mistake in servo motor wiring is bed connections, cables, or connectors. Other potential issues include
• No supply voltage
• fuse failure
• Missing command signals
• Loose coupling
• Motor thermal overload
CIRCUIT DIAGRAM
❑Visual representation of NodeMCU-Servo connection

❑Highlight GPLO pin used for control


The GPIO pin used for control in a nodeMCU-servo motor connection is typically one the PWM-enable pins, such as D1
(GPIO5) or D2 (GPIO4).
▪ Signal( control)
▪ Power
▪ Ground
PROGRAMMING ENVIRONMENT SETUP
❑Installing Arduino IDE
Step-1
Download Arduino IDE :- download the Arduino IDE installer for you operating system (windows, macOS, or linux )
Step-2
Install the Arduino IDE:- run the downloaded installer.
Step -3
Add nodeMCU support to Arduino IDE
Step-4
Install the ESP8266 board package
Step-
Select nodeMCU board
Step-6
Connect nodeMCU to PC
Step-7
WRITING THE CODE
❑ EXPLAIN THE STRUCTURAL OF THE CODE

1. Include the servo library ( #include)


2. Define the servo object (servo myservo;)
3. Attach servo to GPIO pin (myservo (D1); {D1=pin number }
4. Control servo position (myservo. Write(90);) {90 degree}
5. Complete code example
#include <Servo.h> // Include the Servo library
Servo myServo; // Create a Servo object
void setup() { myServo.attach(D1); // Attach servo to GPIO pin D1}
void loop() { myServo.write(0); // Move servo to 0° delay(1000); // Wait for 1 second
myServo.write(90); // Move servo to 90° delay(1000); // Wait for 1 second
myServo.write(180); // Move servo to 180° delay(1000); // Wait for 1 second}
UPLOADING THE CODE
❖ STEPS TO UPLOAD CODE TO NODE-MCU

➢ Connect nodeMCU to pc

➢ select the correct board and port in Arduino IDE

➢ Upload the code


TROUBLESHOOTING TIPS
COMMON ISSUES

Servo motor can have a number of common issues, including:

Overheating
High environmental temperatures, long operating times, or blocked motor can cause
overheating, which can damage the motor and connected system
Bearing failure
Bearing can fail if they are contaminated with dirt, dust, or other foreign particles
Which can increase friction and wear.
Chattering
This issue is characterized by the motor making a chattering or buzzing noise while standing
still.
Misalignment
Misalignment between the motor and driven equipment can cause excessive vibration, which
can lead to increased noise level,
Performance lag
A servo gearmotor might start to lag in performance, which can manifest as slower response
time, decreased torque,
APPLICATION OF NODE-MCU WITH SERVO MOTOR
• Real-world example
IOT based robotic arm using nodeMCU
Robotic Arms have been used by industries to perform complicated and tedious jobs ever since
its introduction in 1962. From assembly lines to paint shops these robotic arms are used
extensively in Automotive Manufacturing Industries. Recently with the advancement of
technology and advent of Internet of thins (IoT)
.
3D printing your robotic ARM

As mentioned earlier the robotic arm used in this project is 3D printed,


if you do not have a printer you can used any Robotic Arm or build
a crude one using cardboards. The 3D printed Robotic Arm
design is taken from this link on Thingiverse. This link also has complete
detailed video showing the procedure of making and
assembling this 3D printed Robotic Arm.

•.
SERVO MOTOR AND NODEMCU USED IN MINING

SMART VENTILATION SYSTEM

Using NodeMCU for IoT connectivity and servo motors for controlling vents,
a smart ventilation system can optimize
air circulation based on
environmental data.
MINE SAFETY SYSTEM

• NodeMCU collects safety data from various sensors and, based on threshold levels, activates
servo-driven mechanisms like emergency doors or safety barriers.
• Mine safety is a critical aspect of mining operations, requiring real-time monitoring
and responsive control mechanisms to mitigate hazards such as gas leaks, fire,
and structural instability. Integrating modern technologies like NodeMCU and
servo motors provides an efficient and cost-effective solution for improving mine
safety through automation and IoT-based systems.
THANK YOU

You might also like