STEP 1 / 6ARDUINO

Arduino PID based DC Motor Position Control System

This motor placement control project involves the implementation of a PID Control System for an Arduino using the Derivative-Integral Formula. A PID controller with Arduino and a basic DC…

Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control System
PROJECT#315
TRACKArduino
PARTS12
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

Arduino PID based DC Motor Position Control System is a arduino project. This motor placement control project involves the implementation of a PID Control System for an Arduino using the Derivative-Integral Formula. A PID controller with Arduino and a basic DC…

Source pages
625-627
Named parts
12
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.
  • Keep liquids, loose metal, and uninsulated wires away from the bench.
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 INVENTORY12 PART LINES
PARTTYPEQTYREADY
MArduinoMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemMODULE LEARNING VIEW

Arduino

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; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PDc motorPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPART 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.
PProtractorPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPART LEARNING VIEW

Protractor

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Protractor; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
SL293d ICSEMICONDUCTOR1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemSEMICONDUCTOR LEARNING VIEW

L293d IC

A semiconductor stage performs switching, amplification, regulation, rectification, or logic.

What it does here

It controls current or signal flow at a defined point in the circuit.

Buy / compare this part

Advantages

  • Fast and efficient
  • Compact
  • Can control larger loads from smaller signals

Limitations

  • Pin order varies
  • Sensitive to overvoltage and reverse polarity
  • May need cooling or bias components

Handling

  • Verify the datasheet pinout
  • Avoid static and soldering heat
  • Check notch, stripe, or flat-face orientation

Specifications to verify

  • Use the exact model, value, package, and rating listed for L293d IC; similar-looking parts are not always interchangeable.
  • Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
POptical encoderPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPART LEARNING VIEW

Optical encoder

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Optical encoder; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PCrystal OscillatorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPASSIVE LEARNING VIEW

Crystal Oscillator

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for Crystal Oscillator; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
BCables and ConnectorsBUILD1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemBUILD LEARNING VIEW

Cables and Connectors

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Cables and Connectors; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
BPCB and BreadboardsBUILD1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemBUILD LEARNING VIEW

PCB and Breadboards

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for PCB and Breadboards; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PTransformer/AdapterPOWER1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPOWER LEARNING VIEW

Transformer/Adapter

A power component supplies, converts, stores, or regulates energy for the project.

What it does here

It must provide the documented voltage, polarity, isolation, and sufficient current safely.

Buy / compare this part

Advantages

  • Stable power improves reliability
  • Current limiting protects first tests
  • Regulation reduces resets and noise

Limitations

  • Wrong polarity can cause immediate damage
  • Underrated parts overheat
  • Mains circuits require qualified supervision

Handling

  • Measure output before connection
  • Use a fuse or current limit
  • Insulate exposed conductors

Specifications to verify

  • Use the exact model, value, package, and rating listed for Transformer/Adapter; similar-looking parts are not always interchangeable.
  • Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
PPush ButtonsPART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPART LEARNING VIEW

Push Buttons

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Push Buttons; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
BIC SocketsBUILD1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemBUILD LEARNING VIEW

IC Sockets

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for IC Sockets; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PHC-05 - Bluetooth modulePART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Arduino PID based DC Motor Position Control SystemPART LEARNING VIEW

HC-05 - Bluetooth module

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for HC-05 - Bluetooth module; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
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.

Software Specifications

Arduino Compiler MC Programming Language: C

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

This motor placement control project involves the implementation of a PID Control System for an Arduino using the Derivative-Integral Formula. A PID controller with Arduino and a basic DC motor allows position control to

be precise. With one shaft connected to the encoder and the other side connected to a pointer, a DC gear motor with two shafts can also be used as a power source. One encoder connected to Arduino interrupt pins points to the angle that is set on the protractor; one L293D motor IC is connected to our system, and an HC-05 module is used to connect it to an android device. The encoder sends a real-time input to Arduino in the meantime when sending a predefined angle set point from the robot device. If Arduino detects the encoder pulse matches a required position, it halts the DC motor at that position. A PID system controls the entire process for sleek, accurate motion.

02

Hardware Specifications

Project build note

Arduino Dc motor Protractor L293d IC Optical encoder Crystal Oscillator Resistors Capacitors Transistors Cables and Connectors Diodes PCB and Breadboards LED

Transformer/Adapter Push Buttons Switch IC IC Sockets

Ready to continue?
PROJECT ACHIEVED

You built Arduino PID based DC Motor Position Control System.

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

Open-Source COVID-19 Pulmonary Ventilator project thumbnail featuring Arduino UNO , Arduino 4 Relay Shield, Digital Servo MG995 , LM2596S Module, k linear Multi-turn Potentiometer
NEXT ARDUINO ADVENTURE

Open-Source COVID-19 Pulmonary Ventilator

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

Start this project
Browse all 500 projects