Giter Club home page Giter Club logo

switchxgboost's Introduction

Contactless Multi-Array Switch

ScreenShot

The application kit contains :

  • Multi-Array Switch add-on, consisting of 4 magnets that can be moved contactles into two different states. 16 different states in total are therefore possible. Magnets are included.

  • The additional needed 3D2Go board or the 3D shield can be used for the read-out.

With a magnetic 3D sensor a contactless multi-array switch can be generated. In this example, four independent moving magnets create unique magnetic fields indicating 16 different switching combinations. This can be used as a Human-Machine-Interface and has no tear or wear to the sensing element.

Code Summary :

The multiswitch code contains the following files:

  1. data.txt
  2. dataCollection.py
  3. main.py

Dependencies:

pip install {lib}
  • numpy
  • pyserial
  • xgboost
  • bitstring
  • pandas
  • sklearn

Data collection and preprocessing

This program uses a machine learning algorithm to predict the exact multiswitch array combination. Data needs to be collected and then feeded to the XGBOOST algorithm to train on it. We provide a ready training dataset in data.txt. Run dataCollection.py and follow the instructions if you want to create your own dataset or extend the already existing one.

Array combination

Finally, run main.py to predict the array combination. When trained on the provided data, an accuracy of 95% (+- 3%) is achieved. You can play with the algorithm's hyperparameters and feed more data to it to further improve the accuracy.

switchxgboost's People

Contributors

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