Mouse movement functions had been avoided to this point. Programming was written for the built-in USB mouse emulation. Mouse code was easy to implement once reasonable numbers were passed to it. Movement was essentially done by first taking a reading from the accelerometer (ADXL335) when the Far thumb button was pressed by itself then basing all movement off that initial location. In this way if the accelerometer was started at 35º on the X axis when the user moves the X axis to 36º (+1º) there is a small mouse movement to the right but if the user moves the X axis to 5º (-30º) there is a large movement to the left. Mouse movement would not be necessary for a desk mounted
keyboard unless a joystick was attached. Due to the way to code has been
written attaching a joystick should function without any modifications.
Once the USB mouse was functional programming was researched on Adafruit's tutorial on how to command the mouse. The tutorial was straight forward and easy to understand. Mouse movement was simultaneously working on a mobile phone (via Blutooth) and a laptop (via USB) after a few attempts. Variables were tuned to get usable mouse movement but user preferences will likely mean that users will changes these further.
Downloadable Files:
The rest of the posts for this project have been arranged by date.
First time here?
Completed projects from year 1.
Completed projects from year 2.
Macro shot of accelerometer
Once the USB mouse was functional programming was researched on Adafruit's tutorial on how to command the mouse. The tutorial was straight forward and easy to understand. Mouse movement was simultaneously working on a mobile phone (via Blutooth) and a laptop (via USB) after a few attempts. Variables were tuned to get usable mouse movement but user preferences will likely mean that users will changes these further.
Recent code for wireless keyboard with mouse movement
Downloadable Files:
- Wrist Mounted Chording Keyboard. All STL printing Files. If you want to print.
- Parts for index, middle, and ring fingers.
- Parts for pinky finger.
- Thumbboard.
- Servo lever.
- Wrist base.
- Left-handed Wrist Mounted Chording Keyboard. All STL printing Files. If you want to print.
- Parts for index, middle, and ring fingers.
- Parts for pinky finger.
- Thumbboard.
- The servo lever and wrist base are the same as the right-handed version
- Wrist Mounted Chording Keyboard. All OpensCAD Files. If you want to make changes.
- Parts for index, middle, and ring fingers.
- Parts for pinky finger.
- Thumbboard.
- Servo lever.
- Wrist base.
- Arduino Code for wired keyboard
- Spreadsheet for chords.
Add mouse functionality.Program changes:Add mouse movementChange mouse clicks to press and release according to buttonsAdd random number generator0-10-1000Random equation followed by enterModify servos for continuous rotation.- Automate wrist mount.
- Write instructions
- Schematic
The rest of the posts for this project have been arranged by date.
First time here?
Completed projects from year 1.
Completed projects from year 2.
Disclaimer for http://24hourengineer.blogspot.com/
This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.
All
information in this blog, or linked by this blog, are not to be taken
as advice or solicitation. Anyone attempting to replicate, in whole or
in part, is responsible for the outcome and procedure. Any loss of
functionality, money, property or similar, is the responsibility of
those involved in the replication.
All digital communication regarding the email address 24hourengineer@gmail.com becomes
the intellectual property of Brian McEvoy. Any information contained
within these messages may be distributed or retained at the discretion
of Brian McEvoy. Any email sent to this address, or any email account
owned by Brian McEvoy, cannot be used to claim property or assets.
Comments
to the blog may be utilized or erased at the discretion of the owner.
No one posting may claim claim property or assets based on their post.
This blog, including pictures and text, is copyright to Brian McEvoy.
2015-08-24 (m)
Comments
Post a Comment