Microcontroller Chapter – 3 Introduction to Arduino
1. Basic Introduction to Arduino
Arduino is an open-source electronics platform used to build digital devices and interactive objects
that can sense and control the physical world.
It consists of:
1. Hardware – Arduino board with microcontroller
2. Software – Arduino IDE used to write and upload programs
The Arduino board can read inputs (sensor data, button press, etc.) and produce outputs (LED,
motor, display, etc.) by executing a program.
Key Features
• Easy to use for beginners
• Open source hardware and software
• Low cost
• Supports many sensors and modules
• Programmable using Arduino IDE (C/C++ based language)
Common Arduino Boards
• Arduino UNO
• Arduino Mega
• Arduino Nano
• Arduino Leonardo
• Arduino Due
3. Arduino UNO Pin Details
1. Digital Pins (0–13)
• Used for digital input and output
• Can read HIGH or LOW values
• Pins 3,5,6,9,10,11 support PWM
2. Analog Pins (A0–A5)
• Used to read analog signals
• Converts analog signal to digital using ADC
4. Accessories Used with Arduino
Various electronic components can be connected with Arduino to build projects.
Sensors
• Temperature sensor
• Ultrasonic sensor
• IR sensor
• Light sensor (LDR)
• Gas sensor
Output Devices
• LEDs
• LCD displays
• Motors
• Buzzers
• Relays
Modules
• Bluetooth module
• WiFi module
• GSM module
• Motor driver module
Other Components
• Breadboard
• Resistors
• Jumper wires
• Capacitors
• Potentiometer
5. Applications of Arduino
Arduino is used in many engineering and hobby projects.
1. Home Automation
Control lights, fans, and appliances automatically.
2. Robotics
Used to control motors and sensors in robots.
3. IoT (Internet of Things)
Connect devices to the internet.
4. Weather Monitoring Systems
Measure temperature, humidity, and pressure.
5. Smart Security Systems
Motion detection and alarm systems.
6. Industrial Automation
Control machines and monitoring systems.
6. Basic Introduction to Arduino Microcontroller
The microcontroller is the brain of the Arduino board.
In Arduino UNO, the microcontroller used is ATmega328P.
Functions of Microcontroller
• Executes the uploaded program
• Processes input signals
• Controls output devices
• Performs calculations and logic operations
Main Parts of Microcontroller
1. CPU (Central Processing Unit) – Executes instructions
2. Memory
• Flash memory (program storage)
• SRAM (temporary data)
• EEPROM (permanent data)
3. Input/Output Ports
4. Timers and Counters
5. ADC (Analog to Digital Converter)
Major Parts in the Diagram
• USB Port
• Power Jack
• Microcontroller (ATmega328P)
• Digital Pins
• Analog Pins
• Power Pins
• Reset Button