← Back to Course

Microcontrollers 2

DE6417 — Tuesdays 8 am – 1 pm

Semester: S2 2026

Course Code: DE6417

Schedule: Tuesdays, 8:00 am – 1:00 pm

Duration: 15 weeks + Examination Period

Week Date Lecture Topic Practical / Assessment Activity
Week 1 14/07/2026 Lecture 1: Microcontrollers 1 Review

FSM, ADC, GPIO, ATmega328P Architecture

Introduction & Practical Setup

Review exercises on FSM, ADC, and GPIO

Week 2 21/07/2026 Lecture 2: Understanding Interrupts on the ATmega328P

Interrupt Vector Table, external interrupts (INT0/INT1), ISR execution, polling vs interrupts, registers (EIMSK, EICRA)

Interrupt Practical Exercises

Configuring external interrupts and writing simple ISRs

Week 3 28/07/2026 Lecture 3: Understanding Timers, Counters, PWM & Measuring Temporal Events

Timer/Counter architecture, prescalers, CTC, PWM modes (Fast PWM, Phase Correct), 8-bit vs 16-bit timers (Timer0, Timer1, Timer2)

Timer & PWM Practical Exercises

Hands-on practice with timer configuration and PWM output

Week 4 04/08/2026 Lecture 4: PWM & Tone Generation

CTC review, Fast PWM Mode 14, ICR1 as TOP, duty cycle control, piezo buzzer piano notes

Lab 1: Digital Signal Generation

Focus: Square, Triangle & Sine waves using PWM and Timer Interrupts

Week 5 11/08/2026 Lecture 3 (Cont.): Timers, PWM & Waveform Generation

Timers/PWM registers, CTC registers, Fast PWM Mode 14 configuration, waveform shaping, duty cycle controls

Assignment 1 Due

PWM Waveform Shaping exercises

Week 6 18/08/2026 Lecture 5: Using Timer & Interrupt Arduino APIs

TimerOne library, MsTimer2, attachInterrupt(), square/triangle/sine PWM waveform shaping, RC filter analog output

Lab 2: The Safety Garage Door

Focus: PCINTs for Emergency Stop safety feature with stepper motor

Week 7 25/08/2026 Lecture 6: Pin Change Interrupts (PCINT)

PCINT groups, shared ISR vectors, registers (PCICR, PCMSK), edge detection, software debouncing inside PCINT ISR, direct port access

Lab 2 — Continued / Completion

Finish Safety Garage Door lab work and PCINT exercises

Week 8 01/09/2026 Lecture 7: WiFi Communication with ESP8266 ESP-01

ESP-01 hardware, AT commands, SoftwareSerial communication, WiFi Chat Terminal, WiFi LED Controller

Lab 3: Debugging an Alarm System with VSCode

Focus: Finding and fixing bugs using VSCode/PlatformIO debugger

Break 08/09/2026 Mid-Semester Break No Classes
Break 15/09/2026 Mid-Semester Break No Classes
TestWeek 9 22/09/2026 Lecture 8: DHT11, Web Server & ThingSpeak

DHT11 sensor integration, live web server, cloud data logging with ThingSpeak IoT dashboard

Lab 3 — Completion

Finish Debugging lab work and web server testing

Week 10 29/09/2026
Class Test

Coverage: Timers, PWM, Interrupts (External & PCINT), Debugging

Assignment 2 Released: IoT Security System with Computer Vision

Focus: Motion Sensors (ISR), Camera Modules, Serial-to-Telegram • Due: Week 14

Week 11 06/10/2026 IoT Workshop & Lab Work

Hands-on IoT project work, ESP8266 integration, Telegram bot, camera control

Assignment 2 Development

Working on Assignment 2 features and components

Week 12 13/10/2026 Revision & Project Work

Catch-up, revision, and final project development work

Assignment 2 Development & Testing

Finalizing hardware assembly and testing bot communication

Week 13 20/10/2026 Lecture 9: Arduino as ISP / Standalone ATmega328P

ISP protocol, SPI wiring, ArduinoISP sketch, bare-chip programming, fuses, bootloaders, external 16 MHz crystal, power regulation

Standalone Build Workshop

Hands-on building of standalone circuits and bootloading chips

Week 14 27/10/2026 Lecture 10: Bare-Metal C Programming

avr-gcc toolchain, avrdude, direct register manipulation, bare-metal LED blink, INT0 external interrupts, 3-state button control without Arduino core

Assignment 2 Due

Bare-Metal C practical exercises

Week 15 03/11/2026 Revision & Practical Preparation

Hands-on revision, Q&A, exam practice

Open Lab & Exam Preparation

Supervised practice on all lab topics

ExamWeek 16 10/11/2026 Examination Period Examination Period
ExamWeek 17 17/11/2026 Examination Period Examination Period

Key Deliverables & Assessments

Assessment Released Due Duration Weight
Assignment 1: Advanced Traffic Light Control System Week 3 (28/07) Week 5 (11/08) 2 Weeks 10%
Lab 1: Digital Signal Generation
Week 3 (28/07) Week 4 (04/08) 2 Weeks 6%
Lab 2: The Safety Garage Door
Week 6 (18/08) Week 7 (25/08) 2 Weeks 6%
Lab 3: Debugging an Alarm System
Week 8 (01/09) Week 9 (22/09) 2 Weeks 8%
Class Test Week 10 (29/09) In-class 10%
Assignment 2: IoT Security System with Computer Vision Week 10 (29/09) Week 14 (27/10) 4 Weeks 10%
Final Examination Weeks 16–17 Exam Period 50%