Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Advertisements

Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
Input/Output Ports and Interfacing ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
ECT 357 Ch 16 Output Control. Today’s Quote: The measure of a man is not how great his faith is bt how great his love is. The measure of a man is not.
ELECTRICAL. Circuits Outline Power Hub Microcontroller Sensor Inputs Motor Driver.
Driver for Improving the Positioning Accuracy of Step Motors Eugen Ioan GERGELY, Alexandru GACSÁDI, Zoltán Tamás NAGY, Laura COROIU, Helga SILAGHI, Viorica.
L.
The Solar Tracker. Solar Tracking Project Team Members: –Cristian Ruvalcaba –Ken Seal –David Clark –Mark McKinley –Richard DeJarnatt.
Coordinate Based Tracking System
COMP3221: Microprocessors and Embedded Systems Lecture 20: Analog Output Lecturer: Hui Wu Session 2, 2004.
Solar Tracking Project Team Members: –Cristian Ruvalcaba –Ken Seal –David Clark –Mark McKinley –Richard DeJarnatt.
DC-DC Converters Convert a fixed DC Source into a Variable DC Source
Department of Electrical Engineering Southern Taiwan University of Science and Technology Robot and Servo Drive Lab. 2015/7/2 Digital Control Strategy.
Pulse Width Modulation Professor: Dr. Miguel Alonso Jr.
PWM (Pulse Width Modulation)
Servo Control Using Analog Signal Obtain “analog” input using analogRead().
ECE 504: Supervisory Control & Critical Infrastructures University of Idaho Udhay Ravishankar.
ASPPRATECH.
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
Introduction to Robotics Electronics and Robotics Club.
Microcontroller Architecture PIC18F Family
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Data Converters ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
September, 2007ENGR Low-Level Robot Control Mechatronics: Motors, sensors & embedded controls.
Sensors are mostly electronic devices used to monitor or capture something.
Input/Output Ports and Interfacing
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Timers ELEC 330 Digital Systems Engineering Dr. Ron Hayne
Programming and Problem Solving ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
EGRE 6311 Midsize Microcontrollers and Microprocessors The 8051 is an example of a small inexpensive microcontroller intended for simple applications.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
Application Programs ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
By: Khalid Hawari Muath Nijim Thaer shaikh Ibrahim Supervisor: Dr. Jamal Kharousheh Dr. Nasser Hamad 27 December 2010.
PWM Circuit Based on the 555 Timer. Introduction In applications LED Brightness Control we may want to vary voltage given to it. Most often we use a variable.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
CCP MODULES  The CCP module (Capture/Compare/PWM) is a peripheral which allows the user to time and control different events.  Capture Mode provides.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
Programmable Logic Controller (PLC)
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
July 18, UCSD - R.A. de Callafon Short Intro to Micro Processors and I/O functions of our Kinetic Sculpture Control Box Raymond de Callafon.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
1 4-Integrating Peripherals in Embedded Systems (cont.)
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
PWM: Pulse Width Modulation © 2014 Project Lead The Way, Inc.Digital Electronics.
C Examples 6. Download Links MPLAB IDE dsPIC30F4011/4012 Data Sheet dsPIC30F Family Reference Manual MikroC MikroC Manual MikroC Quick Reference.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Analog Output Materials: animatronic head Processing Quiz HW: code links.
MICROCONTROLLER INTERFACING WITH STEPPER MOTOR MADE BY: Pruthvirajsinh Jadeja ( ) COLLEGE:DIET BRANCH:EC.
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
Istituto Tecnico Industriale A.Monaco EURLAB Moving a robot simple example program to control a DC-Motor Next - Press the button (left)
Pulse-Width Modulation: Simulating variable DC output
A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment A Quick Start Guide to PIC16F877 microcontroller And Microchip Development.
1 4-Integrating Peripherals in Embedded Systems (cont.)
Portable Power Station University of Wyoming Electrical and Computer Department EE Done By Mohammad S. Almoallem Mahmood S. Almoallem Advised.
Microcontroller basics Embedded systems for mortals.
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
Introduction to Motors, servos and steppers
MICROCONTROLLER AND INTERFACING
simple example program to control a DC-Motor
Microcontroller Applications
ECE 354 Computer Systems Lab II
PIC18F458 Analog-to-Digital
Figure CCP1 Control Register
Equalizing Average Source Power with Pattern Swapping
Robotics System Lecture 11_12: DC Motor
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning

Embedded System  Typical analog/digital system Transducer Converts non-electrical signals into electrical signals A/D converter Converts analog signals into digital signals Digital processor Processes digital data D/A converter Converts digital signals into equivalent analog signals Transducer Converts electrical signals into non-electrical signals ELEC 330

PIC18 A/D Converter ELEC 330

Pulse Width Modulation  Duty Cycle Percentage ratio of on time of a pulse to its period  Changing of the duty cycle is defined as PWM CCP pin is set as an output Count for period and duty cycle loaded into CCP registers Varying the duty cycle generates PWM  PWM for DC Motor Control Varies average DC voltage Controls DC motor speed ELEC 330

PWM Mode  CCP module with Timer2 Output a pulse wave form for a given frequency/duty cycle  Duty cycle CCPR1L register  Period PR2 register  When TMR2 is equal to PR2 TMR2 is cleared Pin RC2/CCP1 of PORTC is set high PWM duty-cycle byte loaded into CCPR1 ELEC 330

MPLAB X IDE  Compile/Assemble Source Files Linker Script for specific Microcontroller  Test Programs Simulator In Circuit Debugger PICKit 3  Program Microcontroller PICKit 3 ELEC 330

PICKit 3 ELEC 330

PIC18 Explorer Demo Board ELEC 330

PIC18F8722 ELEC 330

2WD Robot Chassis ELEC 330

Dual H-Bridge Motor Driver ELEC 330

Microcontroller Applications  Analog to Digital Conversion Interface Analog Sensors (Transducers)  Pulse Width Modulation DC Motor Control  MPLAB X IDE Programming and Debugging  PIC18 Explorer Demo Board PIC18F8722 with lots of I/O  Robot Chassis H-Bridge Motor Driver ELEC 330