Aurdino Lab 3
Aurdino Lab 3
Microcontroller
Lab Task
1. Write down the difference between microcontroller and microprocessor and from which
category Arduino belongs to.
Microcontroller: Microprocessor:
1. Definition: Microcontroller: A microcontroller A microprocessor is a general-
is a compact integrated circuit (IC) purpose processing unit that
that includes a processor, memory, contains only the central
and input/output peripherals on a processing unit (CPU). It
single chip. It is designed to requires external components
perform specific control functions, like memory, input/output
ports, and other peripherals to
often in embedded systems, such
function. Microprocessors are
as home appliances, automotive
used in personal computers,
systems, and IoT devices. smartphones, and servers.
2. Architecture: Microcontrollers are designed with Microprocessors are generally
a built-in memory (both RAM and based on Von Neumann
ROM), along with input/output architecture, which uses a
ports, timers, and other single memory space for both
peripherals, all integrated into a program instructions and data.
single chip. They often use Harvard They need external chips for
architecture where program and memory, input/output control,
data memories are separate. etc.
3. Use Case: Designed for specific tasks in Used in systems requiring more
embedded systems. Commonly computing power and flexibility,
used in devices like washing such as computers, laptops, and
machines, microwave ovens, and mobile devices, where tasks are
IoT devices where tasks are dynamic and may change over
repetitive and predefined. time.
Assessment
1. Study 5 different type of Arduino boards (other than discussed in labs) and write down
Arduino Category
Arduino belongs to the category of microcontrollers. Most Arduino boards, such as the Arduino Uno,
use an Atmel AVR microcontroller (e.g., ATmega328). These microcontrollers integrate a CPU,
memory (both flash and RAM), and input/output peripherals into a single chip, which is characteristic
of a microcontroller.
Low Power: Designed for projects that involve embedded systems where power efficiency is
crucial.
Flash Memory: Stores the program code that can be uploaded via the Arduino IDE.
Real-Time Control: Since it is designed for embedded systems, it can handle real-time control
tasks effectively (e.g., controlling sensors, motors, etc.).
Here are five different types of Arduino boards, other than the commonly discussed Arduino Uno:
1. Arduino Nano
Size: Smaller form factor than the Uno, making it ideal for compact projects.
Special Feature: Compact size and breadboard-friendly, ideal for projects with space
constraints.
Differences: Nano is much smaller than Uno, and lacks a barrel jack for power input, but has
the same functionality in terms of I/O and memory.
Microcontroller: ATmega2560.
Special Feature: Large number of I/O pins and memory, making it suitable for complex
projects requiring more peripherals.
Differences: Much larger than the Uno, with significantly more I/O pins and memory, ideal
for more complex projects.
3. Arduino Leonardo
Microcontroller: ATmega32u4.
Special Feature: The Leonardo can emulate a USB HID (Human Interface Device), such as a
keyboard or mouse.
Differences: Unlike Uno, Leonardo has built-in USB support, which allows it to act as a USB
keyboard/mouse without additional hardware.
4. Arduino Due
Special Feature: 32-bit processor, faster than typical 8-bit Arduinos, ideal for high-
performance tasks.
Differences: The first Arduino to feature a 32-bit ARM microcontroller, offering much more
processing power and memory than typical 8-bit Arduino boards like the Uno or Mega.
Microcontroller: ATmega328.
Differences: Unlike other Arduino boards, the Pro Mini lacks a built-in USB interface, making
it suitable for permanent, space-constrained projects where programming isn't frequently
needed.
Key Differences:
Arduino Size Microcontrolle Voltage Memory Digital Analog USB Special
Board r (Flash/SRAM I/O Pins Interface Feature
) Pins
ATmega328 5V Large
256KB / Standard memory,
Nano Small 54 16
8KB USB many I/O
pins
Large
Mega ATmega256 256KB / Standard memory,
Large 5V 54 16
2560 0 8KB USB many I/O
pins
Leonard Mediu ATmega32u 32KB / Micro- USB HID
5V 20 12
o m 4 2.5KB USB support
32-bit
ARM 512KB / Micro- ARM
Due Large 3.3V 54 12
Cortex-M3 96KB USB processo
r
Ultra-
compact,
None
5V/ 32KB / requires
Pro Mini Tiny ATmega328 14 6 (External
3.3V 2KB external
)
USB
adapter
Each board has its unique advantages based on the requirements of the project in terms of size, I/O,
performance, and features.
Conclusion
In conclusion, it can be said that microcontrollers and microprocessors do not have only the physical
differences of being smaller or larger, but the architecture, functionality, and application vary
considerably between the two. Microcontrollers based Arduino boards open a variety of possibilities
for embedded systems. There is an array from the smallest Arduino Nano to the largest powerful
Arduino Due. There are factors such as size, memory, I/O pins, and voltage that should determine the
choice of an Arduino board. Finally, knowing the differences between microcontrollers and
microprocessors helps to plan and implement projects with microcontrollers in a more effective
manner. For the successful completion of any project, it is important to choose the right types of
Arduino boards as it helps in the smooth and successful completion of the work.