Design and Development of Microcontroller Based SMS Controlled Home Automation System

Total Page:16

File Type:pdf, Size:1020Kb

Design and Development of Microcontroller Based SMS Controlled Home Automation System Design and Development of Microcontroller Based SMS Controlled Home Automation System Tahmina Begum DEPARTMENT OF ELECTRICAL & ELECTRONIC ENGINEERING DHAKA UNIVERSITY OF ENGINEERING AND TECHNOLOGY, GAZIPUR July 2010 i Design and Development of Microcontroller Based SMS Controlled Home Automation System A thesis submitted to the Department of Electrical and Electronic Engineering, DUET, Gazipur in partial fulfillment of the requirements for the degree of MASTER OF SCIENCE IN ELECTRICAL AND ELECTRONIC ENGINEERING by Tahmina Begum DEPARTMENT OF ELECTRICAL & ELECTRONIC ENGINEERING DHAKA UNIVERSITY OF ENGINEERING AND TECHNOLOGY, GAZIPUR July 2010 ii iii DECLARATION I hereby declare that this thesis or any part of the thesis has not been submitted elsewhere for the award of any degree or diploma. Signature of the candidate (Tahmina Begum) iv ACKNOWLEDGEMENTS First of all, I would like to thank Almighty Allah for providing me the health, courage and strength necessary to start and complete this work. Alhamdulillah. I feel privileged and proud to acknowledge my profound gratitude to Professor Dr. M. Bashir Uddin, Dean of the faculty of EEE, DUET, Gazipur, for his kind consent to select this topic, constant guidance, supervision and invaluable suggestions, inspiration, support, patience, and especially his encouragement to this thesis work. I am deeply indebted and grateful to Professor Mohammad Abdul Mannan, Head, Department of EEE, DUET, Gazipur, for his encouragement and valuable advice during this work. I would like to show my gratitude to my Co-Supervisor, Md. Shazzat Hossain, Assistant Professor, Department of EEE, DUET, Gazipur, for his guidance. I am highly grateful to Professor Dr. Md. Shaheen Choudhury, Department of EEE, DUET, Gazipur, for his constant guidance, encouragement and valuable advice during this work. I also would like to thank all my fellow friends for their contribution in giving me a moral support throughout this thesis work. I am also thankful to the librarian and the laboratory staffs of Dhaka University of Engineering and Technology (DUET) for their assistance in this thesis work. Last but not least, to all my beloved family members, especially my mother, elder brother Engineer Mr. Faizullah and my husband Dr. Mohammad Salman who were always, stand by my side to encourage, advice, comfort, cherish, and support me during this entire thesis work. Lastly, I really appreciate to have this responsibility to finish this work. This task has taught a lot of lesson and knowledge which is much valuable for me in the future. July, 2010 Tahmina Begum v ABSTRACT This thesis mainly focuses on the controlling of home appliances remotely and providing security when the user is away from the place. The system is SMS based and uses wireless technology to revolutionize the standards of living. This system provides ideal solution to the problems faced by home owners in daily life. The system is wireless therefore more adaptable and cost-effective. The home appliances control system provides control on automation of various home appliances using SMS. The system is capable enough to receive the instruction from user via SMS by a cell phone to change the condition of the home appliance according to the user’s needs and requirements. The system uses GSM technology thus providing ubiquitous access to the system for automated appliance control. The whole system is comprised of two components; one is hardware includes, PIC Microcontroller, GSM Module, Cell phone, power supply, sensors and relays. Other part is to develop master software based on PICBasic Pro and EPIC WIN software which is capable of remote controlling and monitoring appliances and devices via the SMS. The Prototype developed in the premises of Dhaka University of Engineering and Technology (DUET) shows the ability to receive and transmit back the SMS to communicate with the user and automate the home appliances. Results proved that home appliances control is possible by this system with less human dependence. Keywords: Short Message Service (SMS), Global System for Mobile communication (GSM), ubiquitous access and Automation. vi CONTENTS Pages Board of Examiners iii Declaration iv Acknowledgement v Abstract vi List of Figures xiii List of Tables xv xvi List of Abbreviations CHAPTER-1 INTRODUCTION 1.0 Introduction 1 1.1 Review 2 1.2 Some Important Terms Related to Home Automation 3 1.2.1 GSM Network 3 1.2.2 GSM Module 3 1.2.3 Subscriber Identity Module (SIM) 3 1.2.4 Short Message Service (SMS) 4 1.2.5 Microcontroller 4 1.2.6 Software 5 1.2.6.1 PicBasic Pro Software 5 1.2.6.2 EPIC Win 5 1.3 Aims and Objectives 6 1.4 Organization of the Thesis 6 CHAPTER-2 HOME APPLIANCES CONTROL SYSTEM 2.0 An Intelligent Home 8 2.1 Types of Home Automation Controls 10 2.1.1 Individual Control Devices 10 2.1.2 Distributed Control Systems 11 2.1.3 Centrally Controlled Systems 11 2.2 Appliances usually controlled 11 vii 2.2.1 Lighting, fan, air conditioner and other electrical devices 11 2.2.2 Security Systems and Access Control 11 2.2.3 Home Theater and Entertainment 11 2.2.4 Phone System 12 2.2.5 Thermostat 12 2.2.6 Irrigation 12 CHAPTER-3 HARDWARE COMPONENTS 3.0 Microcontroller 14 3.1 Components of Microcontroller 15 3.1.1 Microprocessor/CPU 16 3.1.2 Memory in a Microcontroller 16 3.1.2.1 Read Only Memory (RAM) 16 3.1.2.2 Random Access Memory 17 3.1.3 The I/O (Input/Output) Ports 18 3.1.4 Embedded Design 19 3.1.4.1 Interrupts 20 3.1.4.2 Programs 20 3.1.4.3 Other Microcontroller features 20 3.1.5 List of common Microcontrollers 21 3.1.6 PIC Microcontroller 25 3.1.7 Architecture of PIC Microcontroller 25 3.1.7.1 Data space (RAM) 25 3.1.7.2 Code space 26 3.1.7.3 Word size 26 3.1.7.4 Stacks 26 3.1.7.5 Instruction set 27 3.1.7.6 Performance 27 3.1.7.7 Limitations 28 3.1.8 8/16/24-bit PIC Microcontroller product families 29 3.1.9 Selection of PIC Microcontroller (PIC 16F877A) for this 29 study viii 3.1.10 Memory organization 37 3.1.10.1 Program memory organization 37 3.1.10.2 Data memory organization 37 3.2 GSM Module 38 3.2.1 Features of GSM Module SIM 300 39 3.2.2 Functional diagram of GSM Module SIM 300 42 3.2.3 Operating modes of GSM Module SIM 300 44 3.2.4 SIM Card interface 44 3.3 SIM Card holder 46 3.4 Subscriber Identity Module (SIM) 47 3.4.1 Smart Card Technology 48 3.4.2 Issuer Identification Number 48 3.4.3 Usage in mobile phone standard 49 3.4.4 Operating systems 49 3.4.5 Data storage 50 3.4.6 Integrated Circuit Card ID (ICCID) 50 3.4.7 IMSI 50 3.4.8 Authentication Key (Ki) 50 3.4.9 Authentication Process 51 3.4.10 Location Area Identity 51 3.4.11 SMS Messages and Contacts 52 3.4.12 SIM Serial Number (SSN) Digits 52 3.5 Power Supply 52 3.5.1 Electrical Power Supply 53 3.5.2 Power Supply Types 53 3.5.2.1 Battery Power Supply 54 3.5.2.2 Linear Power Supply 55 3.5.2.3 AC/DC Power Supply 55 3.5.2.4 Switched Mode Power Supply 56 3.5.2.5 Programmable Power Supply 57 ix 3.5.2.6 Uninterruptible Power Supply 57 3.5.2.7 High Voltage Power Supply 58 3.6 Liquid Crystal Display 58 3.6.1 Overview 59 3.6.2 Specifications 60 3.6.3 Colour Displays 61 3.6.4 Passive Matrix and Active Matrix addressed LCDs 62 3.6.5 Drawbacks of LCD Technology 64 CHAPTER-4 SOFTWARE COMPONENTS 4.0 PICBasic Pro and PICBasic Pro Compiler 68 4.0.1 Additional commands available only in PICBASIC PRO 70 4.0.2 PICBASIC PRO advantages 70 4.0.3 PICBASIC PRO Compiler Instruction Set 72 4.0.4 Functions / Operators 74 4.0.5 PICBASIC Compiler Features 75 4.0.6 Structure of a Compiled Program 75 4.0.7 Target Specific Headers 75 4.0.8 The Library Files 76 4.0.9 PBP Generated Code 76 4.0.10 .ASM File Structure 77 4.1 EPIC programmer 78 4.1.1 EPIC Programmer for PICmicro controllers 78 4.1.2 EPICWIN and EPIC Programmer 79 4.1.2.1 Software Installation 79 4.1.2.2 Hardware Installation 79 4.1.3 General Operation 80 4.1.4 EPIC for Windows 95/98/ME/NT/2000/XP 80 4.1.5 EPICWin Controls 81 4.1.6 EPICWin Menus 83 4.1.6.1 File Menu 83 x 4.1.6.2 View Menu 83 4.1.6.3 Run Menu 84 4.1.6.4 Configuration Menu 84 4.1.6.5 Options Menu 84 4.1.6.6 Help Menu 85 4.1.7 EPICWin Command Line Parameters 86 CHAPTER-5 METHODOLOGY 5.0 Design Overview 87 5.1 Hardware implementations 92 5.1.1 The PIC16F877A Microcontroller 92 5.1.1.1 Features of PIC16F877A Microcontroller 93 5.1.2 GSM Module SIM300CZ 94 5.1.3 Interfacing of Microcontroller with GSM Module 95 5.1.4 Liquid Crystal Display (LCD) 96 5.1.5 Interfacing of Microcontroller with LCD 97 5.1.6 Interfacing Circuit (Microcontroller to Load Devices) 98 5.1.7 Short Message Service (SMS) 99 5.1.8 Interfacing Circuit (GSM Module to SIM Card) 99 5.1.9 Power Supply to the System 100 5.2 Software Implementations 101 5.2.1 Steps of writing program in PICBasic Pro 101 5.2.2 Steps of loading program in to microcontroller by using 104 EPIC WIN soft ware 5.3 Sending SMS and display 107 5.4 Functioning of the Device 109 5.4.1 Steps of the functioning of the Device 109 CHAPTER-6 RESULTS 6.0 Hardware part testing 111 6.1 Software part testing 111 xi CHAPTER-7 DISCUSSION Discussion 113 CHAPTER-8 CONCLUSION AND FUTURE WORK Conclusion and future work 117 REFERENCES References 118 APPENDICES Program used in the device 1-4 xii LIST OF FIGURES Figures Pages Fig.
Recommended publications
  • Introduction to Microcontrollers 9/16/2017
    Introduction to Microcontrollers 9/16/2017 Introduction to Microcontrollers June 2017 Scott A. Theis — W2LW Rev 5 (08/02/2017) What’s it all about • How to get started • What are some of the common controller options • General introduction to terms and types • Input and Output • Information on getting started Sampling of Microcontrollers • tinyAVR — As little as 6 pins, over 1MHz • PICAXE — As little as 8 pins, up to 64MHz • Ardunio (ATMega) — Standalone or on board, 16+MHz • Raspberry Pi — Single-Board Computer, up to (and over) 1GHz • There are dozens of common microcontrollers Propeller BasicStamp 8051 MIP • There are a number of single-board computers: Beagle Bone NetDuino Intel Galileo ASUS Tinker Scott A. Theis, W2LW 1 Introduction to Microcontrollers 9/16/2017 Focus • Arduino and PICAXE— Microcontroller: • Well suited for specific application • Code is lightweight (so is memory) • Does not have an operating system per se • Raspberry Pi — Single-Board Computer: • Really a small computer with GPIO pins and lots of interface logic • Can be used for a wide spectrum of tasks • Lots of options and compute power Covering…. • Introduction, Jargon and Background • General Purpose Input and Output (GPIO) • Integrated Development Environment (IDE) • Some Examples Introduction, Background and Jargon Scott A. Theis, W2LW 2 Introduction to Microcontrollers 9/16/2017 The Arduino • Created as a simple, open source, easy to use platform • Developed in 2003 as a less costly replacement to the BASIC Stamp • Support has grown dramatically in the past
    [Show full text]
  • PICAXE Manual 1
    PICAXE Manual www.picaxe.com IMPORTANT! This PDF is designed to be used with the shortcut links (document outline) visible on the left hand side. Displaying these links makes it much easier to navigate through this manual! revolution www.picaxe.com GETTING STARTED Section 1 2 Contents About this manual ............................................................................................ 4 Software Overview ............................................................................................ 4 Software Comparison ........................................................................................ 5 Software Quick Choice Guide .............................................................................. 5 Third Party Software ......................................................................................... 5 Technical Support Forum ................................................................................... 5 Quick Start - Project Board PCB Preparation ......................................................... 6 Quick Start - Flashing an LED ............................................................................. 7 At a glance - specifications: .............................................................................. 8 At a glance - download circuit: .......................................................................... 8 At a glance - pinout diagrams (older parts): ........................................................ 9 At a glance - pinout diagrams (M2 parts): ........................................................
    [Show full text]
  • November 2019 DATTA VIC - 6Th December 2019: 5
    WELCOME Scorpio With the academic year drawing to a close most schools are well into their program planning for 2020. Please Technology contact Scorpio if we can help with this process. For 2020 orders see page 2. NEWSLETTER INSIDE THIS ISSUE All Scorpio’s comprehensive catalogues are online and are regularly updated. Page 1 STEM AT PRIMARY– END OF YEAR IDEAS STEM at Primary – End of year ideas Teacher Conferences & Workshops With the end of the year approaching students need Page 2 additional motivation to keep learning. Secondary Robot Buggy for PICAXE or We’ve put together some ideas that we believe would be ARDUINO perfect! Our online catalogues have many more ideas. Some items are available as kits but others are a mix and match to Page 3 suit your requirements. This Month’s Q&A Technology Tips: Magnetism – a range of magnets available Picaxe and Arduino Simple electrical circuits Simple vehicles – The Blue Brothers series provides Page 4 a fun and educational learning experience. Deconstruction – children love to take things apart Wordsearch – Design and Technology (to tinker). Parts can be used in a Makerspace area to Page 5 and 6 construct a huge range of items. Try this idea: construct Art works. These could be sold or auctioned Article – Clocks – A Journey Through to raise money for equipment or class projects. The Time & Craftsmanship students could be entrepreneurs during this process – make, market, advertise, sell. Our office will be closed from Outside activities could include: 3 p.m. on the 20th December 2019 until 9.00 a.m.
    [Show full text]
  • Ecejul07.Pdf
    AT LAST! AVR man’s deepest secrets are mine! MINE! And the birdbrain is not to be seen! It’s all on this hard disk! This technology will make me the mightiest of all! Even mightier than AVR man will never that anabolic steroid catch me in The wastecave. eater! I’ll be supersafe! BUT!!!?? The battery is dead! It doesn’t work! NOOOOO!! I’ll take this back since it’s mine, Wasteman. Anyhow, it’s loaded with stuff beyond your feeble understanding. It’s full of I’m giving you this AVR technology... door opener for your own of course!! safety. It’ll last forever and a day! Complete solution for Get more at: www.atmel.com/AVRman © 2007 Atmel Corporation. All rights reserved. Atmel®, AVR® and logo are registered trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. All Characters in this document are created by Mykle and Fantasi-Fabrikken AS 2007. VIEWPOINT small in size Less is More Big in With much fanfare, and justifiably so, embedded Linux has captured the spot- light in embedded software these days. Performance Linux has earned strong interest and adoption from those in the embedded software development community looking for cost-effective operating sys- tem support for their latest embedded device. While Linux offers attractive capabilities, it also is extremely complex, making it relatively difficult to learn and use. But what if low-cost development isn’t the goal? What if fast time-to- Geoff Gibson, Managing market demands a much simpler Director Express Logic UK: approach? And what if available mem- “…simpler solutions for less ory is limited by footprint, cost or demanding applications.“ power consumption concerns? In those cases, a multi-megabyte Linux image just doesn’t cut it.
    [Show full text]
  • Warf Electronics Shopping - Catalog Electronics Shopping IOIO for Android FR4 1.6Mm Blank PCB Board Single Side 6X6" 1Oz
    เลขประจําตัวผูเสียภาษี 3271161630 Warf Electronics Shopping - Catalog Electronics Shopping IOIO for Android FR4 1.6mm Blank PCB board Single Side 6x6" 1oz. ELE-SP072006172 ELE-WA491996121 1,950.00 THB 50.00 THB IN-14 RUSSIAN NIXIE TUBES IN-14 IN14 NEW NOS Line Iso-Regulation IRG-600 ELE-WA491996260 ELE-WA491986075 400.00 THB 27,500.00 THB LC-3 Purist Line Conditioner PS-8 Clean Power Station ELE-WA491986053 ELE-WA491986069 11,650.00 THB 5,850.00 THB ISO Clean Power Station ชุดกรองไฟ NFC-3 ELE-WA491986071 ELE-WA491986072 12,600.00 THB 8,600.00 THB ชุดกรองไฟ NFC2 ชุดกรองไฟ NFC-1 ELE-WA491986073 ELE-WA491986074 11,500.00 THB 14,500.00 THB อุปกรณชวยขจัดสัญญาณรบกวน LI-500 เครื่องกรองไฟ LC-1 MKII ELE-WA491986076 ELE-WA491986077 7,800.00 THB 4,890.00 THB CPS-8 SE Clean Power Station CPS-8 Clean Power Station ELE-WA491986054 ELE-WA491986068 8,800.00 THB 6,800.00 THB Line Iso-Regulation IRG-600 Black PS-8 SE Clean Power Station ELE-WA491986070 ELE-WA491986067 28,500.00 THB 7,800.00 THB AudioengineUSA N22 Amplifier / Headphone Amp Bellari HA540 Tube Headphone Amp ELE-WA491976078 ELE-WA491976079 7,500.00 THB 11,500.00 THB Burson Headphone Amp 160 Cavalli Audio Liquid Fire Headphone Amp (pre order) ELE-WA491976081 ELE-WA491976082 26,900.00 THB 49,900.00 THB Centrance DACmini Centrance DACport 24/96 USB Headphone Amp ELE-WA491976083 ELE-WA491976084 29,500.00 THB 14,500.00 THB Creek Audio OBH-11 Headphone Amplifier Creek Audio OBH-21 Headphone Amplifier ELE-WA491976085 ELE-WA491976086 9,800.00 THB 14,500.00 THB Creek Audio OBH-21 SE Headphone Amplifier
    [Show full text]
  • Coverstory by Robert Cravotta, Technical Editor
    coverstory By Robert Cravotta, Technical Editor u WELCOME to the 31st annual EDN Microprocessor/Microcontroller Di- rectory. The number of companies and devices the directory lists continues to grow and change. The size of this year’s table of devices has grown more than NEW PROCESSOR OFFERINGS 25% from last year’s. Also, despite the fact that a number of companies have disappeared from the list, the number of companies participating in this year’s CONTINUE TO INCLUDE directory has still grown by 10%. So what? Should this growth and change in the companies and devices the directory lists mean anything to you? TARGETED, INTEGRATED One thing to note is that this year’s directory has experienced more compa- ny and product-line changes than the previous few years. One significant type PERIPHERAL SETS THAT SPAN of change is that more companies are publicly offering software-programma- ble processors. To clarify this fact, not every company that sells processor prod- ALL ARCHITECTURE SIZES. ucts decides to participate in the directory. One reason for not participating is that the companies are selling their processors only to specific customers and are not yet publicly offering those products. Some of the new companies par- ticipating in this year’s directory have recently begun making their processors available to the engineering public. Another type of change occurs when a company acquires another company or another company’s product line. Some of the acquired product lines are no longer available in their current form, such as the MediaQ processors that Nvidia acquired or the Triscend products that Arm acquired.
    [Show full text]
  • Errata Sheet NG For
    16/32-Bit Architecture XC27x5X Derivatives 16/32-Bit Single-Chip Microcontroller with 32-Bit Performance XC2000 Family / Base Line Errata Sheet V1.5 2013-02 Microcontrollers Edition 2013-02 Published by Infineon Technologies AG 81726 Munich, Germany © 2013 Infineon Technologies AG All Rights Reserved. Legal Disclaimer The information given in this document shall in no event be regarded as a guarantee of conditions or characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any information regarding the application of the device, Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights of any third party. Information For further information on technology, delivery terms and conditions and prices, please contact the nearest Infineon Technologies Office (www.infineon.com). Warnings Due to technical requirements, components may contain dangerous substances. For information on the types in question, please contact the nearest Infineon Technologies Office. Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
    [Show full text]
  • 2010 China ATV Symposium
    Introduction of Infineon Microcontroller 2010 China ATV Symposium Copyright © Infineon Technologies 2010. All rights reserved. Infineon Technologies Microcontroller Product Families TC2xx system today x TriCore 2 Architecture performance TC17x TC12xx ≤ 90nm (concept) x TC13xx 32 bit TriCore 1 Future 90nm (concept) TC17x TC11x x TC12xxx TC13xx TriCore 1 Next Generation TC19x 0.13µ m TC11xx 16/32 bit TC17xx TriCore 1 Architecture x 0.25µ m/0.18µ m XC2xxx Architecture XC22x 0.13µm XC16 XC16 XC23x XC16x Architecture 1 7 0.22µ m C16 XC16 XC27 7 4 x C16 C165 8 bit 1 C166 Architecture C164 0.5µ m / 0.45µ m XC85 C8x x 8 bit µ Cs C5x x XC86 0.8µ m ... 0.22µ m x x Same colour indicates same application field time Copyright © Infineon Technologies 2010. All rights reserved. XC800 A-Series: Perfect Fit for Automotive Applications Body Safety Powertrain Motorcycle BCM Low-end airbag Pumps Low-end BCM/HVAC Low end ABS 1-channel Valve/Throttle control Lighting EHPS Motorcycle Engine Window lift Steering angle sensor Management Switches Fail safe controller Shift-by-wire Sensors ebike Power operating systems Touch control Stepper gauges 10.02.2010 Copyright © Infineon Technologies 2010. All rights reserved. Page 3 How does XC800 differentiate? Text • Powerful and flexible Capture and Compare Unit (CCU6) for PWM generation, High Performance • Highly accurate and fast ADC conversion time <1,5µs • IFX offer up to Ta 150°C, working on offering even higher temperature Make The Difference • IFX offer high current pads up to 50mA to driver stepper gauges • Reduction of external components: Save System Cost • Single power supply • High integration (MC + Power + Passive Components) possible due to powerful peripherals ) Cost savings • Multifunctional Interface & advanced Networking Capabilities: UART, SSC (SPI), Be Flexible LIN, CAN (special features of MultiCAN (LBM, CALM, Gateway), could be used for driver development without additional hardware (LBM), CAN bus analysis (CALM) and automatic gateway-ing e.g.
    [Show full text]
  • The Insider's Guide to Planning 166 Family Designs
    Issue B Frequency (MHz) Frequency Rx2 (Ohm) Rx2 CX1 (pF) CX1 CX2 (pF) CX2 CL (pF) CL C0typ (pF) C0typ R1typ (Ohm) R1typ R1max (Ohm) R1max R1max (TK) (Ohm) R1max Pw (uW) Pw Rqmax (Ohm) Rqmax Safety Factor (SF) Factor Safety 40 0 12 15 13 7 10 50 60 420 300 2.11 32 0 12 15 11 5 15 50 60 520 390 3.07 24 180 15 22 12 5 15 50 60 510 390 3.24 20 390 8.2 39 10 4 20 60 80 375 560 3.57 18 390 12 39 14 4 20 60 80 335 540 4.08 16 390 12 47 13 4 20 60 80 353 580 4.24 12 390 15 47 13 4 30 70 90 312 1000 6.50 10 390 15 47 14 3 30 80 100 216 1200 8.14 8 390 15 47 15 3 35 80 100 372 1800 12.50 6 390 15 47 14 3 35 80 140 100 2200 10.66 5 390 22 47 18 3 35 80 140 110 2700 14.17 4 390 22 47 16 4 20 80 150 46 3300 14.08 166 Decoupling capacitor on reverse of board CB Vcc Vss XTAL1 XTAL2 RX CX1 CX2 = Connections to Crystal ground layer { time_for_60_degreesThe = CC15 - time_las Insiders Guide To CC0 = CC15 + (Injector_Firing _Angle time_last_60 = CC15 ; } CC15 Interrupt, cylinder 0 Injector Firing Angle 0 0 Injector 3 6 Opening Time Planning 166 5 7 1 CC0 Interrupt, 11 cylinder 0 injector { CC0 += Inje CC3 Interrupt, 10 8 cylinder 3 injector 4 2 Family Designs jector_Pulse_Width ; } Injector 0 Opening Time 9 3 Injector Firing Angle 3 CC15 Interrupt, cylinder 3 { time_for_60_degrees = CC15 - time_last_6 CC3 = CC15 + (Injector_Firing _Angle * t time_last_60 = CC15 ; } VAREF Analog Voltage Varef input Reference Internal capacitance Resistance Analog Voltage ~ Reference GND Optional Over-Voltage Protection Resistor AN0 Rap Signal Source Internal A/D Convertor Resistance Sample & Hold Capacitor A/D Convertor Analog Signal ~ Voltage Source VAGND 167 GND 166 Designers Guide - Page 1 This guide contains basic information that is useful when doing your first 166 family design.
    [Show full text]
  • Infineon MCU Motor Drive Application
    Infineon MCU Motor Drive Application e-Seminar April 2011 Agenda BLDC Motor Drive & MCU Rules Infineon MCU Key Features for Motor Drive Reference Solutions & Application Kits Summary Copyright © Infineon Technologies 2011. All rights reserved. Page 2 BLDC Motor Drive & MCU Rules BLDC Motor Applications Copyright © Infineon Technologies 2011. All rights reserved. Page 3 BLDC Motor Drive & MCU Rules Addressing the Market Trends and Needs Load Control MCU Application Behaviour Scheme Feature Highest XE166 GP inverter, dynamic load Direct Elevator, respone, Torque Spindle drive, accurate • 16bit positioning, • MAC unit Transportation high speed Resolver • 2 x ADC Assembly Lines FOC • 4 x CCU6 PLC, Servo, CNC machine Dynamic load Encoder response FOC Air-con Zero speed Sensorless compressor, high control performance pump FOC HVAC fan, Sensorless domestic heating low noise, FOC XC800 pumps, valve variable load, variable speed control • 8bit Sinusoidal • MDU+Cordic • 1 x CCU6 Hall consumer fan, • 1 x ADC pump, eBike, variable speed, Sensorless simple sewing known load dynamics (look Block machine up table) Commutation Copyright © Infineon Technologies 2011. All rights reserved. Page 4 BLDC Motor Drive & MCU Rules BLDC Motor Type Copyright © Infineon Technologies 2011. All rights reserved. Page 5 BLDC Motor Drive & MCU Rules BLDC Driver Key Design Issues Sensor or Sensorless 6-Step or Vector Control Shoot through current Current Measurement MOSFET/IGBT Protection Current and Voltage Rating EMI Copyright © Infineon Technologies 2011. All rights reserved. Page 6 BLDC Motor Drive & MCU Rules Motor Driver Block Diagram Power Circuit Bridge Driver 3 Phase Motor Position Sensor Transceiver Motor Current Signal Conditioning Microcontroller Copyright © Infineon Technologies 2011.
    [Show full text]
  • Datasheet CAN Driver Source Code
    Source Code CAN Driver Source Code - CANpie FD CAN driver for embedded applications The driver CANpie FD (Controller Area Network Program- ming Interface Environment) provides a standarized API for software engineering of CAN-based applications. The driver forms the basis for higher-layer protocols (CANopen / DeviceNet / J1939) and is available for a wide range of microcontroller platforms. Scalability and modu- lar design of the CANpie drivers facilitate implementation into individual target systems. Features • Modular design, scalable, easy to implement • Optimized for low resources (ROM / RAM) User Functions • Wide range of supported CAN controllers • Support of standard and extended frames (11-bit / 29-bit identifier) Core Functions Receive Transmit • Data flow by polling or interrupt driven FIFO FIFO • Supports virtual mailboxes Mailbox Access Filter Receive Transmit IRQ CAN hardware MicroControl GmbH & Co. KG · Junkersring 23 · 53844 Troisdorf · Germany · Fon +49 (0) 2241 256 59 - 0 · Fax +49 (0) 2241 256 59 - 11 · [email protected] I/O Module Steuerungen Protokollstacks Dienstleistungen www.microcontrol.net Technical Data CAN driver source code - CANpie FD Identifier • Standard Frame (11-bit) • Extended Frame (29-bit) Formats • Data Frame • Remote Frame • Error Frame (Receive) Monitoring of fault conditions • ACK (depending on controller) • Bit Error • Format Error • CRC Error • Stuff Error Dataflow • Interrupt • Polling Special Features • Mailbox access • Software Filter Order Number Description / CAN Controller 50.10.079
    [Show full text]
  • Strategic Partnership with Chip Manufacturers
    What’s new at Embedded Systems Conference 2007 Strategic Partnership with Chip Manufacturers When the first microcontrollers with on-chip de- Internationa committees bugging interface appeared on the market, the first PowerView debug solutions offered were relatively simple com- Many customers would like to see a higher level pared to the prevailing in-circuit emulators. It soon of standardization of the on-chip debug and trace became clear that pure debuggers without trigger logic as well as a reduction in pincount without any and trace options were not adequate for developing performance loss. In order to take an active role PowerDebug complex embedded designs efficiently. The scope in the development of innovative debug and trace of on-chip debugging and trace interfaces has been technologies, Lauterbach has been participating enlarged gradually, enabling very complex test and in various international committees over the past PowerTrace analysis functions with today’s development tools. years: • Lauterbach has been a member of the Nexus 5001™ Forum ever since its foundation and was first to market with tools conforming to the PowerProbe NEXUS specification. • In the Test & Debug Working Group of the MIPI Alliance, Lauterbach has been involved in the Power- definition of interfaces as well as corresponding Integrator test and debug tools for mobile phones. • Lauterbach has been an active member of the IEEE P1149.7 Working Group for the definition of new JTAG standards ever since its foundation. In 2006 Lauterbach was able to significantly staff up its engineering departments, further strength- ening its leadership position in high performance development tools for a wide range of processor architectures.
    [Show full text]