Edge TPU Coral Dev Board: A tutorial

Slides:



Advertisements
Similar presentations
Intel Do-It-Yourself Challenge Networking
Advertisements

Thank you for choosing HUAWEI E560 Wireless Modem (hereinafter referred to as the E5). z The supported functions and actual appearance are subject.
Internet of Things with Intel Edison Getting started with your board Pierre Collet Intel.
MCS-TOUCHSCREENS MCS-TOUCH-7 FRONT BACK  NEW FOR 2015  High Resolution (1280 x 800)  LCD Display with LED Backlighting.
29 April 2005 Part B Final Presentation Peripheral Devices For ML310 Board Project name : Spring Semester 2005 Final Presentation Presenting : Erez Cohen.
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Computer Architecture Ports.  There are lots of external devices that you can connect to your computer. All external devices connect to the computer’s.
Getting to Know the Digital Hub Can you sketch/draw the digital hub system – subsystems? Can you Identify Point of failures?
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
Embedded Programming and Robotics Lesson 12 Introducing the Raspberry Pi Intro to Raspberry Pi1.
COMPUTER SYSTEM.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
MoteWorks Installation
The New FTC Platform (Connecting your legacy hardware)
ChibiOS/RT Demo A free embedded RTOS
Intro to Raspberry Pi A Southwest Florida Hackerspace Workshop Presented by: Russell Benzing & Eric Schiffli.
Parts of a Computer Created by Carmen Garzes. An electronic device that manipulates information or data. It can store, retrieve or process data. There.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
PCs ENVIRONMENT and PERIPHERALS Lecture 4. An expansion cards: - An expansion card (expansion board) is an electronic circuit board that adds more functionality.
Raspberry PI 2 Installation & Demo App By Wayne Keadle.
An introduction to the Raspberry Pi. What is a Raspberry Pi?  University of Cambridge’s Computer Laboratory  Decline in skill level  Designed for education.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 2 v3.1 Module 2 Introduction to Routers.
Virtualisation Exercise Installing VirtualBox Installing FreeBSD in a virtual machine Chris Wilson Joel Jaeggli AfNOG 2012.
RaspberryPi.
Instructor Materials Chapter 8 Configuring Cisco Devices
After Construction Name: Per #:.
Engineering Innovation Center
Mobile Device Development
Aava’s Open Platform Smartphone
Building Raspberry Pi Controllers with Python
Workshop on Raspberry Pi 3
Chapter 1: Introduction to the Personal Computer
Ira Goldstein Siena College
Introduction to Computers
Implementation of Embedded OS
IoT 101 with Raspberry Pi and Azure
Buttons, Sockets and Slots of a Desktop Computer
Instructor Materials Chapter 2: Configure a Network Operating System
WELCOME Mobile Applications Testing
Vinculum II Development Modules
Computer System Laboratory
Chapter 2: Configure a Network Operating System
D-STAR InfoCon 2015 at Big Spring TX Part 3 – Doing More With D-STAR
Prepared by: Raghad J Foqha Supervisor: Dr. Saed Tarapiah
Chapter A - The Raspberry Pi Computer
Computer Hardware – System Unit
A microcontroller Raspberry Pi 2 Model B V1.1 RPi
Introducing MagicInfo Lite I 4.1
Chapter 5: Switch Configuration
Introduction to Networking
Specifications Manufacturer Code
bh
INTRODUCTION TO THE RASPBERRY PI Darrell Davis KT4WX
Introduction to Computers
Instructor Materials Chapter 1: Introduction to the Personal Computer
Swipe 3G Mobile with Gorilla Glass Experience the Difference!
Raspberry Pi Pi 2 Model B.
An introduction to the Raspberry Pi
AVR32 UC3 EVK1100 Control Panel Tutorial
Computer Basics.
Chapter 5: Switch Configuration
Laboratoires & Matériels WiFi
Chapter 2: Configure a Network Operating System
Lifesize® Technical Update
Hardware Components & Software Concepts
Beginning Raspberry Pi
Introduction to Single Board Computer
Emphasis: Get it working and do stuff!
Raspberry Pi Hardware By: Mike Kwiatkowski.
Presentation transcript:

Edge TPU Coral Dev Board: A tutorial ©Adaptive Systems Laboratory Division of Computer Engineering School of Computer Science and Engineering University of Aizu Contact: [d8182106, benab]@u-aizu.ac.jp Edition: June 2nd, 2019

Outline Introduction and specification Required hardware and tools Board setup Demos 6/2/2019

Coral Dev Board The Coral Dev Board is a single- board computer with a removable system-on-module (SOM) that contains eMMC, SOC, wireless radios, and the Edge TPU. Accelerated ML; prototype internet- of-things (IOT) devices; embedded systems that demand fast on- device ML inferencing. 6/2/2019

Board’s Features (1/2) Edge TPU Module (SOM) NXP i.MX 8M SOC (Quad- core Cortex-A53, plus Cortex-M4F) Google Edge TPU ML accelerator coprocessor Cryptographic coprocessor Wi-Fi 2x2 MIMO (802.11b/g/n/ac 2.4/5GHz) Bluetooth 4.1 8GB eMMC 1GB LPDDR4 6/2/2019

Board’s Features (2/2) USB connections Audio connections USB Type-C power port (5V DC) USB 3.0 Type-C OTG port USB 3.0 Type-A host port USB 2.0 Micro-B serial console port Audio connections 3.5mm audio jack (CTIA compliant) Digital PDM microphone (x2) 2.54mm 4-pin terminal for stereo speakers Video connections HDMI 2.0a (full size) 39-pin FFC connector for MIPI DSI display (4-lane) 24-pin FFC connector for MIPI CSI-2 camera (4-lane) MicroSD card slot Gigabit Ethernet port 40-pin GPIO expansion header Supports Mendel Linux (derivative of Debian), Tensorflow Lite 6/2/2019

Hardware and tools Required hardware: Linux or Mac computer (referred to below as "host computer") USB-A to USB-microB cable (to connect your PC to the board's serial port) USB-A to USB-C cable (to connect your PC to the board's data port) 2 - 3A (5V) USB Type-C power supply (such as a phone charger) Ethernet cable or Wi-Fi connection 6/2/2019

Hardware and tools Tools: A serial console program: such as screen, picocom, or PuTTY (among many others), installed on host computer. The latest fastboot tool. Download Android SDK Platform-tools Install: Verify: 6/2/2019

Flash the board (1/9) Step 1: Switch to eMMC boot mode The board is completely unplugged (not powered and not connected to your computer). The boot mode switches are set to eMMC mode: 6/2/2019

Flash the board (2/9) Step 2: Install the udev rule or driver on your host computer. This is required to communicate with the Dev Board over the serial console. On Linux: On Mac: Install the CP210x USB to UART Bridge Virtual COM Port (VCP) driver for Mac. 6/2/2019

Flash the board (3/9) Step 3: Connect to the serial console. USB-microB: host computer => to the serial console port on the board. The orange and green LEDs on the board should illuminate. 6/2/2019

Flash the board (4/9) Step 3: Connect to the serial console. On Linux: Determine the device filename You should see two results such as this: Then use the name of the first filename listed as a cp210x converter to open the serial console connection On Mac: 6/2/2019

Flash the board (5/9) Step 4: Power the board. Plug in your 2 - 3A power cable to the USB-C port labeled "PWR”. Your serial console (the screen terminal) should arrive at the u-boot prompt. You should see a "Welcome" message Caution: Do not attempt to power the board by connecting it to your computer. Help! If you still don't see anything in the serial console screen, press Enter. 6/2/2019

Flash the board (6/9) Step 5: Start fastboot. In your serial console's u-boot prompt, execute the following: The cursor should simply move to the next line. Fastboot is now waiting for the host to begin flashing a system image. 6/2/2019

Flash the board (7/9) Step 6: Connect to fastboot over USB. Use your USB-C cable to connect your host computer to the USB-C data port labeled "OTG" on the Dev Board. On host, open a new terminal You should see a line printed like this: 6/2/2019

Flash the board (8/9) Step 7: Download and flash the system image. On host: This starts the flashing process and you'll see various output. 6/2/2019

Flash the board (9/9) Step 8: Login Switch back to the serial console to observe the flashing progress. It takes about 5 minutes to complete. When it's done, the system reboots and the console prompts you to login. 6/2/2019

Mendel Development Tool: Install MDT is a command line tool that helps you perform tasks with connected Mendel devices, such as this Dev Board. For example, MDT can list connected devices, install Debian packages on a device, open a shell with a device, and more. And you'll need it in the next section to generate SSH keys. Install: Note: The --user flag installs the mdt executable in your user directory. On Linux, that's ~/.local/bin/. On a Mac, it's something like /Users/yourname/Library/Python/3.7/bin/. If you remove that flag, it requires root access and will install at /usr/local/bin. So make sure that the appropriate path is in your PATH environment variable. 6/2/2019

Mendel Development Tool: Connect Using the serial console was necessary only to enable fastboot. Now that you have the Mendel system on the board, you can unplug the microB USB cable and open a shell using MDT over the USB-C cable (see figure 5). Using MDT is just an easy way to generate an OpenSSH public/private key pair, push the public key onto the board, and then establish an SSH connection. To open the shell, run this command on your host computer: 6/2/2019

SSH to the board If you prefer to use other SSH tools, simply generate your own key and then push that one to the device with mdt pushkey. For example, run the following on your host computer: 6/2/2019

Demos 6/2/2019

Demo1:Real-time multiple-objects identifier and classifier On your desktop: For a video demo of the Edge TPU performance, run the following command from the Dev Board terminal: Then on your desktop (that's connected to the Dev Board)—if you're connected to the board using ssh over USB—open 192.168.100.2:4664 in a browser. If you're instead connected to the board by other means (such as SSH over LAN or with an Ethernet cable), type the appropriate IP address into your browser with port 4664. Or if you have a monitor attached to the Dev Board, you can instead see the demo on that screen: 6/2/2019

Demo1:Real-time multiple-objects identifier and classifier Result when opening 192.168.100.2:4664 in a browser. 6/2/2019

Demo2: image classifier Copy this example to Dev Board: Run on the Dev board: Result: 6/2/2019

Reference [Google2019] Get started with the Dev Board, website: https://coral.withgoogle.com/docs/dev-board/get- started/, access date: June 2, 2019. 6/2/2019