You are on page 1of 2

Note: Please do the simulations on Proteous.

Lab 5:

If you have a single chip then how will you program the atmega32, make a proper simulation by
connecting crystal oscillator.
Also make a Proper simulation of you code and blink the leds through code in different patterns.
At least make 3 programs.

Lab 6:

1. A door sensor is connected to the RB1 pin, and a buzzer is connected to RC7. Write a program to
monitor the door sensor, and when it opens, sound the buzzer. Else buzzer is off?
2. Write a program to get a status from PB1, wait ½ second, and then send it to port C?
3. Make AND gate and OR gate using switches and a LED?
4. Make XOR and XNOR gate using switches and a LED?
5. Write a program to get bit RB0 and send it to RC7 after inverting it?

Lab 7:

1. What are relays and and the applications where we could use the relays.
2. What is NC , NO, C is the relays.
3. Write a program to turns the Lamp on and off by energizing and de-energizing the relay every
second.

Lab 8:

1. Write a C program to display digits 0-9, A, b, C, d, E, F, with 500ms delay on common anode 7-
seg, interfaced with port c of Atmega32?
2. Design a circuit in which a common cathode 7-seg connected with port C of and 4 LEDs
connected with port b, also write C program to display 0-9 on 7-seg and their binary on LED’s
with 500ms delay?
3. Write a C program to display 00-99 on two 7-seg connected with single port (portb) of
Atmega32

Lab 9:

Recognize the circuit for LCD Interface with Atemga32, and practice different c programs to display
different characters and letters on LCD screen.

1. Write a simple C language program to display following strings on LCD display in repeated form?
a) All the characters of your name
b) Scroll from Right to Left “PAKISTAN ZINDABAD”

Lab 10:

Interfacing of DC motor with AVR Atmega32 and practice different C programs to understand working
of DC motor.

1. Write a C program to monitor the status of SW switch and perform the following:
a. If SW = 0 , the DC motor moves clockwise.
b. If SW = 1 , the DC motor moves anticlockwise.
2. Write a C program to monitor the status of the SW and perform the following:
a. If SW = 0, the DC motor moves with 50% duty cycle impulse.
b. If SW =1 , the DC motor moves with 25% duty cycle impulse.
3. What is stall in a DC motor.
4. Develop a program and proteous simulation to connect the DC Motor using Relays.

Lab 11:

Interfacing of Stepper motor with AVR Atmega32 and practice different C programs to understand
working of stepper motor.

1. Write C program and simulation for wave drive of Stepper motor.

2. Write C program and simulation for half drive.

Lab 12:

Design a circuit for 4x4 keypad to interface with AVR Atmega32.

1. Design a 4x4 keyboard and print those letters on the 16x2 LCD, develop a code and do the
proteous simulation.

You might also like