Identify the Basic Functions of
Microcontrollers
and Set Up the Programming
Environment
Industrial Technology / Mechatronics
Instructor: [Your Name]
Learning Objectives
• By the end of this lesson, students should be
able to:
• 1. Define microcontrollers and their functions
• 2. Differentiate microcontrollers from
microprocessors
• 3. Identify key components of microcontrollers
• 4. Recognize real-world applications
• 5. Set up a programming environment
• 6. Run a basic program
What is a Microcontroller?
• - Small computer on a single chip
• - Contains CPU, memory, I/O ports
• - Designed for specific control tasks
• - Example: Washing machine, microwave,
printers
Microcontroller vs Microprocessor
• Microcontroller:
• - All-in-one (CPU, memory, I/O)
• - Task-specific, low power
• - Example: Arduino, PIC
• Microprocessor:
• - Needs external RAM, storage
• - High performance, general-purpose
• - Example: Intel, AMD CPUs
Basic Functions of Microcontrollers
• - CPU (brain)
• - Memory (RAM, ROM, Flash)
• - Input/Output Ports
• - Timers and Counters
• - ADC/DAC (signal conversion)
• - Communication (UART, I2C, SPI)
Applications of Microcontrollers
• - Home automation (smart lights)
• - Industrial automation (robots, conveyors)
• - Robotics (sensor-driven)
• - Automotive (engine control, dashboard)
• - Consumer electronics (TV, toys, printers)
Setting Up the Programming
Environment
• Steps:
• 1. Install IDE (Arduino IDE, MPLAB X,
STM32CubeIDE)
• 2. Install USB drivers
• 3. Connect microcontroller board
• 4. Write code
• 5. Compile and upload program
Example Program: LED Blink
• Arduino Example Code:
• void setup() {
• pinMode(13, OUTPUT);
• }
• void loop() {
• digitalWrite(13, HIGH);
• delay(1000);
• digitalWrite(13, LOW);
Learning Activity
• Group Task:
• - Identify devices at home with
microcontrollers
• Lab Task:
• - Install Arduino IDE
• - Connect board
• - Upload Blink program
• - Modify delay values
Assessment
• - Short quiz (definitions, functions,
applications)
• - Practical test (set up environment, run LED
Blink)
• - Example Question: What is the function of an
ADC?
Lifelong Learning Connection
• - Microcontrollers are foundation for
automation, robotics, IoT
• - Skills apply to industrial technology careers
• - Opens opportunities for smart systems
innovation