Development of a Multi-Bus Platform for Automation Testbed

Total Page:16

File Type:pdf, Size:1020Kb

Development of a Multi-Bus Platform for Automation Testbed A Master Thesis Work in Electronics Development of a Multi‐bus platform for automation testbed By Lukas Knapik and Mathias Isaksson Examiner: Professor Lars Asplund, Mälardalens University Supervisor: Martin Ekström, PhD Student in Electronics, Mälardalen University Dan Olsson, M.SC Physics, Infotiv AB Lukas Knapik Mathias Isaksson 070‐7124691 073‐8079350 [email protected] [email protected] Mälardalen University, Västerås 2010‐02‐17 Development of a Multi‐bus platform for automation testbed Master Thesis CEL505 ABSTRACT The task for this thesis was to develop, construct and evaluate a multi‐bus communication system, connected to a PC via USB and capable of communicating in CAN, I2C and SPI and develop drivers for it in National Instruments LabVIEW. In the beginning a study was made of the communication buses followed by an investigation of what type of hardware that could accomplish this task. A microcontroller unit was selected and programmed in MikroElektronika MikroC Pro v.3.2 to act as the interface between the communication busses and PC. A PCB prototype of the system was constructed by using Eagle Cad software v.5.6.0. General drivers for this system where created in LabVIEW v.8.6.1 so the end‐user simply can create their own applications and control the compatible hardware depending on their type of purposes. The system was tested on criteria’s such as: speed, power consumption, burst performance and transmission length depending on which communication bus was used. Lukas Knapik, Mathias Isaksson Mälardalen University, Västerås 2010‐02‐17 Development of a Multi‐bus platform for automation testbed Master Thesis CEL505 ACKNOWLEDGEMENTS We would like to thank Infotiv AB for giving us the opportunity to do this thesis. A special thanks to our supervisors Martin Ekström at Mälardalens University and Dan Olsson at Infotiv AB for all their help and time they have dedicated to us. Lukas Knapik, Mathias Isaksson Mälardalen University, Västerås 2010‐02‐17 Development of a Multi‐bus platform for automation testbed Master Thesis CEL505 Table of Contents 1. Introduction ................................................................................................................................ 1 1.1 Infotiv AB ....................................................................................................................................................... 1 1.2 Background .................................................................................................................................................... 1 1.3 Purpose .......................................................................................................................................................... 1 1.4 Why Infotiv and this thesis ............................................................................................................................ 1 1.5 Delimitations ................................................................................................................................................. 2 1.6 Deliverables to Infotiv ................................................................................................................................... 2 1.7 University Requirements ............................................................................................................................... 2 1.8 Timetable ....................................................................................................................................................... 2 1.9 The report layout ........................................................................................................................................... 3 2. Bus study and research ................................................................................................................ 4 2.1 The Inter‐Integrated Circuit Bus .................................................................................................................... 4 2.1.1 Arbitration ................................................................................................................................................ 6 2.1.2 Clock synchronization ............................................................................................................................... 7 2.2 The Control Area Network bus ...................................................................................................................... 7 2.2.1 The CAN protocol ..................................................................................................................................... 7 2.2.2 CAN messages .......................................................................................................................................... 8 2.2.3 CAN Errors .............................................................................................................................................. 11 2.3 The Serial Peripheral Interface Bus ............................................................................................................. 13 2.3.1 Data Transmission .................................................................................................................................. 13 2.3.2 Multiple SPI slaves .................................................................................................................................. 14 2.3.3 SPI drawbacks ......................................................................................................................................... 15 3. Pre‐design circuitry considerations ............................................................................................ 17 3.1 Selecting an appropriate operations controller .......................................................................................... 17 3.2 Selecting an appropriate ADC ...................................................................................................................... 17 3.3 Power supply ............................................................................................................................................... 18 3.4 Selecting ground .......................................................................................................................................... 18 3.5 Protection against high voltage peaks ......................................................................................................... 18 3.6 Diagnostics ................................................................................................................................................... 18 3.7 Bus connectors ............................................................................................................................................ 18 3.8 Schematics and PCB software ..................................................................................................................... 19 4. Circuitry components and design ............................................................................................... 20 4.1 Converter card components ........................................................................................................................ 20 4.1.1 Microcontroller – Microchip PIC18F4680 ............................................................................................... 20 4.1.2 USB UART Interface – FTDI FT232 .......................................................................................................... 21 4.1.3 I2C Switch – Texas Instruments PCA9548A ............................................................................................. 21 4.1.4 I2C Accelerator – Linear Technologies LTC4311 ..................................................................................... 21 4.1.5 CAN Transceiver MCP2550 ..................................................................................................................... 22 4.1.6 Voltage Regulator REG1117‐5.0 ............................................................................................................. 22 4.1.7 TVS Diodes .............................................................................................................................................. 22 4.2 Converter card design ................................................................................................................................. 23 4.2.1 Power supply and ground ....................................................................................................................... 23 4.2.2 Setting up the FTDI circuitry ................................................................................................................... 24 4.2.3 Setting up the MCU circuitry .................................................................................................................. 24 4.2.4 I2C Switch Setup ...................................................................................................................................... 25 4.2.5 I2C Accelerator setup .............................................................................................................................. 26 4.2.6 SPI setup ................................................................................................................................................. 26 4.2.7 CAN setup ............................................................................................................................................... 27 4.2.8
Recommended publications
  • Project Management © Adrienne Watt
    Project Management © Adrienne Watt This work is licensed under a Creative Commons-ShareAlike 4.0 International License Original source: The Saylor Foundation http://open.bccampus.ca/find-open-textbooks/?uuid=8678fbae-6724-454c-a796-3c666 7d826be&contributor=&keyword=&subject= Contents Introduction ...................................................................................................................1 Preface ............................................................................................................................2 About the Book ..............................................................................................................3 Chapter 1 Project Management: Past and Present ....................................................5 1.1 Careers Using Project Management Skills ......................................................................5 1.2 Business Owners ...............................................................................................................5 Example: Restaurant Owner/Manager ..........................................................................6 1.2.1 Outsourcing Services ..............................................................................................7 Example: Construction Managers ..........................................................................8 1.3 Creative Services ................................................................................................................9 Example: Graphic Artists ...............................................................................................10
    [Show full text]
  • USB Software Package for Infiniivision X-Series Oscilloscopes
    USB Software Package for InfiniiVision X-Series Oscilloscopes The USB Software Package for Keysight’s InfiniiVision oscilloscopes enables USB 2.0 low-, full-, and hi-speed protocol triggering and decode, as well as USB PD (Power Delivery) trigger and decode. This package also enables other advanced analysis capabilities including USB 2.0 automated signal quality testing, jitter analysis, mask testing, and frequency response analysis (Bode plots) to help test and debug high-speed digital signals, such as USB 2.0. Find us at www.keysight.com Page 1 Table of Contents Introduction ................................................................................................................................................................ 3 Serial Trigger and Decode ......................................................................................................................................... 4 USB 2.0 Low- and Full-speed .................................................................................................................................... 4 USB 2.0 Hi Speed ...................................................................................................................................................... 6 USB PD (Power Delivery) .......................................................................................................................................... 7 Advanced Analysis ...................................................................................................................................................
    [Show full text]
  • Computer Organization and Architecture Designing for Performance Ninth Edition
    COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCE NINTH EDITION William Stallings Boston Columbus Indianapolis New York San Francisco Upper Saddle River Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montréal Toronto Delhi Mexico City São Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo Editorial Director: Marcia Horton Designer: Bruce Kenselaar Executive Editor: Tracy Dunkelberger Manager, Visual Research: Karen Sanatar Associate Editor: Carole Snyder Manager, Rights and Permissions: Mike Joyce Director of Marketing: Patrice Jones Text Permission Coordinator: Jen Roach Marketing Manager: Yez Alayan Cover Art: Charles Bowman/Robert Harding Marketing Coordinator: Kathryn Ferranti Lead Media Project Manager: Daniel Sandin Marketing Assistant: Emma Snider Full-Service Project Management: Shiny Rajesh/ Director of Production: Vince O’Brien Integra Software Services Pvt. Ltd. Managing Editor: Jeff Holcomb Composition: Integra Software Services Pvt. Ltd. Production Project Manager: Kayla Smith-Tarbox Printer/Binder: Edward Brothers Production Editor: Pat Brown Cover Printer: Lehigh-Phoenix Color/Hagerstown Manufacturing Buyer: Pat Brown Text Font: Times Ten-Roman Creative Director: Jayne Conte Credits: Figure 2.14: reprinted with permission from The Computer Language Company, Inc. Figure 17.10: Buyya, Rajkumar, High-Performance Cluster Computing: Architectures and Systems, Vol I, 1st edition, ©1999. Reprinted and Electronically reproduced by permission of Pearson Education, Inc. Upper Saddle River, New Jersey, Figure 17.11: Reprinted with permission from Ethernet Alliance. Credits and acknowledgments borrowed from other sources and reproduced, with permission, in this textbook appear on the appropriate page within text. Copyright © 2013, 2010, 2006 by Pearson Education, Inc., publishing as Prentice Hall. All rights reserved. Manufactured in the United States of America.
    [Show full text]
  • 单端模拟输入/输出和 S/Pdif的立体声音频编解码器 查询样品: Pcm2906c
    PCM2906C www.ti.com.cn ZHCS074 –NOVEMBER 2011 具有USB 接口、单端模拟输入/输出和 S/PDIF的立体声音频编解码器 查询样品: PCM2906C 1特性 • 立体声 DAC: 上的模拟性能 234• 片载 USB 接口: – VBUS = 5V: – 具有全速收发器 – THD+N = 0.005% – 完全符合 USB 2.0 规范 – SNR = 96 dB – 由 USB-IF 认证 – 动态范围 = 93 dB – 用于回放的 USB 自适应模式 – 过采样数字滤波器: – 用于记录的 USB 异步模式 – 通频带纹波 = ±0.1 dB – 总线供电 – 阻带衰减 = –43 dB • 16 位 Δ-Σ ADC 和 DAC – 单端电压输出 • 采样速率: – 包含模拟 LPF – DAC: 32,44.1,48 kHz • 多功能: – ADC: – 人机接口 (HID) 功能: 8,11.025,16,22.05,32,44.1,48 kHz – 音量控制和静音 • 具有单个 12-MHz 时钟源的片载时钟发生器 – 终止标识功能 • S/PDIF 输入/输出 • 28-引脚 SSOP 封装 • 单电源: 应用 – 5 V 典型值 (VBUS) • 立体声 ADC: • USB 音频扬声器 • USB 耳机 – VBUS 时的模拟性能 = 5V: – THD+N = 0.01% • USB 显示器 – SNR = 89 dB • USB 音频接口盒 动态范围 – = 89 dB 说明 – 数字抽取滤波器: PCM2906C 是德州仪器的含有一个USB兼容全速协议 – 通频带纹波 = ±0.05 dB 控制器和S/PDIF的单片,USB,立体声编码器。 USB – 阻带衰减 = –65 dB 协议控制器无需软件编码。 PCM2906C 采用 SpAct™ – 单端电压输入 架构,这是 TI 用于从 USB 数据包数据恢复音频时钟 – 包含抗混淆滤波器 的独特系统。 采用SpAct 的片载模拟PLL支持具有低 – 包含数字 HPF 时钟抖动以及独立回放和录音采样率的回放和录音。 1 Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. 2SpAct is a trademark of Texas Instruments. 3System Two, Audio Precision are trademarks of Audio Precision, Inc. 4All other trademarks are the property of their respective owners. PRODUCTION DATA information is current as of publication date. Copyright © 2011, Texas Instruments Incorporated Products conform to specifications per the terms of the Texas Instruments standard warranty. Production processing does not English Data Sheet: SBFS037 necessarily include testing of all parameters.
    [Show full text]
  • SCSI Standards and Technology Update © 2013 Storage Networking Industry Association
    SCSIPRESENTATION Standards TITLE and GOES Technology HERE Update Marty Czekalski President, SCSI Trade Association Interface and Emerging Architecture Program Manager - Seagate Technology SNIA Legal Notice The material contained in this tutorial is copyrighted by the SNIA unless otherwise noted. Member companies and individual members may use this material in presentations and literature under the following conditions: Any slide or slides used must be reproduced in their entirety without modification The SNIA must be acknowledged as the source of any material used in the body of any document containing material from these presentations. This presentation is a project of the SNIA Education Committee. Neither the author nor the presenter is an attorney and nothing in this presentation is intended to be, or should be construed as legal advice or an opinion of counsel. If you need legal advice or a legal opinion please contact your attorney. The information presented herein represents the author's personal opinion and current understanding of the relevant issues involved. The author, the presenter, and the SNIA do not assume any responsibility or liability for damages arising out of any reliance on or use of this information. NO WARRANTIES, EXPRESS OR IMPLIED. USE AT YOUR OWN RISK. 2 SCSI Standards and Technology Update © 2013 Storage Networking Industry Association. All Rights Reserved. 2 Abstract SCSI Standards and Technology Update SCSI continues to be the backbone of enterprise storage deployments and has rapidly evolved by adding new features, capabilities, and performance enhancements. This talk will include an up-to-the-minute recap of the latest additions to the SAS standard and roadmaps.
    [Show full text]
  • Implementing Concurrent Engineering and QFD Method to Achieve Realization of Sustainable Project
    sustainability Article Implementing Concurrent Engineering and QFD Method to Achieve Realization of Sustainable Project Lidija Rihar and Janez Kušar * Faculty of Mechanical Engineering, University of Ljubljana, SI-1000 Ljubljana, Slovenia; [email protected] * Correspondence: [email protected] Abstract: In this paper, we present the impact of concurrent engineering strategies, methods, and tools on product sustainability. Concurrent engineering can be used to achieve the primary goals of a product realization project: lower costs, shorter times, high quality, and increasing value. Currently, it is important that new products also meet product sustainability goals, such as economic, environmental, and social goals. The sustainability of a product can be influenced the most in the early stages of product development, so in this paper, we present a customized quality function deployment (QFD) method called the house of sustainability, which translates sustainability requirements into technical solutions for a product. A seven-step process for implementing a sustainable product realization project is also proposed, in which the house of sustainability is one of the most important tools. The proposed process is illustrated with an example of a concurrent product realization project in engineering to order production. Keywords: concurrent engineering; product sustainability; production sustainability; new product development; QFD Citation: Rihar, L.; Kušar, J. 1. Introduction Implementing Concurrent Sustainability has lately become one of the key features of new products. Sustainabil- Engineering and QFD Method to ity implies product properties that characterize it from the idea, through development, Achieve Realization of Sustainable production, use, and maintenance, to the end of the life of the product (disposal).
    [Show full text]
  • Funbox Classic (FBC)
    FunBox Classic (FBC) Group 14 Stephen Caskey (EE & CS) Anna Iskender (EE) Nick Johnson (EE) Kyle McCleary (EE & CS) Goals and Objectives u Accurately simulate old consoles u Rechargeable battery from USB u Emulate GB, GBC, GBA, NES, and SNES at native speed u Games upload through USB u Audio through speakers or headphones u Controller feels like a SNES controller u Sturdy housing u Built-in Bluetooth u Solar Charging u Battery Life Indicator Specifications Component Parameter Design Specificaon Screen Size Between 3.5" and 6" Screen Refresh Rate 50Hz (PAL) Bluetooth Version 4.0 LE or higher Storage Type MicroSD Size Minimum 16 GB Headphones Connector 3.5mm jack Speakers Power 1W Impedance Minimum 8 ohms Power Max Current Draw 700 mA Solar Charge Current Minimum 100 mA Charging Voltage 5V Baery Capacity Minimum 2100 mAh Discharge Time Minimum 2 hours Work Distribution Group Member Case Raspberry Pi PCB Bluetooth Solar Baery Power Audio Website Stephen Primary Secondary Secondary Secondary Kyle Secondary Primary Secondary Primary Nick Primary Primary Anna Primary Primary Primary Constraints u Economic constraints Ø Financing/shipping from ordering many individual components u Manufacturing constraints Ø Acquisition of needed parts and manufacturing supplies u Size constraints Ø Surface mounted components and case design parameters u Sustainable energy constraints Ø Power supply and battery charging challenges Standards Identification Standard Description Number SMPTE-170M-1990 Standard for analog television system color bar test system IEEE
    [Show full text]
  • Microcomputers: NQS PUBLICATIONS Introduction to Features and Uses
    of Commerce Computer Science National Bureau and Technology of Standards NBS Special Publication 500-110 Microcomputers: NQS PUBLICATIONS Introduction to Features and Uses QO IGf) .U57 500-110 NATIONAL BUREAU OF STANDARDS The National Bureau of Standards' was established by an act ot Congress on March 3, 1901. The Bureau's overall goal is to strengthen and advance the Nation's science and technology and facilitate their effective application for public benefit. To this end, the Bureau conducts research and provides; (1) a basis for the Nation's physical measurement system, (2) scientific and technological services for industry and government, (3) a technical basis for equity in trade, and (4) technical services to promote public safety. The Bureau's technical work is per- formed by the National Measurement Laboratory, the National Engineering Laboratory, and the Institute for Computer Sciences and Technology. THE NATIONAL MEASUREMENT LABORATORY provides the national system of physical and chemical and materials measurement; coordinates the system with measurement systems of other nations and furnishes essential services leading to accurate and uniform physical and chemical measurement throughout the Nation's scientific community, industry, and commerce; conducts materials research leading to improved methods of measurement, standards, and data on the properties of materials needed by industry, commerce, educational institutions, and Government; provides advisory and research services to other Government agencies; develops, produces, and
    [Show full text]
  • S-Video/Composite to USB 2.0 SD Video Capture Device Cable - TWAIN Support - Analog to Digital Converter for Media Storage - Windows Only
    USB Video Capture Adapter Cable - S-Video/Composite to USB 2.0 SD Video Capture Device Cable - TWAIN Support - Analog to Digital Converter for Media Storage - Windows Only Product ID: SVID2USB232 This USB video capture adapter offers an easy to use analog video capture solution, enabling you to convert video (and accompanying audio) from a composite or S Video source to your Windows-based computer. An easy-to-use device for recording analog video to your PC from external sources, such as a VCR or camcorder, the S Video and composite to USB converter offers the perfect solution for Betamax or VHS video capture, with real-time MPEG-1, MPEG-2, and MPEG-4 encoding. This analog to digital video adapter is ideal for converting VHS or home movies to digital format, as well as importing videos onto your Windows computer for editing. It also features a snapshot function that enables users to capture still images from their analog video. This analog video capture cable delivers seamless analog video capture for your Windows devices. As well, the S Video / composite to USB adapter has TWAIN support, to ensure compatibility with a wide range of systems and software. This analog to digital converter cable connects to your PC through USB 2.0 and is compact enough to fit in the palm of your hand, providing a conveniently portable video capture solution that©s more than suitable for use with laptops and desktop computers alike. SVID2USB232 is backed by a StarTech.com 2-year warranty and free lifetime technical support. Note: This converter is for use with Windows-based devices only and is not compatible with macOS.
    [Show full text]
  • DAVID J. ERICKSON 6 Oak Drive Topsfield, MA 01983 978-887-0125 [email protected]
    DAVID J. ERICKSON 6 Oak Drive Topsfield, MA 01983 978-887-0125 [email protected] Objective: To develop successful products from concept to production using my skills in analog, digital and firmware design engineering, team and project management Management: Hands-on Engineering Management, Hardware Engineering and Project Management Education: B.S.E.E., 1976 Worcester Polytechnic Institute, Worcester, MA Design Analog processing including video, PLL, A/D, D/A, video timing, Specialties: video analog and digital LSI, graphics LCDs. Digital circuitry: Image memory (DRAM), multiport memory, pipelined image processors, bus interfaces, state machine, digital components used: PALs, DRAMs, SRAMs, PROMs, ASICs, TTL, ECL, PGAs (Xilinx, Actel, Altera), DSP blocks, FIFOs bit slice, VLSI. Instrument design for chemical and ATE industries. Medical (patient monitoring and display) electronics. Sensor interfacing, power supplies, low power design. Microprocessor hardware and firmware design, C and assembler: AVR, Z80 and 68hc11. Audio processing and control, amplifiers, test equipment. Marine and weather electronics. Troubleshooting all types of problems. Bus interfacing to MicroBus, VME/VXI, PC/AT, Multibus, Q-Bus LabView Experience: STH Company (Consultant, part time) Wayland, MA 4/02 - 9/02 Hardware and firmware design of Colorimeter Instrument complete redesign. Product development from specification to final release. Instrument uses an AVR microprocessor to implement a complete optical / chemical measurement instrument. Implemented complex acquisition timing, math, communications, display and serial interface, menu system. Development cost and product cost goals were met. Analogic Corp., Peabody, MA 1/98 to 6/02 Chief Engineer, Test and Measurement Division Directed the engineering department of the division that was the leading 3rd party supplier of mixed-signal instruments to the ATE industry.
    [Show full text]
  • C++ Overview Building a Project Integrated Development Environments Submission Instructions
    Outline Task List C++ Overview Building a Project Integrated Development Environments Submission Instructions CPSC 427: Object-Oriented Programming Michael J. Fischer Lecture 2 September 2, 2016 CPSC 427, Lecture 2 1/38 Outline Task List C++ Overview Building a Project Integrated Development Environments Submission Instructions Task List C++ Overview C++ Language Design Goals Comparison of C and C++ Building a Project C/C++ Compilation Model Project management A sample project Integrated Development Environments Submission Instructions CPSC 427, Lecture 2 2/38 Outline Task List C++ Overview Building a Project Integrated Development Environments Submission Instructions Tasks for this week I Sign up for a Zoo account and a CPSC 427 course account. I Read Chapters 1{3 of Exploring C++. I Do problem set 1. CPSC 427, Lecture 2 3/38 Outline Task List C++ Overview Building a Project Integrated Development Environments Submission Instructions C++ Overview CPSC 427, Lecture 2 4/38 Outline Task List C++ Overview Building a Project Integrated Development Environments Submission Instructions C++ Language Design Goals Why did C need a ++? Chapter 2 of Exploring C++ 1. C was designed and constructed a long time ago (1971) as a language for writing Unix. 2. The importance of data modeling was very poorly understood at that time. 3. Data types were real, integer, character, and array, of various sizes and precisions. 4. It was important for C to be powerful and flexible but not to have clean semantics. 5. Nobody talked about portability and code re-use. Today, we demand much more from a language. CPSC 427, Lecture 2 5/38 Outline Task List C++ Overview Building a Project Integrated Development Environments Submission Instructions C++ Language Design Goals C++ was Designed for Modeling Design goals for C++ (Bjarne Stroustrup) 1.
    [Show full text]
  • Project Risk Management PROJECT MANAGEMENT for DEVELOPMENT ORGANIZATIONS Project Risk Management
    pm4dev, 2019 –management for development series © Project Risk Management PROJECT MANAGEMENT FOR DEVELOPMENT ORGANIZATIONS Project Risk Management PROJECT MANAGEMENT FOR DEVELOPMENT ORGANIZATIONS A methodology to manage development projects for international humanitarian assistance and relief organizations © PM4DEV 2019 Our eBook is provided free of charge on the condition that it is not copied, modified, published, sold, re-branded, hired out or otherwise distributed for commercial purposes. Please give appropriate citation credit to the authors and to PM4DEV. Feel free to distribute this eBook to any one you like, including peers, managers, and organizations to assist in their project management activities. www.pm4dev.com Project Risk Management Risk Management Risk management deals with the processes to identify, analyze and respond to risk throughout the project life cycle, with the goal to ensure the project will be able to reach its objectives. Risk management also helps the project by determining the right scope, making realistic schedules and better cost estimates that take in account provisions to respond to risk events. Risk management also helps project stakeholders understand the true nature of the project, identify its weaknesses, threats, strengths, and opportunities. The main purpose of risk management is to build an understanding of the potential problems that might occur on the project and how they might impede project success, by developing strategies to reduce the impact of potentially adverse events on the project. Risk management is an investment the project is willing to make to reduce the impact to the project. There are costs associated with risk management and these costs should not exceed the potential benefits.
    [Show full text]