Skip to content

MartynFitzgerald/UWE-IoT-Challenge-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLE Circle Game - Challenge 3

This our submission of the third challenge where we created a communication protocol which allows a MicroBit to communicate to another device using Bluetooth Low Energy. Within this we created a simple game that allows you to move a player on the website with the accelerometer on the MicroBit. The game works by eating the smaller circles to make your player grow bigger. You also only have three lives and you can loss lives by getting eaten yourself.

We did try to add the functionality of sending the score data back to the MicroBit. Unfortunately, we could not find a solution and are still looking into how we can subscribe to the services Async.

Editors

  • Martyn Fitzgerald - 16025948
  • Dawid Koleczko - 17024154

Finite State Diagram

This is a diagram that shows our system implementation and how it runs.

![Finite State Diagram PNG](Finite State Diagram.jpeg)

Software Used

  • Ubuntu 16.04 LTS
  • Atom
  • Lucid Chart

Controls

  • Angle the MicroBit where you would like to move your player too.

Installation

  1. Fork this project to your GitLab.
  2. Clone your project to your computer's workspace.
git clone https://gitlab.uwe.ac.uk/m4-fitzgerald/ufcfvk-15-2-iot.git
  1. Open Terminal. Install yotta and dependencies.
sudo apt-get update
sudo apt-get install cmake ninja-build gcc-arm-none-eabi srecord libssl-dev
sudo apt-get install python-pip
sudo pip install yotta
sudo apt-get install srecord

yt target bbc-microbit-classic-gcc
  1. Then go to where you have placed the project.
cd project/examples
  1. You need to set the target for the project.
yt target bbc-microbit-classic-gcc
  1. Build the project.
yt build
  1. Once built, then copy the .hex file to your MicroBit (Make sure it's connected to your computer).
cp ./build/bbc-microbit-classic-gcc/source/microbit-samples-combined.hex /media/MICROBIT
  1. You should see your MicroBit start.

  2. Download node.js from https://nodejs.org/en/download/

  3. Go through the setup application.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published