top of page

Controlling DC Motor with IR remote

Updated: Feb 12

In this DIY project, you will learn how to control a #DCmotor with an IR remote by interfacing it with the #Arduino UNO board using #Tinkercad software.


Hardware Requirements - DC Motor with IR remote

a) Arduino UNO board:

Arduino UNO board:

Arduino is an open-source programmable microcontroller that can be programmed to sense and control objects in the physical world. By responding to sensors and inputs the Arduino board can interact with a wide variety of outputs such as LED’s, motors, LCDs, etc.


To know more about the Arduino UNO, refer to this article.


b) Jumper wires:

Jumper wires:

Jumper wires are a group of electrical wires, with a connector at each end, which is used to interconnect the components of a prototype circuit.


c) Breadboard:

Breadboard

A #breadboard is a construction base for building electronic circuits. It has many holes into which circuit components like ICs and resistors can be inserted.


Breadboard

The holes in the terminals are connected horizontally and the holes in the middle are connected vertically.


d) L293D motor driver:

L293D motor driver:

It is an H bridge motor driver which can control up to two DC motors at a time. It takes a low current signal as input and converts it into a high current signal to drive the DC motors.


e) DC Motor:

DC Motor

DC motor is an electrical motor that converts direct current electrical energy into mechanical energy by electromagnetic induction.


f) IR Sensor:

IR Sensor

#IRsensor is an electronic device that detects IR radiations in the physical world. They are commonly used in object detection systems.


g) IR Remote:

IR Remote

It is a wireless remote control device that is used to operate audio, video, and other electronic equipment in a room through the detection of IR radiations.


h) External Power Supply( AAA 1.5V batteries):

External Power Supply...

They are 1.5V lithium batteries that are used to provide an external power supply to the Arduino board.


Circuit Connections

Circuit Connections

Circuit connection involves the following steps:

  • The output pin of the IR sensor is connected to digital pin 11 of the Arduino board.

  • The power pin of the IR sensor is connected to the power supply.

  • The ground pin of the IR sensor is connected to the ground.

  • Power 1 pin of L293D motor driver is connected to the power supply.

  • Enable 1&2 pin of the L293D motor driver is connected to the power supply.

  • Enable 3&4 pin of the L293D motor driver is connected to the power supply.

  • Ground pins of the L293D motor driver are connected to the ground.

  • Input 1 pin of the L293D motor driver is connected to digital pin 5 of the Arduino board.

  • Input 2 pin of the L293D motor driver is connected to digital pin 6 of the Arduino board.

  • Output 1 pin of the L293D motor driver is connected to terminal 2 of the DC motor.

  • Output 2 pin of the L293D motor driver is connected.


Code



Working

The circuit is connected and simulated on Tinkercad.

When we press the Vol+ button of the IR remote the DC motor moves forward, when we press the Vol- button of the IR remote the DC motor moves backward, and when we press the pause button on the IR remote the DC motor stops.



Project by: Debangshu Sarkar and edited by Vishwa Raj V


See also:



















Follow us -


Please do follow us i.e #learnelectronicsindia to get daily updates about new blogs, videos, courses, quizzes, and contests.



Author - Akshara Ganeshram

2,818 views2 comments

Related Posts

See All
bottom of page