Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 1.

Similar documents
Laboratory: Introduction to Mechatronics

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming

ME 475 Lab2 Introduction of PIC and Programming. Instructor: Zhen Wang

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

DERTS Design Requirements (1): Microcontroller Architecture & Programming

MICROPROCESSORS A (17.383) Fall Lecture Outline

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

EMBEDDED SYSTEMS COURSE CURRICULUM

Bolt 18F2550 System Hardware Manual

Programming 8-bit PIC Microcontrollers in С

Department of Electronics and Instrumentation Engineering Question Bank

Chapter 2 Sections 1 8 Dr. Iyad Jafar

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

Figure 1.1: Some embedded device. In this course we shall learn microcontroller and FPGA based embedded system.

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

CORRIGENDUM ISSUED FOR NATIONAL COMPETITIVE BIDDING UNDER TEQIP PHASE-II

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Lecture 1. Course Overview and The 8051 Architecture

Lecture (02) PIC16F84 (I)

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

EECS 100/43 Lab 9 PIC Input-Output (I/O)

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

ECE Senior Project Status Report. for. Scalable Regulated Three Phase Rectifier. September 21, Prepared by: Tyler Budzianowski.

Trends in Prototyping Systems. ni logic Pvt. Ltd., Pune, India

University Program Advance Material

ME456: Mechatronics. Prof. Clark Radcliffe. Do you have the knack? Joonho Lee, TA. What s Mechatronics? Mechatronics

ME 515 Mechatronics. A microprocessor

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

EE324: Microcontrollers and Interfacing. Office Hours: Mon, Wed, to 11.30am. Microcontrollers and Interfacing

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core

ITT Technical Institute. ET2640 Microprocessors and Microcontrollers Onsite and Online Course SYLLABUS

Product Overview -A 16 bit Micro Experimenter for Solderless Breadboards

Embedded Systems and Kinetic Art. CS5968: Erik Brunvand School of Computing. FA3800: Paul Stout Department of Art and Art History.

Logistics. Embedded Systems. Kinetic Art. This Class. Embedded Systems and Kinetic Art. Kinetic Art

Microchip 18F4550 Interface, Signal conditioning, USB, USB- RS-232, 16x2 LCD Interface

DEMO9S08LG32 Up to 5V MCU with integrated LCD display driver

MB95260H/MB95270H. MB95280H Series. MB95260H Series/MB95270H Series/

Introducing: New Low-Cost & Low Pin Count PIC Microcontrollers for the 8-, 16- & 32-bit Markets

Embedded Systems Module. 6EJ505. C Tutorial 3: using the ICD3 rev tjw

Unit wise Question Bank UNIT-II

Engineering Design in Education. ECEDHA March 2012

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

Introduction to 8051 microcontrollers

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

MICROCONTROLLER BASED SMART FAN SYSTEM

Introducing Microcontrollers System Design

Microprocessors/Microcontrollers

PIC Microcontroller Introduction

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Experiment #0. PC Hardware and Operating Systems

ELEC 3040/3050 Lab Manual Lab 2 Revised 8/20/14. LAB 2: Developing and Debugging C Programs in MDK-ARM for the STM32L100RC Microcontroller

WIZTECH AUTOMATION SOLUTIONS (P) LTD., An ISO 9001:2000 and IAO certified company

Microcomputer Architecture and Programming

EE 390 Lab Manual, EE Department, KFUPM. Experiment #7. Introduction to Flight86 Microprocessor Trainer and Application Board

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4

32 bit Micro Experimenter Board Description and Assembly manual

Control System Consideration of IR Sensors based Tricycle Drive Wheeled Mobile Robot

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application...

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

MICROPROCESSORS B (17.384) Spring Lecture Outline

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

Circuit Breaker Calibration

Introduction to L.A.P. 1

eip-24/100 Embedded TCP/IP 10/100-BaseT Network Module Features Description Applications

PIC Microcontroller and

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

A Sequence of courses using 8, 16, and 32 bit Microcontroller/DSP Boards

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

Advanced Embedded Systems

8051 Microcontroller

Anadigm FPAA Solutions Training Class III

Introduction to ARM LPC2148 Microcontroller

TKT-3500 Microcontroller systems

Embedded systems. Exercise session 3. Microcontroller Programming Lab Preparation

PSIM Tutorial. How to Use SPI in F2833x Target. February Powersim Inc.

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham

SRI VENKATESWARA COLLEGE OF ENGINEERING

MICROPROCESSORS B (17.384) Spring Lecture Outline

A Control System Plant Simulator

EasyPIC5 Development System

MTRX3700 Mechatronics

_ V ST STM8 Family On-Chip Emulation. Contents. Technical Notes

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

Centre for Instrumentation, Control and Automation User s Guide to the MAD 2 Microcontroller Board

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

CHIPS Newsletter Vol 5 - Yahoo! Mail. Official Newsletter of

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

F 2 MC-8FX Family. 8-bit Microcontroller. MB95200 Series

ECE 471 Embedded Systems Lecture 2

8051 Microcontroller

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM).

Microcontroller Overview

Transcription:

Laboratory: Introduction to Mechatronics Instructor TA: Edgar Martinez Soberanes (eem370@mail.usask.ca) 2017-01-12 Lab 1. Introduction

Lab Sessions Lab 1. Introduction to the equipment and tools to be used in the lab, which include the development board (PICDEM 2 Plus),the microcontroller (PIC 16F1937), and the USB Oscilloscope (Analog Discovery). Lab 2. Experiment 2: Transistor Operation, Experiment 3: Passive filters, and an Op Amp circuit experiment. Lab 3. Experiment 7: LED Control and Interruptions. Lab 4. Experiment 10: Stepper Motor Motion Control. Lab 5. Experiment 11: DC Motor Speed Control Using PWM. Lab 6. Experiment 12: Closed Loop DC Motor Position Control. 2

Lab 1. Outline Objective. Lecture Development board (PICDEM 2 Plus) and microcontroller (PIC 16F1937). USB Oscilloscope (Analog Discovery). Analog Discovery Practice. Time for the experimental question in assignment 1 3

Objective General Lab Objective: To test and learn some functions of a PIC microcontroller to observe its potential uses in embedded applications which are typical in Mechatronic applications. Lab 1 Objective: To learn the general characteristics of the PIC 16F1937 and the board PICDEM 2 Plus, and to develop an understanding of the Analog Discovery tool (USB Oscilloscope) 4

Logistics of the Labs Groups: The labs will be divided into 9 groups of 3. Selected by the students. Equipment: There are 9 sets of equipment, one set for each group. Components are placed in bins that are labelled. When doing experiments, take only the components necessary for the labs. Take apart circuits at the end of the lab and put the components back in their proper location. 5

Introduction Microcomputer systems Every computer, no matter how simple or complex, has at its heart two things: a CPU and some memory. Together, these two things are what make it possible for your computer to run programs. 6

A microcontroller is a simplified version of a similar architecture, placed on one chip. 7

Microcontroller (PIC 16F1937) o Operating speed: 32 MHz oscillator/clock input (125 ns instruction cycle) o Wide Operating Voltage Range: 1.8V-5.5V o 8K x 14 words of Flash Program Memory. o 512 Bytes of Data Memory. o Interrupt capability with automatic context saving. o 5 bidirectional I/O ports. o 5 PWM Modules. o Analog to digital converter module. o LCD Driver. o Programing language: C++using MPLAB (Microchip Resources) Data Sheet available online at Microchip's web site. 8

Block Diagram 9

Pin Diagram 10

Memory Organization Flash Program Memory (ROM): o o Size: 8K Words Word size = 14 bits. Data Memory (RAM): o Size: 512 bytes o Word size = 1byte (1 byte = 8 bits) Data EEPROM (256 bytes) 11

Program Memory (ROM) Program memory and EEPROM are not directly mapped in the register file space. Instead, they are indirectly addressed through the Special Function Registers (SFRs). 8K x 14 bits 12

Data Memory (RAM) o Memory: 512 bbbbbbbbbb o Divided in 32 banks with 128 bytes in a bank. 12 core registers 20 Special Function Registers (SFR) Up to 80 bytes of General Purpose RAM (GPR) 16 bytes of common RAM 13

Special Function Registers (SFR) SFR GPR (512 bytes) Total memory o Control the core" operation of the microcontroller. o Specific name, STATUS, FSR, PORTA, TRISA o No name but address number or direction. DATA MEMORY space. Likewise access. 14

Ports 5 ports (A,B,C,D, and E). Each port has different characteristics and number of pins. Ports are bidirectional (Input/Output). Multi-functional. Some pins are multiplexed with an alternate function. When a peripheral is enable, that pin may not work as a general input/output. 15

Development Board (PICDEM 2 Plus) The PICDEM 2 Plus is a demonstration board that can be used to test and debug programs loaded into a PIC such as the PIC 16F1937. The board has several components including LEDs, push buttons, PIC kit serial connector, LCD display, access to external pins. which allow the user to test several applications that 16

PICDEM 2 Plus 17

Analog Discovery (USB Oscilloscope) 2-Channel Oscilloscope 2-Channel Waveform Generator 16-Channel Logic Analyzer 16-Channel Digital Pattern Generator ±5VDC Power Supplies Spectrum Analyzer Network Analyzer Voltmeter Digital I/O Supported by MATLAB / MATLAB student edition 18

Pin Diagram 19

Assignment for today Watch 5 YouTube videos on the operation of the Digilent scope. (45 min. duration) Directory created for you C:ME475_2017. Open the Word file Analog Discovery Lab Intro Perform the experiments suggested in the videos. Complete Question 6 from the Mechatronics Lab Manual posted on the ME475 website. 20

21

Thanks 22