Giter Site home page Giter Site logo

sixletters / cg4002-core Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 2.0 184.43 MB

Python 0.03% CMake 0.01% C++ 4.72% PureBasic 0.01% Jupyter Notebook 1.09% Shell 0.03% Tcl 2.68% C 10.05% Ada 0.62% Verilog 31.63% VHDL 47.35% Pascal 0.01% SystemVerilog 1.53% Stata 0.03% Forth 0.01% JavaScript 0.02% Batchfile 0.01% HTML 0.06% V 0.16%

cg4002-core's Introduction

CG4002 Capstone Project

Authors: Harris Maung, Alicia Ho, Kian En, Sarrah

The computer engineering capstone consists of a laser tag game where 2 players an play at any point in time.

Systems Architecture

alt text

External Communications

dependencies

starting the external communications processes.

first set up a SSH tunnel with the following commands

ssh -L [laptopPort]:192.168.95.224:[ultra96Port] [user]@stu.comp.nus.edu.sg]

we can then SSH to the sunfire server and go to the project root directory and run the following

cd ultra96
cmake -S . -B build
cd build
make
./ultra96 [evalServerAddress] [evalServerPort] 

The process should then ask for the number of players, which can either be 1 or 2.

Hardware AI acclerator and Python utility-server.

run this in jupyter notebook to start whole process and communications with ext comms. The folder structure and usage is as follows:

  • final_model is a directory that contains the .bit and .hwh files to be loaded onto the FGPA -20hz_35buffer_data_eval_2_1 contains the datasets to train the model
  • Vivado_source contains the archived Vivado file.
  • HLS_source contains source code and all required files for Vivado HLS, can be imported as zip file
  • mlp_model.ipynb contains software ai code, including hyperparameter tuning, software testing, and weights & biases
  • predict.py contains API calls to predict an action with IMU data. -SWHW_Impl.ipynb contains testing code for hardware ai to check average time taken for a prediction -realPredict.ipynb is the wrapper around the pythons APIs and acts as a standalone server that communicates with the core process and game engine.
ssh [user]@stu.comp.nus.edu.sg]
ssh [xilinx]
jupyter notebook

on local machine, open the IP of the xilinx on browser, and run realPredict.ipynb

Internal communications

Installation

pip install bluepy protobuf struct threading numpy
python relay.py

folder structure and file

  • relay.py contains the process in which communicaitons with external comms happen
  • connect.py Contains the connection to the beetles as well as the internal communications processsing
  • Util.py contains numpy functions to find the threshold for AI

cg4002-core's People

Contributors

sixletters avatar

Stargazers

 avatar Shreyas Kumar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.