Computer Automation Techniques. Arthur Carroll



Similar documents
A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

WinCon Programmable Automation. Controller

Development of an Internet based Embedded System for Smart House Controlling and Monitoring

Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade!

Eddy Integrated Development Environment, LemonIDE for Embedded Software System Development

IOVU-571N ARM-based Panel PC

GPS & GSM BASED REAL-TIME VEHICLE TRACKING SYSTEM.

ONLINE HEALTH MONITORING SYSTEM USING ZIGBEE

IT-AMS. Course Overview. Applied Microcontroller Systems (5 ECTS, Q3, E/IKT/EP) Version: , Henning Hargaard

Cypress Semiconductor: Arduino Friendly PSoC Shield

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Accurate Measurement of the Mains Electricity Frequency

AC-PG-USBASP USBASP AVR Programmer

Android, Bluetooth and MIAC

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Terminal Server Software and Hardware Requirements. Terminal Server. Software and Hardware Requirements. Datacolor Match Pigment Datacolor Tools

Comparing Free Virtualization Products

Prototyping Connected-Devices for the Internet of Things. Angus Wong

CPSC 226 Lab Nine Fall 2015

FLEET MANAGEMENT & CAR SECURITY SYSTEM GPRS/GPS

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

Current Cost Data Cable User Guide. Installing and configuring the data cable

Overview. Alarm console supports simultaneous viewing of both live and recorded video when alarm events are selected

An Introduction to MPLAB Integrated Development Environment

Overview. 1. GPS data tracking via GSM SMS / GPRS. 2. GPS data logging in internal memory. 3. Alarm alert via GSM SMS / Dialing / GPRS

SBC8100 Single Board Computer

Embedded Display Module EDM6070

Microcontrollers and Sensors. Scott Gilliland - zeroping@gmail

DESIGN OF SMS ENABLED CAR SECURITY SYSTEM

NEW GENERATION PROGRAMMABLE AUTOMATION CONTROLLER

2.0 Command and Data Handling Subsystem

Industry First X86-based Single Board Computer JaguarBoard Released

Introducción. Diseño de sistemas digitales.1

SIP Protocol as a Communication Bus to Control Embedded Devices

Notes and terms of conditions. Vendor shall note the following terms and conditions/ information before they submit their quote.

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN

TELE-SAFE HOME SECURITY SYSTEM

Passion for Innovation

STLinux Software development environment

Page 1 / 14 Groupe MOBILITECHMIOSBOX Technical Specification MWP-DT1010. Technical specifications

An Approach to Develop Embedded System For Web Based Monitoring & Controlling of Renewable Energy Sources

Yamaha 01V96 Version2 Upgrade Guide

DCS Data and communication server

Example Connection between USB Host and Android

Fondamenti su strumenti di sviluppo per microcontrollori PIC

2-Port RS232/422/485 Combo Serial to USB2.0 Adapter (w/ Metal Case and Screw Lock Mechanism) Installation Guide

EDI Distributor Control Interface Wiring and Setup Instructions

After studying this lesson, you will have a clear understanding of, what an Operating System is. functions of an Operating System

Chapter 5 Cubix XP4 Blade Server

PhidgetInterfaceKit 8/8/8

Controlling a Dot Matrix LED Display with a Microcontroller

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

Lab Experiment 1: The LPC 2148 Education Board

Serial Communications

Machine-to-Machine Management System. Datasheet. Models: mport, mport-s, mpower, mpower Mini, mpower Pro, mfi-cs, mfi-ds, mfi-ths, mfi-msc, mfi-msw

Sensor network infrastructure for intelligent building monitoring and management system

Embedded Software development Process and Tools:

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

5100 SERIES 32-CHANNEL SWITCHBOX NVR

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

Development of a GSM based Control System for Electrical Appliances

Vehicle Tracking and Monitoring By ARM7

Rcore Embedded Software Platform

Microtronics technologies Mobile:

WP WinPAC-8x49 Series (WP-8149/8449/8849) is the new generation WinCE based InduSoft PAC (Programmable Automation Controller).

Table of Contents. Pocket Label Gallery White Paper

INTRODUCTION TO SERIAL ARM

Ways to Use USB in Embedded Systems

Monitoring solar PV output

ERIKA Enterprise pre-built Virtual Machine

HyperAccess Access Control System

Chapter 5: System Software: Operating Systems and Utility Programs

KEYTEC, INC. - A global leader of innovative touch interactive solutions since 1987

securityprobe5es -X20

Ultra Thin Client TC-401 TC-402. Users s Guide

About Yazata Business Consulting

AXIS 262+ Network Video Recorder

Infinity 2020 Perimeter Intrusion Detection System

E-Blocks Easy RFID Bundle

Intelligent Home Automation and Security System

Chapter 2 Features of Embedded System

Digital Single Axis Controller

Fall Lecture 1. Operating Systems: Configuration & Use CIS345. Introduction to Operating Systems. Mostafa Z. Ali. mzali@just.edu.

EDK 350 (868 MHz) EDK 350U (902 MHz) EnOcean Developer Kit

DATA/SPEC SHEET VIRTUAL MATRIX DISPLAY CONTROLLER VERSION 8

Complete Integrated Development Platform Copyright Atmel Corporation

PROJECT PRESENTATION ON CELLPHONE OPERATED ROBOTIC ASSISTANT

North America, Inc. AFFICHER. a true cloud digital signage system. Copyright PDC Co.,Ltd. All Rights Reserved.

Embedded Operating Systems in a Point of Sale Environment. White Paper

Bluetooth HC-06 with serial port module Easy guide

PARALLELS SERVER 4 BARE METAL README

Android based Alcohol detection system using Bluetooth technology

New Technology Introduction: Android Studio with PushBot

SBC6245 Single Board Computer

Introducing AVR Dragon

Simplify Data Acquisition with a Built-in LXI Web Server

Transcription:

Computer Automation Techniques Arthur Carroll 1

Three Types of Computers Micro-Controller Single Board Computer Desktop Computer 2

The Micro-Controller Small inexpensive DIP or surface mount chips Roughly 10-100 MHz A complete, stand alone computer on one chip. Common Types: AVR, ARM, PIC Current Industry Leader: Atmel AVR (ARM close second, PIC is fading out) Can be programmed in C code or assembly language Usually programmed using mostly C, and a little assembly for certain functions Can only run one C or assembly program at a time 3

Micro-Controller *Input / Output includes digital I/O, analog in, and serial ports *Clock can also an external crystal, which is more accurate than the internal clock *Flash Memory can be expanded with external chip 4

Micro-Controller Applications Consumer Electronics: Alarm System, MP3 player Automotive: Engine Control Unit, ABS system Medical: Heart Rate Monitor, Robotic arm Military: SAM, small UAV(bomb clearing robot) Many more. 5

Advantage of AVR over logic Multiple assembly lines for different chips One assembly line making the same chip with different programs 6

Microcontroller Programming Environments AVR Paid Industry Standard: Code Vision AVR Free Industry Standard: Win AVR / AVR - GCC ARM Paid Industry Standard: Keil / IAR (tie) Free Industry Standard: ARM - GCC 7

ARM vs AVR ARM usually has a slightly higher clock speed when compared to the equivalent AVR AVR has is easier to use and can supply more current to external devices Not always a clear advantage between one or the other AVR is best to learn with because of simple assembly syntax 8

Common AVRs Attiny 2313/ Atmega8 http://www.sparkfun.com/commerce/product_info.php?products_id=360 Atmega128 http://www.futurlec.com/et-avr_stamp.shtml 9

Future of AVR 10

The Single Board Computer Relatively small Runs fully functioning OS Clock speed 300Mhz 1.2GHz Complete computer on one board Common Types: TS7800, Gumstix No clear leader, relatively new technology Generally programmed exclusively in C / C++ Terminal or basic LCD GUI interface(cell phone) 11

Single Board Computer Layout I/O usually 100+ pins and 2-4 USARTS 12

Single Board Computer Applications Consumer Electronics Helicopter Boeing 747 Luxury Car Manufacturing Plants Military Advanced Mobile Robots(super sonic UAV) Abrams Tank 13

Advantage of SBC over AVR Internet: Remote login, send email, communicate with other computers USB port: control with of the shelf Gamepads (ie. XBOX 360 or Playstation) GPS Keyboard / mouse, virtually anything USB Can run multiple programs at once. Can compile and execute C / C++ code, allowing remote updates. Large library of existing programs ready to deploy, free and paid. 14

Operating Systems Single Board Computers can run a full operating system Windows CE vs Linux Linux is most common, because the Windows license brings up cost Allows multiple programs to run simultaneously Abstracts many functions you would otherwise have to write( clock, internet protocols, device drivers) 15

Windows CE Not free, no source code available. Not a full version of windows, more limited than XP Excellent DirectX graphics interface. Visual Studio 2008 Support, the best IDE available. Not considered robust, prone to crashing. This is because the OS is written as multiple programs that communicate with each other. X86 family of processors only 16

Linux Free and includes source code. GNU Full desktop version of Linux, can run code written for desktop version Extremely robust, almost never crashes, OS written as one single program Tools not as developed as Windows, but not very far behind Written by volunteer community, and supported by hardware manufactures X86 and ARM processors, ARM usually has higher speed and lower power consumption 17

Debian Linux Most common embedded OS The very popular Ubuntu is based on Debian You can download and install Ubuntu with Wubi like an application from XP. Making it easy to try and learn. Has large library of free software Not as user-friendly, requires more knowledge (but getting better every day) 18

Most Common SBC Model http://gumstix.com/store/catalog/product_info.php?products_id=203 19

Future of SBC 20

Desktops Extremely fast processor and large memory capacity Generally not mobile, but more so lately with invention of solid state hard drive Built in GUI interface, can easily run GUI based programs that interface with the outside world Market Leader: Intel X86 Programmed in any language you choose 21

How to control a lamp with your Desktop 22

Phidgets Off the shelf solution Many expansion boards Easy to use Phidget I/O Board Phidget Relay Board Humidity / Temp sensor expansion board Dimmer switch expansion board 23

Similarities The clock speeds and processor names are constantly changing, but the fundamentals of C / C++ remain the same C / C++ works on every computer, with the exception of device specific code There are many ways to accomplish the same task A lot of overlap between categories You will see that C / C++ for the PC and AVR are exactly the same, in fact, C / C++ is the same for any processor 24

Final Project You will build a phidget and use it to control a smart house The phidget will be similar to the diagram in slide 22 You will write the code for the AVR, then build and demonstrate the circuit 25

Minimum Hardware Requirements Inputs: 8 pins representing Temperature input value in hexadecimal(dip switch), at least one alarm trigger switch, RS-232 port connected to PC Outputs: At least 1 relay output for 120Vac appliances, 8 pins representing Temperature output value in hexadecimal 26

Minimum Software Requirements 27

Phidget Protocol Hyper Terminal 1 = turn relay ON 2 = turn relay OFF 3 = is relay ON 4 = is relay OFF 5 = what is the temp 6 = set the temp AVR Return any value asked for from PC Do any task requested from PC If alarm zone is tripped immediately print message to terminal Periodically print state of all inputs / outputs to terminal Ask for temp if sent 6 28

Controlling the AVR through a terminal emulator You will mainly use the scanf() function to read numbers from the Usart Use Codevision to setup the serial port: 9600 8-N-1 (look it up) Use Putty if you have vista Example of using serial port and scanf() in book http://www.chiark.greenend.org.uk/~sgtatham/putty/

Minimum documentation Flow chart of AVR program C / C++ source code for AVR(compiles in Codevion AVR) Compiled binary of program All files should be zipped into one file(.rar,.tar.gz,.zip ) Physical demonstration to a TA during the week of each due date 30