Module 3 Micro Controller and Motor Control
Module 3 Micro Controller and Motor Control
Module 3
Microcontrollers
Microcontrollers is a compact
integrated circuit designed to
govern a specific operation in
an embedded system. A
typical microcontroller
includes a processor, memory
and input/output (I/O)
peripherals on a single chip.
Microcontrollers are made up of several key
components:
• Central processing unit (CPU) - The CPU is the brain of the
microcontroller. It executes instructions that are stored in memory
• Memory- Microcontrollers have two types of memory: RAM (random
access memory) and ROM (read-only memory). RAM is used to store
data that the CPU is currently working on, while ROM is used to store
the program that the microcontroller is running.
• Input/output (I/O) pins - I/O pins allow the microcontroller to
interact with the outside world. They can be used to connect to
sensors, actuators, and other devices.
• Clock - The clock provides a timing signal to the CPU. This signal is
used to synchronize the operations of the microcontroller
Some Popular Microcontrollers
Arduino Uno Raspberry Pi ESP32
The Arduino Uno is a The Raspberry Pi Pico is a The ESP32 is a Wi-Fi and
popular and easy-to-use low-cost, high- Bluetooth-enabled
microcontroller that is performance microcontroller that is
often used by beginners. microcontroller that is popular for projects that
It is relatively popular for a wide range need to connect to the
inexpensive and has a of applications. It is very internet. It is a bit more
large and supportive affordable and has a lot of expensive than other
community. processing power for its options, but it offers a lot
size of functionality.
What can you do with microcontrollers?
• Control robots: You can use microcontrollers to control the movement
of robots, sensors, and other devices. This can be used to create
educational robots, hobbyist robots, or even industrial robots.
• Create interactive devices: You can use microcontrollers to create
interactive devices such as games, toys, and art installations. This can
be a great way to express your creativity and learn about electronics.
• Automate tasks: You can use microcontrollers to automate tasks such
as watering plants, turning on lights, and monitoring your home
security. This can save you time and make your life easier.
Motor Controls
In this chapter, we will interface different types of motors with the
Arduino board (UNO) and show you how to connect the motor and
drive it from your board.