Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
28 views

Microcontroller Lab - RB - For Circulation

The document outlines a laboratory course on microcontroller applications. It includes 14 experiments interfacing components like LEDs, motors, sensors to microcontrollers. It provides the course objectives, list of experiments, outcomes and references to help students learn about microcontroller programming and interfacing.

Uploaded by

panave3104
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Microcontroller Lab - RB - For Circulation

The document outlines a laboratory course on microcontroller applications. It includes 14 experiments interfacing components like LEDs, motors, sensors to microcontrollers. It provides the course objectives, list of experiments, outcomes and references to help students learn about microcontroller programming and interfacing.

Uploaded by

panave3104
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 36

[RI2109-1] Microcontroller Lab

[RI2109-1]

Microcontroller and Its Application

LAB MANUAL

AY 2023-24

DEPARTMENT OF ROBOTICS AND ARTIFICIAL INTELLIGENCE

COURSE SYLLABUS

1
Department of Robotics & AI
[RI2109-1] Microcontroller Lab
Microcontroller Lab
Course Code: RI2604-1 Course Type PCC Lab
Teaching Hours/Week (L: T: P: S) 0:0:2:0 Credits 01
Total Teaching Hours 25 CIE + SEE Marks 50+50
Prerequisite CS1001-1, EC1001-1
Teaching Department: Robotics & AI Engineering
Course Objectives:
1. Introduce the instruction sets to 8051microcontrollers
2. Write program for interface display units
3. Write program to interface signal processing units
4. Write program to interface motor control units
5. Write program to interface serial communication
List of Experiments
1. Data Transfer - Block move, Exchange- Assembly Language.
Arithmetic Instructions - Addition/subtraction, multiplication and division,
2.
Number conversion – Assembly language.
DAC interface-8051to generate different waveforms Sine, Square, Triangular, Ramp etc. with
3.
varying frequency & amplitude.
4. External ADC and Temperature control interface to 8051.
5. LED, Seven Segment and Switch interface – Embedded C programming.
6. Solenoid valve interfacing using relay – Embedded C Programming.
7. DC Motor speed control using PWM – Embedded C Programming.
8. DC motor control interface to 8051.
9. Rotary encoder interfacing to 8051 – Embedded C Programming.
10. Servo motor interface – Embedded C Programming.
11. Stepper motor control interface to 8051.
12. Linear actuator Interfacing using stepper motor – Embedded C Programming.
13. Gyro sensor interfacing for Robotic ARM with X-Y-Z axis motion to STM32.
14. Light Sensor interfacing for datalogging to STM32
Course Outcomes: At the end of the course student will be able to
1. Use instruction sets to solve logical problems using Assembly language.
Develop embedded-C coding to interface LED, Seven-segment, LCD, embedded-C coding to
2.
interface ADC & DAC.
Develop embedded-C coding to interface stepper motor, servo motor, DC motor control, Rotary
3. encoder, linear actuator to 8051and develop embedded-C coding to demonstrate serial
communication using STM32 Microcontroller.
Course Outcomes Mapping with Program Outcomes & PSO
Program Outcomes→ PSO↓
1 2 3 4 5 6 7 8 9 10 11 12
↓ Course Outcomes 1 2 3
RI2604-1.1 3 2 1 - - - - - - - - 1 2 1 2
RI2604-1.2 3 2 1 - - - - - - - - 1 2 2 2
RI2604-1.3 3 2 1 - - - - - - - - 1 2 2 2
1: Low 2: Medium 3: High
REFERENCE BOOKS: Laboratory Manual for microcontroller laboratory

2
Department of Robotics & AI
TABLE OF CONTENTS Page
Architecture of 8051, Pin Diagram 2
Instruction Set 4
Steps to be followed for microcontroller software programs 4
The 8051 Board 8
Experiments

1. Data Transfer - Block move, Exchange- Assembly Language. 9


2. Arithmetic Instructions - Addition/subtraction, multiplication and division, in asm. 11
DAC interface-8051to generate different waveforms Sine, Square, Triangular, Ramp etc.
3. 13
with varying frequency & amplitude.
4. External ADC and Temperature control interface to 8051. 15
5. LED, Seven Segment and Switch interface – Embedded C programming. 18
6. Solenoid valve interfacing using relay – Embedded C Programming. 21
7. DC Motor speed control using PWM – Embedded C Programming. 21
8. DC Geared motor control interface to 8051. 22
9. Rotary encoder interfacing to 8051 – Embedded C Programming. 23
10. Servo motor interface – Embedded C Programming. 24
11. Stepper motor control interface to 8051. 27
12. Linear actuator Interfacing using stepper motor – Embedded C Programming. 29
13. Gyro sensor interfacing for Robotic ARM with X-Y-Z axis motion to STM32.
14. Light Sensor interfacing for datalogging to STM32

Prepared by: Ranjith Bhat,


Assistant Professor, Dept. of ROBOTICS & AI,
NMAMIT, Nitte

1
ARCHITECTURE OF 8051

PIN DIAGRAM OF 8051

2
3
8051 INSTRUCTION SET:

STEPS TO BE FOLLOWED FOR MICROCONTROLLER SOFTWARE PROGRAMS:

1. Go to Keil uVision

2. Project-> Close Project

3. Project-> Open New uVision project

4.

4
5.

6. Either create a new file with .asm as extension or

5
7. Add an existing file to the source group

8.

6
9.

10.

7
11. Create HEX file for Interfacing experiments.

The 8051 board

You might also like