Arduino MouseController Project

Introduction

Arduino mousecontroller is an application to controls the linux mouse with sensors different from the typical optic mouse or touchpad.


I would like this project to grow at the same time that I am investigating and learning about it.

My intention is to get a easy form to control the mouse moving only one hand over the air and making gests.

I will let here all the information for mounting the basic sensor circuit of the first operative version for this project.


Specifications


This is the schematic implemented for the arduino code that i left in GitHub:




Once the circuit is implemented the next steps are:

1) Connect the arduino and watch what file is using. Usually will be ttyACM0, ttyACM1,... stored in /dev directory. You must modify the "mousecontroller_linux.c" and change the ttyACM0 default file for the file that you arduino is using.


2) The file which the mouse uses is "uinput" stored in /dev. To move the mouse will be needed to have write and read privileges overe this file. Then we type on terminal: sudo chmod 777 /dev/uinput.


3) Now we just have to run the codes. In linux we compile and execute "mousecontroller_linux.c". On arduino we load to the board "mousecontroller_board.c".

Note: To open "mousecontroller_board.c" with arduino IDE, we only have to change the extension of the code to ".ino".

4) When the arduino start to send the values captured from the sensors the pc will receive them and will move the mouse.


IMPORTANT: The arduino code takes some values every start/restart to calibrate and works well with the ambient light, it is important that there is not a light source much more powerful than the light that affects the photoresistors from the top. If this happens you must have to cover the sensor with your hand from this light and not the light from the top, and that is not what we want.

Here is the repository in GitHub with all codes and library needed:

https://github.com/AndresCasasola/Arduino_MouseController


No hay comentarios:

Publicar un comentario