Code Monkey home page Code Monkey logo

engf0001-challenge-2's Introduction

ENGF0001: Bioreactor Control System UI

Project files for the bioreactor control system and user interface.


Overview

This is the user interface displayed on a computer, connected via USB to the MSP432 microcontroller. The entire system is comprised of stirring speed, heating and pH management and control systems. The UI also displays real-time values from each subsystem ( via serial communication ) and plots these data on three graphs - the user can display any one of these graphs. Users with elevated access privileges can also manually adjust these values to suit their needs.


Dependencies

  • For serial communication between the MSP432 board and the UI, the external module Pyserial must also be installed.

  • There are no other dependencies required to use the control system except for the Energia, Code Composer Studio (CCS) and a version of Python 3.6.9 or newer.

Please do note that there are problems with Energia and CCS on newer versions of MacOS so the UI will only safely run on Windows and Linux.


Running the UI

The UI is run by running the controller.py file but keep in mind that an Energia sketch needs to be currently running on the MSP board for any of its output to be displayed on the UI. No other files need to be accessed.

As a side note: the system can detect the serial port being used by the MSP432 board at runtime depending on the operating system of the PC.

  • Windows: COM34
  • Linux: /dev/ttyACM0

Using the UI

The UI allows the user to:

  • Observe real-time data from each subsystem in a simple graph plot
  • Manager the operation of the control system (with the correct privileges)
  • Shutdown the entire bioreactor if needed in emergency situations

The control system has to access levels: GUEST and ADMIN.

  • The GUEST is able to view graphs representing the current state of the bioreactor and is able to shutdown operation altogether in emergency situations.

  • The ADMIN can perform all actions a GUEST can but has an additional privilege: they have the option to alter the operation of the bioreactor in a separate menu, allowing them to adjust the pH, stirring speed and temperature of the bioreactor.


engf0001-challenge-2's People

Contributors

ernxst avatar 1kc2 avatar

Watchers

 avatar

Forkers

zceetlu

engf0001-challenge-2's Issues

Handing serial communication errors

Cases to be considered:

  • Handle the event in which the user disconnects the MSP board while they are still logged in.
  • Handle the event in which the user connects the MSP board after logging in.

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.