Uploaded by Laiba Shahzad

Lab 1 MnM (1)

advertisement
Lab 1(a)
Familiarization with Microcontroller Training system (MC-8600)
Objective
To get an introduction with modules of MC-8600 trainer. All the modules are illustrated in the figure 1:
TASK 01:
1. Name all the modules included in microcontroller-based trainer (MC-8600).
MC-8600 trainer have following modules:
1. Microcontroller AVR/PIC/8051 Board
2. Power Supply Unit
3. Programming Port
4. Interrupt Source
5. DIP Switches
6. LED Array
7. Power Supply Unit (PSU)
8. Key PAD
9. Graphic LCD (128 x 64)
10. Character LCD (16 x 2)
11. 7 Segment Display
12. Analog to Digital Converter
13. Digital to Analog Converter
14. I2C Interface
15. RJ-45/RS-485/RS-232 interface
16. Servo Motor Control
17. DC Motor Control
18. Temperature Control.
2. Write a brief description of each module available in MC-8600.
PSU
PSU provides FOUR different voltages i.e. +12V, -12V, +5V, -5V for external use.
Programming Port
Programming port is used to serve as a mean to program the controller. It consists of a DB9 and Jumper Connector J1. RS-232 cable is connected to DB-9 for the transfer of data from
PC.
LED Array
LED Array have 8 LED array i.e. L0-L7 and to control it a Jumper Connector J2 is provided.
Interrupt Source
There are two interrupt sources included in this module. One is active low INT0 and other is
active high INT1.
DIP Switch
8 DIP switches can be used to input the data through jumper connector J3 to controller.
Key PAD
Key PAD is used to demonstrate the multiplexing technique. It contains alphanumeric keys
i.e. A-Z,0-9, arrow keys, delete and back space and can be used to input the controller by
jumper connector J4.
7 Segment Display
7-Segment display also have concept of multiplexing. It has four 7-segments display with
two jumper connectors J9 for data and J10 for control signals.
16x2 Character LCD
A 16x2 character LCD is provided to display text data. It displays the character data (A-Z, 09).J11 port is used to connect with microcontroller. Contrasts of LCD can be controlled by pot
provided.
128x64 Graphic LCD
A monochrome graphical LCD is provided to display both character and graphic data. It
provides 128x64 pixel area for display. It has two connectors. J14 is data port, while J15 is
control port.
Analog to Digital Converter
Atmel AVR/Microchip 16 series controller comes with built-in 8-channel, 10-bit Analog to
Digital Converter. There are 8 channels CH0-Ch7 for digital input.
Digital to Analog Converter
It converts 8-bit digital data from controller to analog signal available at O/P. Offset can be
controlled by tuning the pot provided.
Servo Motor
Servo motor is commercially used in many applications. They are commonly found in
robotics, UAVs. A PWM signal is sent by controller to SERVO motor driver that controls the
speed and step size of rotation (0o to 180o).
DC Motor
DC motor demonstrates the concept of feedback speed control system. A disk with a slot is
attached to a DC motor. This slot upon rotation cuts the IR sensor, which sends the pulse
train to the controller. The frequency of pulse train gives the rpm. Speed of DC motor is
controlled by H-Bridge which provides 4-quadrant motor operation. PWM signal is generated
from controller to set the desired speed and direction of rotation. J8 connector is used to
connect to the micro controller.
Temperature Control
Temperature control is used to study the discrete/digital PID control system. A 5W resistor
is used to model a heater. A temperature sensor is attached to the heater that sends
temperature data to the microcontroller/PID controller. It then turns on/off the fan to set
the temperature in the desired range.
TASK 1(b)
Introduction to Proteus
Objective
●
●
●
Introduction to Proteus ISIS GUI or IDE
Basic Circuit schematics and libraries in Proteus ISIS
Circuit simulation in Proteus ISIS
1. Design the following circuit using Proteus and add AVR Atmeag32 as microcontroller:
Proteus Circuit:
2. Write name of library for each component in tabular form.
Components
Resistor 330R
Capacitor
Led Green
AVR Atmega32
CRYSTAL
Library
DIOIPC7351
ACTIVE
ACTIVE
AVR2
PICAXE
3. How will you add hex file? Explain in your words.
Compile the code and copy the hex file-path. Double click on the Arduino board in proteus and
browse to insert the hex file of code. Paste hex file. After inserting a hex file, you can start the
simulation by pressing the play key.
Download