Recorded workshop · ELECTRICAL

Embedded Systems and its Application

Held 24 Mar 20211 video

Notes written by Skill-Lync from the recording · Updated 17 Nov 2026

What this workshop covers

This embedded systems workshop explains microcontroller building blocks, peripherals like UART, SPI, I2C, ADC and PWM, and two beginner projects to build.

Recorded by Skill-Lync in March 2021, the 28-minute talk defines an embedded system as hardware plus software, using a temperature-controlled fan and a fitness band as examples. It walks through RAM, flash and GPIO, the 8051 block diagram, how C code becomes a .hex file that a programmer flashes onto the chip, interrupts versus polling, and how to interface LCDs, motors, sensors and GSM, GPS and Bluetooth modules.

The second half lists the skills an embedded engineer needs, the design constraints of cost, size, power and code security, then sketches two projects: a voting machine with a 4x4 keypad and 16x2 LCD, and Bluetooth home automation with a relay module. It suits electrical and electronics students who want a map of the field before writing code. It is a slide talk with no live coding, no specific microcontroller family and no RTOS or embedded Linux.

Chapters

  1. 0:00 What an embedded system is: fan and fitness band examples
  2. 3:05 Building blocks: RAM, flash, GPIO and the 8051
  3. 5:34 Peripherals: UART, SPI, I2C, ADC, timers, PWM, flashing
  4. 9:17 GPIO count, protocol wiring and interrupts vs polling
  5. 12:48 Interfacing LCDs, motor drivers, sensors, GSM and GPS
  6. 15:27 Skills, debugging tools and design challenges
  7. 20:00 Project 1: voting machine with keypad and 16x2 LCD
  8. 22:32 Project 2: Bluetooth home automation with relays
  9. 26:04 Career paths: firmware, IoT and embedded hardware

Key points from the session

  • Inside the microcontroller, the compiled program (.hex or .bin) lives in flash (ROM) and variables live in RAM. The instructor's reference points: an ATmega328 has 32 KB flash and 2 KB RAM, and the classic 8051 has 4 KB ROM, 128 bytes of RAM and four 8-pin ports, 32 GPIO in all.
  • Pick a microcontroller with spare GPIO. If a product grows from 10 to 15 pins of I/O on a chip that has only 10, you have to change the part number and redo the design.
  • Wiring of the three serial buses: UART uses TX, RX and ground (most designs use UART rather than clock-sharing USART), SPI uses four to five lines (MISO, MOSI, clock, slave select, ground), and I2C, also called TWI, needs only SDA and SCL, with the master supplying the clock.
  • PWM dims an LED or slows a motor without burning the excess as heat the way a potentiometer does. With 8-bit PWM on a 5 V part, 255 is full output and a 50% duty cycle gives an average of 2.5 V.
  • A microcontroller pin cannot supply motor current, so it sends a logic signal to a motor driver. A 16x2 LCD in 8-bit mode needs 8 data pins plus RS, RW and enable, so the voting machine project needs 8 keypad pins plus 11 LCD pins, 19 GPIO in total.
  • Hardware interrupts beat polling: the controller jumps to the interrupt service routine the moment an input changes instead of spending instruction cycles checking it.
  • Embedded code must be lean: use an unsigned char for a value that never exceeds 255 instead of a float. Debug with breakpoints and watches in the IDE, and with a multimeter, oscilloscope and logic analyzer on the hardware side.

What is an embedded system in simple terms?

It is hardware and software built into a product for one job. The instructor's example: blinking an LED once needed a 555 timer circuit, and changing the delay meant changing hardware. With a microcontroller, the delay is a line of code. Fans, smart bands, vending machines and routers all work this way.

Why do microcontrollers need UART, SPI and I2C?

They are the serial links to other chips and modules. In the session, UART connects GPS, GSM and Bluetooth modules such as the HC-05, SPI connects flash memory chips, and I2C connects sensors and real-time clocks like the DS1307. You choose sensors to match the protocols your microcontroller supports.

How does a microcontroller switch a mains appliance like a fan?

Through a relay module. The microcontroller drives the relay coil with DC, and the coil moves the common terminal from normally closed to normally open, switching the AC load. The instructor notes that a 240 V, 6 A relay suits fans, chargers and TVs, but an air conditioner needs a 20-30 A rated relay.

Where to go next

Who should watch

For Electrical Engineers

A 24 Mar 2021 workshop recording from Skill-Lync on ELECTRICAL. For a structured course with projects on this topic, see Skill-Lync's electrical engineering courses.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.