Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/federicoceratto/gyrofocus
- Owner: FedericoCeratto
- License: agpl-3.0
- Created: 2015-06-27T19:06:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-27T19:33:29.000Z (over 9 years ago)
- Last Synced: 2023-03-22T12:49:24.411Z (over 1 year ago)
- Language: Arduino
- Size: 281 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
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.inoCompile 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.