Download Microcontrollers and Single Board Computers: A Comparative Analysis - Prof. Stephen Kuyath and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity! Computer Automation Techniques Arthur Carroll 1 Three Types of Computers • Micro-Controller • Single Board Computer • Desktop Computer 2 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 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 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 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
Desktop AVR
i and relay
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
Integers
Integers / strings
a
27