STEP 1 / 6ARDUINO

IR Controlled DC Motor using Arduino

Students and hobbyists are increasingly using Arduino Microcontrollers in recent years. Since Arduino is easy to use and has a smooth learning curve, everyone uses it to make any project.…

Circuit Atlas themed schematic for IR Controlled DC Motor using Arduino
PROJECT#379
TRACKArduino
PARTS04
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

IR Controlled DC Motor using Arduino is a arduino project. Students and hobbyists are increasingly using Arduino Microcontrollers in recent years. Since Arduino is easy to use and has a smooth learning curve, everyone uses it to make any project.…

Source pages
812-814
Named parts
4
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply
  • Computer with a data-capable USB cable

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • This project may involve hazardous voltage. Work only with qualified supervision and proper isolation.
Ready to continue?
STEP 2 / 6 · Parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

NAMED PROJECT INVENTORY4 PART LINES
PARTTYPEQTYREADY
MArduino UNOMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for IR Controlled DC Motor using ArduinoMODULE LEARNING VIEW

Arduino UNO

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for Arduino UNO; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PV-relay modulePART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for IR Controlled DC Motor using ArduinoPART LEARNING VIEW

V-relay module

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for V-relay module; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
PDC motorPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for IR Controlled DC Motor using ArduinoPART LEARNING VIEW

DC motor

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for DC motor; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
MIR sensor moduleMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for IR Controlled DC Motor using ArduinoMODULE LEARNING VIEW

IR sensor module

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It provides project input as an analogue, digital, resistive, frequency, or calibrated signal.

Buy / compare this part

Advantages

  • Adds real-world awareness
  • Can usually be tested independently
  • Often supports calibration

Limitations

  • Readings can drift
  • Placement affects results
  • Some sensors need warm-up or calibration

Handling

  • Protect the sensing surface
  • Observe supply voltage and polarity
  • Keep signal leads away from noisy power wiring

Specifications to verify

  • Use the exact model, value, package, and rating listed for IR sensor module; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

Students and hobbyists are increasingly using Arduino Microcontrollers in recent years. Since Arduino is easy to use and has a smooth learning curve, everyone uses it to make any project. Many Arduino projects are also available on our website, from basic interface modules to more complex robotic modules.

IR Sensor, Relay Module and DC Motor are three basic components that we will use in our project today. Arduino will be used to control an electric motor with the IR sensor. In this case the IR sensor reads the output from the IR sensor and makes the relay high when it detects an object in front of it. As IR Sensor detects any objects in front of it, DC Motor will also be ON if relay is connected to it.

02

Required Components

Project build note

Arduino UNO 5V-relay module DC motor IR sensor module Breadboard Connecting wires

03

Circuit Explanation

Project build note

It is a simple circuit for controlling this DC Motor with an IR Sensor using Arduino. On the circuit, the output of the IR sensor module is connected to

pin 2 of the Arduino and the input of the relay module to pin 7. The relay is additionally connected to a DC Motor. Project management is straightforward in this case. The IR sensor will turn on the output pin whenever it detects a movement in front of it. Arduino reads the IR sensor's output pin, so pin 7 goes high to activate the relay module, and Arduino reads pin 1 as well. Upon activation of the relay, the DC motor will begin to rotate. The output of the IR sensor remains low when nothing is in front of it, and the DC motor remains in off state, as well. With the potentiometer mounted on the module itself, the IR sensor's sensitivity can be adjusted. The sensitivity of the sensor simply means the distance at which the object can be detected.

Ready to continue?
PROJECT ACHIEVED

You built IR Controlled DC Motor using Arduino.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

DC Motor Speed Control using Arduino and Potentiometer project thumbnail featuring Arduino UNO, DC motor, Transistor 2N2222, Potentiometer 100k ohm
NEXT ARDUINO ADVENTURE

DC Motor Speed Control using Arduino and Potentiometer

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects