Accelerometer and Gryo (and Compass)
Release status: beta [box doku]
|Description||Using an Accelerometer and Gryo (and Compass) as a mouse|
- 1 Installation & construction - Accelerometer and Gryo (and Compass)
- 1.1 Overview
- 1.2 BOM and expected costs
- 1.3 Computer requirements
- 1.4 Software Installation
- 1.5 Hardware build and installation
- 1.6 Connecting to computer
- 1.7 First time setup - configuration
- 1.8 Ideas
- 1.9 Extensions
- 1.10 Help wanted
Installation & construction - Accelerometer and Gryo (and Compass)
This page describes everything required, how to connect and configure and if known, how to construct.
This should help you to customise this solution to meet individual needs.
Accelerometer & Gryo () controls mouse movements and buttons
This sub-project uses a gyro (and maybe an accelerometer) to create an air-mouse, or wand to control a computing device. There are commercial devices for this purpose. This sub-project aims to create:- - a smaller, lighter device that can be used by several area of the body, including finger, wrist, arm, head, foot. - be highly configurable and customisable to meet and indivuals needs - relatively cheap and easy to get all of the parts
BOM and expected costs
BOM = Bill of Materials = everything required for this solution.
- BOM TABLE HERE**
Accelerometer MPU-6050/GY521 or similar. Teensy++ 2, Leonardo or similar - device that appears as USB HID mouse
Note that the costs do not include cost of computer, or any shipping costs.
Need a computer with a supported operating system from the list below and a USB port.
USB port and see the BOM above.
= NOT TABLE ... linked direct to each from main summary table!!! = Software Download = link/s
Tested briefly on McBook Pro - you may get prompted to press shift for the new keyboard device (just press the computer keyboard shift key).
Tested under OpenSuse.
discuss each distribution (base distro &/or gui)?
XP - should be OK :) Vista - should be OK :) Windows 7 - tested OK ! Windows 8 - should be OK :) +++ any sub-ver - eg home, prof AND any service pack info ???? get table of ALL from wikipedia or somewhere
= description +++ configuration & basic use
At this stage no computer software require to use the system. In future releases there may be a configuration application.
Currently there are two buttons. One is left mouse button other enables and disables the device mouse control.
If you need to program the "device" you will need an Arduino programming environment.
The Arduino site has excellent documentation on installing the Arduino development environment for many different operating systems.
If using a Teensy board, then refer to the Teensy model reference for additional instructions.
The source code is in the Xinchejian AssistiveDevices github
Hardware build and installation
DIY - make it - description..... - eg PCB, BOM (with ~$US - typical range of $ AND RMB if bought in China!!!), schematic, .....
Connecting to computer
= how to connect, PCB, ...... Connections - you do not have to use the same cable and wire colours! I2C - Teensy++ 2
+5v - red Gnd - Brown SCL Pin 0 (D0) Orange SDA Pin 1 (D1) Yellow Int0 D4 Grn eg the MPU-6050/GY521 board.