- Module 5 - 8051 Microcontroller - Basics - 14 ~ 16 hours
Pre-requisite for this module:
- Understanding of Basic Electronics, Usage of electronic components in circuits, usage of bread boards and multimeter
- Basic understanding of what a microcontroller us and how it is different than a microprocessor
- Interface of various inputs/output devices including 16x2 LCD display, 4x4 keypad, usage of L293 board and electromechanical devices
- It is strongly recommended that students bring their own laptop. You’ll preserve your work and you’ll have all the development environment set up for you to work even after your course(s)
Working Kit Contents:
- 8051 Development Board, USBASP SPI Flashing Board, DC Motor, Servo Motor, L293 Motor Driver Board, 16x2 Character LCD display, Breadboard, LEDs, RGB LEDs, Resistors, Potentiometer, 8x8 Dot Matrix Display, 7-Segment Display, Tactile switch, Rocker switch, Piezo Electric Buzzer, Connecting Wires, Batteries
What you’ll learn:
- Interfacing and controlling basic components from the microcontroller
- Know how to use Keil 8051 compiler in your projects and how to flash the code using XploreFlash and USBAsp SPI programmer
- Interfacing electromechanical devices like DC/Servo motors, changing direction using H-Bridge like L293 boards
- Usage of timer/external interrupts and how to use them in understanding how we can get away with software delays and software polling
8051 class of microcontrollers – Introduction – 1 Hour
-
- Block diagram if 8051 MCUs
- Pinouts
- Oscillators and clocks
- Internal RAM and Registers
- Special function registers
- Timers
- Interrupts
- Introduction to Keil microvision IDE – 30 mins
- Starting a new project under Keil microvision
- Setting compiler options
- Programming the microcontrollers - 30 mins
- Process of flashing the code using SPI
- Using XploreFlash programmer to program the micro
- Introduction to the 8051 programmers (USBASP) and the drivers associated with them
- Hands-On projects
- Blink an LED – 15 Mins
- Using software delay
- Detect a switch press - 15 mins
- Using software polling
- Using external interrupt pin
- Understand PWM (Pulse Width Modulation) – 15 mins
- Fade an LED using PWM - 15 mins
- Understand how timers work
- Interface an RGB LED and display various color combinations - 1 hour
- Implement a 4 bit counter using four LEDs – 1 Hour
- Interface a 7-segment display and run a counter from 0 to F - 2 Hours
- Have a switch which will toggle between Up and Down counting while pressed
- Interface Servo motors - 1 Hour
- Learn how servos work and their practical uses
- Interface a DC motor and run the motor forward for 3 seconds and reverse for 3 seconds and stop - 5 hours
- Learn how to interface and use H-Bridge L293 board to change direction of DC motors.
- Fade an LED according to the detected value of potentiometer resistance – 30 mins
- Blink an LED using timer interrupt– 1 Hour
- Understand the concept of interrupts and timers and how to program them
- Interface a 8x8 Dot Matrix LED Display - 3 Hours
- Write code to drive this display using MAX7219 driver.
- Cascade multiple of these displays and scroll messages.
- Blink an LED – 15 Mins
- Hands-On projects