iot7@rishi
iot7@rishi
Experiment 7
1. Aim:
To Assemble and Controlling of actuators using Arduino Uno.
2. Objective:
The objective of this project is to design and implement a DC motor control system using
a relay and an Arduino UNO. This system will enable the user to control the motor's
operation (on/off) through the Arduino, providing an efficient, automated, and
programmable solution for motor control. The use of a relay ensures electrical isolation
between the Arduino and the motor, while the Arduino's flexibility allows for easy
integration into various automation and control systems.
3. Input/Equipment Used-
3.1 1x Arduino uno
3.2 1x DC motor
3.3 1x jumper wires
3.4 1x Relay module
4. Procedure-
4.1 Relay Module Connec ons:
1) Connect the VCC pin of the relay module to the 5V pin on the Arduino.
2) Connect the GND pin of the relay module to the GND pin on the Arduino.
3) Connect the IN pin of the relay module to one of the Arduino's digital pins (e.g.,
pin 8).
3) Connect the normally open (NO) terminal of the relay to one of the motor
terminals.
4) Connect the other motor terminal to the negative terminal of the power supply.
5. CODE
Fig. 1
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
Fig. 2
7. Result
Fig. 3
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING
8. Conclusion
we successfully implemented a DC motor control system using a relay and an Arduino
UNO. The system was able to control the motor's on/off operation with the relay acting
as an electronic switch, controlled by the Arduino. This setup demonstrates how relays
can be effectively used to control high-power devices, like motors, through low-power
digital signals from a microcontroller.
The motor was controlled programmatically, turning on and off at 1-second intervals as
defined in the code. This project highlights the practical use of Arduino in automation
and control systems, when working with inductive loads such as motors.
This method can be expanded to control more complex motor operations or integrated
into larger systems where motor control is required, such as robotics, home automation,
or industrial applications.
9. Learning Outcomes