Giter VIP home page Giter VIP logo

hallsensor_ml_edgeimpulse's Introduction

HallSensor RPM meter using Machine Learning with EdgeImpulse

The project is a section of the training course "Introduction to Embedded Machine Learning", by Shawn Hymel, the main instructor in collaboration with Edge Impulse

Intro

I chose a simple 12v fan for measuring the rotational velocity in 4 states (OFF, LOW, MED, HIGH), for achieving that I attached a magnet on a blade of the fan and I added up a hall sensor for measuring the magnetism when the magnet gets closer to the sensor.

WhatsApp Image 2021-02-22 at 1 09 07 PM

Here I used an ESP32 as a functional microcontroller for obtaining the hall sensor values and collecting the data, using some filtering techniques and data synthesis inside of the code in the microcontroller I obtained different waveforms in those 4 states(see DataForwarder_HallSensor.c)

OFF

LOW

MED

HIGH

I used the Edge Impulse Data Forwarder which helped me to connect the ESP32 directly to Edge Impulse, I collected almost 4 minutes of data dividing equally each label used. Then I created my impulse using spectral features where at the beginning I obtained some random points in the plots, then I understood that my samples are not too repetitive through the data sample, so I had to modify my window size to a big one to adjust the period of the signal, after struggling with the period of the data, I obtained some interesting forms in my feature explorer window.

f

Once I got the spectral features, I proceeded with the NN classifier using two layers with almost 15 neurons in total (5 neurons on the first layer and 10 neurons on the second layer). obtaining a pretty accurate model.

T

I understood that different data samples might have some crucial characteristics to regard while analyzing the signals, in my case, the period of the lower and medium signals have affected my results in the beginning, finally, I applied the anomaly detection into the project and after programming the microcontroller I identified that it detects accurately the different states of the fan and it detects anomalies when I turn the fan manually with my hand.

WhatsApp Image 2021-02-22 at 1 04 10 PM

hallsensor_ml_edgeimpulse's People

Contributors

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