Giter VIP home page Giter VIP logo

eliduprees-emg-mouse's Introduction

Eli Dupree's EMG mouse project

My personal project to use EMG sensors for mouse input. Not intended to be an out-of-the-box solution for anyone else, but I do intend to keep this README updated, so that a person with similar programming skills to me would be able to use it as a basis for their own.

Project structure

emg-server-c/: a C program to be run on an ESP32 microcontroller, based on the ESP-IDF gatts_server_service_table and adc_dma examples. It reads input from analog pins and reports the values as BLE notifications. Currently incorrectly advertises itself as a "heart monitor" because I haven't yet learned how to customise that part of the example code. Currently hard-coded to serve to one client at a time, and report every 1 ms. In the future I might make it not waste network power when idle, and maybe do some of the logic.

emg-client/: a Rust program to be run on my computers, with several subcommands:

  • emg_client supervisor: I run this on my Windows computer. It connects to a remote emg_server, reads the JSON data, and decides when to emit mouse inputs (currently just clicks). It also serves a GUI web app to localhost and can delegate mouse inputs to other devices (see below). It currently delegates clicks to whichever computer had a mouse-move most recently.
  • emg_client follower: I run this on my Linux computer. It connects to a remote emg_client supervisor, and emits mouse inputs when instructed.

supervisor/: Out-of-date (original attempt at the emg-client role, in Python)

emg-server/: Out-of-date (original attempt at the EMG server code; a Rust program to be run on an ESP32 microcontroller. Based on rust-esp32-std-demo (you need to follow the same steps from that repository to build it))

bluetooth-test/: simple Rust program for connecting to emg-server-c, for my testing

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.