Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/federicoceratto/gyrofocus

Use an Arduino-based gyroscope head tracker to switch window focus
https://github.com/federicoceratto/gyrofocus

Last synced: 6 days ago
JSON representation

Use an Arduino-based gyroscope head tracker to switch window focus

Awesome Lists containing this project

README

        

== Switch focus between windows using a gyroscope

Requirements:

- an Arduino-based gyroscope to be mounted on your headphones (or a hat?)
- a window manager that can be controlled from CLI (e.g. i3)

Cheap Atmega328p + MPU6050 Arduino clones can be bought on link:http://www.aliexpress.com/item/Free-Shipping-MWC-ATMega328p-MPU6050w-USB-6-Axis-Gyro-accelerometer-Control-Sensor/1688063076.html[aliexpress] for around 10 Euros including shipping.

image:atmega328p-mpu6050.jpg["Atmega328p",width=128]

=== Installation

Install the arduino IDE and Nim:

$ apt-get install arduino nim

Connect the Arduino device and load atmega328p-mpu6050.ino

Compile and run the desktop-side application:

$ nim c gyrofocus
$ ./gyrofocus -h

Calibrate it with -c, edit the .json configuration file.

Run it with -b and/or -d for debugging.

Released under AGPLv3.