Git Product home page Git Product logo

arduinocodelodestar's Introduction

Lodestar BEXUS

The code used in the BEXUS 27 Lodestar. For intrest in results of the project read this.

Ground Station

The ground station control panel for Lodestar BEXUS consists of a Python backend and a HTML/JavaScript frontend. The back- and frontend communicate using SocketIO.

Python backend

The backend has only been tested using Python 3.6. Using this version of Python is suggested. By default the backend listens for UDP packages on port 8888. To function with the Arduino code the ground station needs to be assigned the IP-adress 192.168.0.3.

Setup

  1. Make sure the ground station computer is running Linux or OSX with Python 3 installed along with Pip for Python 3. Running Ubuntu 18.04 you will have Python 3.6 installed by default. To install Pip run sudo apt-get install python3-pip.
  2. Using pip install the package Flask-SocketIO by running sudo pip3 install Flask-SocketIO
  3. Clone this Git repo.

Run

To run the ground station navigate to the directory groundstation/webapp and run one of the following commands. Then navigate to localhost:5000 in your web browser.

To run in live monitor mode, listening for incomming UDP packages on port 8888 run:

$ python3 ground_station.py

To run in file inspection mode to inspect .lodestar datafiles run:

$ python3 ground_station.py -f <path-to-file>

To export data from a .lodestar file to a .mat file run:

$ python3 ground_station.py -e <path-to-file>

On board software

The on board software consists of two programs, one running on an Arduino Mega and one running on two separate Arduino Nanos. To load the on board software onto the Arduino Mega and the two Arduino Nano the required libraries first needs to be added to arduinosketches/libraries/. When loading the nanocode.ino onto the Arduino Nanos it is important to edit the I2C address in nanocode.h so that they don't share the same address. It is also important to take note of which address is given to which Nano. The Nano that is given NANO_ADDRESS_1 as its I2C address will lable the cigs data with number 1-3 and the one loaded with NANO_ADDRESS_2 will lable its data with number 4-6.

The micro-SD card should be an 2 GB formated as FAT16.

Required libraries

  • Afafruit Sensor
  • Adafruit BMP280
  • MemoryFree

arduinocodelodestar's People

Contributors

douwg avatar karvla avatar lowelundin avatar patriklaurell avatar xavantex avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.