Giter Site home page Giter Site logo

arduino-mouseglove's Introduction

Arduino-MouseGlove

This is a simply project for a MouseGlove based on arduino.

It is composed by two parts:

  1. Arduino software that read data from accelerometer and send it to serial.
  2. A linux client, that read data from usbserial and move the mouse.

To compile linux client you need to type the following command:

# gcc -lX11 pointermouse.c -o pointermouse

Actually it can only move the mouse pointer. The default device port is defined in client/pointermouse.h If you want to change it you must update the line:

#define COM_PORT "/dev/ttyACM1"

with your preferred port before compiling.

Here you can also define some parameters such as:

  • The speed factor used to set the cursor speed:
#define SPEED_FACTOR 10
  • The number of iterations used for read input values during calibration.
#define NUM_READ 10
  • The treshold value, if the readings are below that value no movement will be performed:
#define DELTA_VALUE 5

You must launch the client after the led L on arduino is turned on. You just need to type:

# ./pointermouse

if you want to use the default device, or you can specify the device name of your arduino, in that case you must type (assuming that your arduino is plugged on ttyACM4):

# ./pointermouse --device /dev/ttyACM4

WARNING: This project is intended as an experiment with arduino accelerometer, then it is not intended to work perfectly, or to be finished.

P.S. As soon as possible i will also publish the hardware scheme.

arduino-mouseglove's People

Contributors

inuyasha82 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

vipuljad3

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.