Design of Vision Embedded Platform with AVR

Similar documents
Embedded System Training Module ABLab Solutions

RF4432 wireless transceiver module

BASCOM-TV. TV Code Features: ICs supported: BASCOM versions:

RF4432F27 wireless transceiver module

An Integrated EMG Data Acquisition System by Using Android app

Pivoting Object Tracking System

Laboratory Exercise 4

Dynamic Animation Cube Group 1 Joseph Clark Michael Alberts Isaiah Walker Arnold Li

of Boundary Scan techniques.

SSRG International Journal of Electronics and Communication Engineering (SSRG-IJECE) Volume 3 Issue 8 August 2016

VGA Controller. Leif Andersen, Daniel Blakemore, Jon Parker University of Utah December 19, VGA Controller Components

Design and Implementation of an AHB VGA Peripheral

Automatic Projector Tilt Compensation System

Design and analysis of microcontroller system using AMBA- Lite bus

Senior Design Project: Blind Transmitter

Sharif University of Technology. SoC: Introduction

Embedded Master Module

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

6.111 Final Project Proposal Kelly Snyder and Rebecca Greene. Abstract

Debugging a Mixed Signal Design with a Tektronix Mixed Signal Oscilloscope

4.3inch 480x272 Touch LCD (B) User Manual

Comparing JTAG, SPI, and I2C

ECE532 Digital System Design Title: Stereoscopic Depth Detection Using Two Cameras. Final Design Report

A Low Cost Embedded Color Vision System

Using an IEEE Test Bus for Fault Diagnosis of Analog Parts of Electronic Embedded Systems. Zbigniew Czaja 1, Bogdan Bartosinski 2

MATLAB & Image Processing (Summer Training Program) 4 Weeks/ 30 Days

8 DIGITAL SIGNAL PROCESSOR IN OPTICAL TOMOGRAPHY SYSTEM

A video signal processor for motioncompensated field-rate upconversion in consumer television

NanoCom ADS-B. Datasheet An ADS-B receiver for space applications

Image Processing Using MATLAB (Summer Training Program) 6 Weeks/ 45 Days PRESENTED BY

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

16 Dec Testing and Programming PCBA s. 1 JTAG Technologies

Design and Implementation of Nios II-based LCD Touch Panel Application System

AbhijeetKhandale. H R Bhagyalakshmi

JTAGcable II In Circuit Emulator for Atmel AVR microcontrollers. User s Guide REV 1.0. Many ideas one solution

Tools to Debug Dead Boards

Low Cost Fault Detector Guided by Permanent Faults at the End of FPGAs Life Cycle Victor Manuel Gonçalves Martins

RAPID SOC PROOF-OF-CONCEPT FOR ZERO COST JEFF MILLER, PRODUCT MARKETING AND STRATEGY, MENTOR GRAPHICS PHIL BURR, SENIOR PRODUCT MANAGER, ARM

Laboratory 4. Figure 1: Serdes Transceiver

3. Configuration and Testing

Publicity around hacking of today's cars OEM s want to prevent software from being copied

Concurrent Programming through the JTAG Interface for MAX Devices

IOT BASED ENERGY METER RATING

BUSES IN COMPUTER ARCHITECTURE

Group 1. C.J. Silver Geoff Jean Will Petty Cody Baxley

Achieving Timing Closure in ALTERA FPGAs

FPGA Laboratory Assignment 4. Due Date: 06/11/2012

18 Nov 2015 Testing and Programming PCBA s. 1 JTAG Technologies

SPI Serial Communication and Nokia 5110 LCD Screen

Prototype Model of Li-Fi Technology using Visible Light Communication

DESIGN AND DEVELOPMENT OF A MICROCONTROLLER BASED PORTABLE ECG MONITOR

7inch Resistive Touch LCD User Manual

SUBSYSTEMS FOR DATA ACQUISITION #39. Analog-to-Digital Converter (ADC) Function Card

VID_OVERLAY. Digital Video Overlay Module Rev Key Design Features. Block Diagram. Applications. Pin-out Description

APPLICATION NOTE. Atmel AVR32850: ATSAM4L-EK User Guide. Atmel SAM4L. Features. Introduction

Re: ENSC440 Design Specification for the License Plate Recognition Auto-gate System

Agilent I 2 C Debugging

UNIVERSITY OF TORONTO JOÃO MARCUS RAMOS BACALHAU GUSTAVO MAIA FERREIRA HEYANG WANG ECE532 FINAL DESIGN REPORT HOLE IN THE WALL

HEART ATTACK DETECTION BY HEARTBEAT SENSING USING INTERNET OF THINGS : IOT

Digital Strobe Tuner. w/ On stage Display

PRELIMINARY. QuickLogic s Visual Enhancement Engine (VEE) and Display Power Optimizer (DPO) Android Hardware and Software Integration Guide

1ms Column Parallel Vision System and It's Application of High Speed Target Tracking

AN-ENG-001. Using the AVR32 SoC for real-time video applications. Written by Matteo Vit, Approved by Andrea Marson, VERSION: 1.0.0

Ilmenau, 9 Dec 2016 Testing and programming PCBA s. 1 JTAG Technologies

SWITCH: Microcontroller Touch-switch Design & Test (Part 2)

ECE Real Time Embedded Systems Final Project. Speeding Detecting System

OpenXLR8: How to Load Custom FPGA Blocks

ArcticLink III VX6 Solution Platform Data Sheet

Low-speed serial buses are used in wide variety of electronics products. Various low-speed buses exist in different

IEEE802.11a Based Wireless AV Module(WAVM) with Digital AV Interface. Outline

ABSTRACT. Keywords: 3D NAND, FLASH memory, Channel hole, Yield enhancement, Defect inspection, Defect reduction DISCUSSION

Authentic Time Hardware Co-simulation of Edge Discovery for Video Processing System

EN2911X: Reconfigurable Computing Topic 01: Programmable Logic. Prof. Sherief Reda School of Engineering, Brown University Fall 2014

ECE 4220 Real Time Embedded Systems Final Project Spectrum Analyzer

Introduction. ECE 153B Sensor & Peripheral Interface Design Winter 2016

The Haply Development Kit

Lattice Embedded Vision Development Kit User Guide

7 Nov 2017 Testing and programming PCBA s

TV Character Generator

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

Innovative Fast Timing Design

Spartan-II Development System

Part 2 -- A digital thermometer or talk I2C to your atmel microcontroller

Table of content. Table of content Introduction Concepts Hardware setup...4

Pattern Based Attendance System using RF module

EEM Digital Systems II

NS8050U MICROWIRE PLUSTM Interface

A First Laboratory Course on Digital Signal Processing

APPLICATION NOTE 4312 Getting Started with DeepCover Secure Microcontroller (MAXQ1850) EV KIT and the CrossWorks Compiler for the MAXQ30

Design of VGA Controller using VHDL for LCD Display using FPGA

Oscilloscopes, logic analyzers ScopeLogicDAQ

Brief Description of Circuit Functions

FPGA Based Implementation of Convolutional Encoder- Viterbi Decoder Using Multiple Booting Technique

Remote programming. On-Board Computer

Multipurpose Robot. Himanshu Gupta 1, Mohammad Shahid 2

High Performance Raster Scan Displays

Fingerprint Verification System

ProMOS. Bravo1601. Stand-alone BLE SMD Modules. Datasheet (V1.0) ProMOS Co., Ltd. IoT Solutions Provider.

Sundance Multiprocessor Technology Limited. Capture Demo For Intech Unit / Module Number: C Hong. EVP6472 Intech Demo. Abstract

Hardware Design Considerations for a Wireless LED Based Display Design

Transcription:

Design of Vision Embedded Platform with AVR 1 In-Kyu Jang, 2 Dai-Tchul Moon, 3 Hyoung-Kie Yoon, 4 Jae-Min Jang, 5 Jeong-Seop Seo 1 Dept. of Information & Communication Engineering, Hoseo University, Republic of Korea, ikjang86@gmail.com, 2 Hoseo University, Asan-si, Republic of Korea dtmoon@hoseo.edu, 3,4,5 Hoseo University, Asan-si, Republic of Korea yhk4618@nate.com, isunset@me.com, sjs1066@nate.com Abstract In this paper, we designed motion detection system based on AVR ATmega2560 micro controller unit(mcu). It is a processing platform for high performance vision sensing using a low specification processor. In the platform, a vision processing system is implemented in which motion detection is performed by comparing vision data from camera module. It also includes a power saving switch module that can realize fancy operations by commands resulted from analysis of images in the embedded vision system and delivered through serial communications. Though a vision embedded system using 32bit processor based on OpenRISC was implemented in our previous work, we tried to make system circuits simple and realize the system with lower cost using AVR processor at this time, and accomplished more sensible platform. This system is simulated and verified by completed test with debugging and implemented in the form of PCB. Keywords: vision; embedded system; AVR; 1. Introduction Using vision data technology is being wider application area from intelligent robot to mobile machine like cell-phone. So, it increases to demand methods available high performance vision processing with being satisfied with constraints on embedded system Following industrial development, in case of Vision sensing, It is a green IT technology available to apply for decreasing increased power consumption to shut down streetlight, electronic products etcetera automatically in unnecessary condition and time. In over previous work, we already designed Energy Saving Vision Embedded system based on OpenRISC and AVR ATmega128 8bit micro-controller. It was simple circuit and got a profit low cost than OpenRISC. ATmega128 doesn t have enough memory space and I/O pin. So, we compared pixel data 54*40 of 320*240(vertical*horizontal). In this paper, a platform is vision embedded system based on AVR processing image data inputs from camera. Image data inputted through a camera is processed by a vision algorithm and the data is saved into external memory and the data is displayed through graphic-lcd and the processed result is transmitted through handshaking protocol communication to the application. 2. Overall platform 2.1. System architecture & operations This system is consists of three parts, which are camera module for getting an image data, graphic LCD module for display and processor for process the image data. The image data from camera module is saved into FIFO and each pixel data is transferred to processor progressively following synchronize signal from processor. Research Notes in Information Science (RNIS) Volume14,June 2013 doi:10.4156/rnis.vol14.66 375

And the processor sends the image data to Graphic LCD and the Graphic LCD display the real time image data. Size of real time image data is 320 by 240 pixels. At this time, software is designed with C-language and the designed program is compiled with AVRStudio. After compiling, hex file is being created and downloaded to processor. Figure 1. Overall Architecture 2.2. Processor and memory AVR is included low power 8bit Microprocessor, 32*8 general purpose register, GPIO, Memory-Flash Memory, SRAM, EEPROM. It is able to do USART and TWI serial communication. There are SPI for In- System Programing and JTAG for programing and debugging. In past paper, we used AVR ATmega128 micro controller. Atmega2560 has more GPIO lines than ATmega128. So, we substitute ATmega128 to ATmega2560 in this paper. When we used ATmega128, it doesn t have any spare GPIO lines. So, we can t connect any more interfaces directly on MCU. But, through change of processor 128 to 2560, we can connect additional memory interface for save much more pixel data. In case of AVR, it can be connected external memory up to 6 Bytes. So, we connected external SRAM Size of real-time image is 320 by 240 pixels. The image data is saved into FIFO and each pixel data is transferred progressively to external SRAM through MCU. In the previous work, when we used Internal SRAM, it was able to compare 2160 pixels of 1 frame. For using external memory, we can compare more pixels 8 times than previous work. Case of connecting external SRAM, through table 2, we can show that rate of comparing pixel is more sensitive than using internal SRAM. 376

MIPS FLASH EEPROM SRAM JTAG I/O Lines Feature TABLE 1. Comparing AVR ATmega128 & ATmega2560 ATmega128 16MIPS at 16MHz 128K Able 53 Timer/Counter PWM, ADC, SPI Serial Interface, TWI, Interrupt etc. ATmega2560 16MIPS at 16MHz 128K 8K Able 86 Timer/Counter PWM, ADC, SPI Serial Interface, TWI, Interrupt etc. Figure 2. External SRAM Connected to the AVR Sum of comparing pixels Rate TABLE 2. Case of Internal and External SRAM Internal SRAM 2160 (54 * 40) 1 External SRAM 19200 (160 * 120) 8.89 2.3. Hand-Shaking Protocol A handshaking protocol is a method by which data is estimated to be received, the content of the primary information sent and the parameters of the response. A handshake can be a single-query-response process, or it can be many processes. 377

When MCU transfer the compared results to slave, we used hand-shaking protocol for serial communication. Master and Slave are connected 3 wires Ack signal and Req signal for informing communication state, connection for transferring data each other. Master provides Req signal informing data s ready. Slave provides Ack signal getting data correct. Master provides Req signal informing data s ready, Slave provides Ack signal getting data correct. Master prepare data and output Req= 1. If Ack= 0 on Slave, it means that receiving is not finished yet. So, Master maintains the state. Becomes Ack= 1 on Slave, it means correctly data transferred. Therefore, Master outputs req= 0. If Ack= 1 on Slave, it means that receiving is not finished yet. So, Master maintains the state. If slave outputs Ack= 0, transferring data is finished. Figure 3. Handshaking protocol 2.4. Pixel Comparing In order to detect motion in each partitioned region, image comparing program is developed and compiled C code is downloaded into EEPROM of vision embedded platform. For image comparing, neighbor frame is required. The critical issue is method of image saving and comparing Get image data from camera and save the image data at FIFO Save the image data progressively at external memory from FIFO following vertical synchronization and horizontal synchronization Get next image data from FIFO and compare corresponding pixel data. If the corresponding pixel data are different, MCU transfer the result and instruction to application through hand shaking protocol 378

Figure 4. Image Comparing flow. 3. Conclusion In this paper, vision embedded platform for energy saving has been implemented, making easy development and using it. Hardware part of this system is implemented with 8bit microcontroller. Software part accomplishes image comparing algorithm from getting image by camera by C language. This embedded platform gets images from camera, detects motions in partitioned image regions, and sends results to switching circuit. LED turns off for still state and turns on by the detection of movement in video camera. This operation means automatic energy saving operation simulated by vision sensor. Platform is designed C language based on AVR ATmega2560 to available application in various field. Through Designing additional application, also, developer can modify software fluidly that user want. REFERENCES [1] Dai-Tchul Moon, In-Hag Park, Hyung-Kie Yun, Xu Gang, In-Kyu Jang, Woo-Kyung Lee, Jae-Min Jang, Ki-Young Jung An FPGA Implementation of Energy Sving Embedded System wih Multiple Vision Sensors APCC, 2011. [2] Kang Heo, Dai-Tchul Moon, In-Hag Park, Hyung-Kie Yun, Woo-Kyung Lee Design and ealization of Vision Embedded System [3] Jang In Kyu, Moon Dai Tchul Implementation of Comparing Vision Platform with AVR Processor CEIC, 2012. [4] Dai-Tchul Moon, In-Hag Park, Hyung-Kie Yun, Xu Gang, In-Kyu Jang, Woo-Kyung Lee Development of Auto Power Saving Switch Communicating in Serial Embedded Vision System APCC, 2012. 379