Skip to content

Independent Study on Embedded Machine Learning with Coral Dev Board

Notifications You must be signed in to change notification settings

gavinhailey/coral-is

Repository files navigation

Coral Independent Study

Python TensorFlow Platform

This is a repository for my Coral Dev Board Independent Study at DU. I will use this to document my progress and findings throughout Winter Quarter 2023.

Initial Setup

Host Setup

There is a convience script included at scripts/host_setup.sh that will do all of this for you. Just run it on your host machine and it will get all of the dependencies and the mendel iso.

Flashing the Board

Getting started with the Coral Dev Board is fairly straightforward. The documentation Google provides is thorough and easy to follow.

The short version is download the Mendel Linux image and flash it to a microSD card. I used Balena Etcher to flash the image. Set the boot mode on the coral board to boot and flash to internal stoage on from the microSD card and plug it in. The board should boot up and you should be able to SSH into it via the mdt utility over a USB-C data cable. Then setup internet connection and ssh for convienence.

To put the board into flash from microSD or internal storage mode, refer to this table for the switches found near the heatsink and below the GPIO Pins:

On is towards the GPIO Pins, Off is away from GPIO Pins.

Boot Mode Switch 1 Switch 2 Switch 3 Switch 4
Flash from microSD On Off On On
Use internal storage (eMMC) On Off Off Off

Images for Reference

Flash from microSD mode: Flash from microSD mode

Internal storage mode: Internal storage mode

microSD slot location: microSD slot location

Refer to the documentaton linked below for the full guide

Prerequisites

Post Install

Any additional useful packages and tools can be installed via the scripts/coral_setup.sh script. For now this script just upgrades pip and installs pillow (for image processing), python-periphery (GPIO).

Documentation

Updating

Updating the Coral Dev Board is as simple as running the following command:

sudo apt-get update && sudo apt-get dist-upgrade

Shutting Down

Although you can just unplug the Coral Dev Board, it is recommended to shut it down properly. To do this, run the following command:

sudo shutdown now

Connecting a Camera

YUYV also called YUY2 is the only format supported by the Coral Dev Board. To check if your camera supports this format, run the following command:

v4l2-ctl --list-formats-ext --device /dev/video1

Using your Own Model

Custom Model

Datasheet

If you'll be working with the GPIO, serial, or anything else embedded. This datasheet will be helpful.

Coral Dev Board Datasheet

About

Independent Study on Embedded Machine Learning with Coral Dev Board

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published