The servo control program was uploaded to a Digispark clone. Programming was not done directly from codebender.cc since the Digispark was not supported yet. Arduino software used to require a specially modified version exclusive to particular manufacturers or complex modification routines but the latest update to the Arduino IDE (1.6.5) makes it very simple to install the necessary drivers into Arduino software.
Arduino software rejected the stock servo library so an alternative was found. Syntax of the alternative was not clear so no link will be posted. Servo movement occurred but speed and direction could not be changed so the alternative library was unusable.
Another broken line of code was the INPUT_PULLUP called in pinMode. INPUT_PULLUP activates the internal pull-up resistor but doesn't seem to be supported in the ATTINY85. Instead a physical resistor will have to be installed and it will have to be removable because programming the board will require the resistors to be absent. Screw terminals already installed with make this easy. Another solution would have been to put a switch between the terminal board communication wires and the controller then solder the pull-up resistor permanently.
Code will have to be modified to use a timing algorithm in place of the servo library. This was already done with the Haptic Distance Sensor project on 2015-04-08 (W). The technique is minimal and should be able to be relegated to a single function which will act like the regular servo library. A brief explanation of the servo timing pulses was given on 2015-04-08 (W).
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.
Arduino software rejected the stock servo library so an alternative was found. Syntax of the alternative was not clear so no link will be posted. Servo movement occurred but speed and direction could not be changed so the alternative library was unusable.
Another broken line of code was the INPUT_PULLUP called in pinMode. INPUT_PULLUP activates the internal pull-up resistor but doesn't seem to be supported in the ATTINY85. Instead a physical resistor will have to be installed and it will have to be removable because programming the board will require the resistors to be absent. Screw terminals already installed with make this easy. Another solution would have been to put a switch between the terminal board communication wires and the controller then solder the pull-up resistor permanently.
Programming Digispark
Code will have to be modified to use a timing algorithm in place of the servo library. This was already done with the Haptic Distance Sensor project on 2015-04-08 (W). The technique is minimal and should be able to be relegated to a single function which will act like the regular servo library. A brief explanation of the servo timing pulses was given on 2015-04-08 (W).
Downloadable Files:
- Common OpenSCAD files
- Servo footprints for OpenSCAD.
- Arduino Code for wired keyboard
- Spreadsheet for chords.
- Wrist mount
- Add limit switch mounts
- Lengthen servo arms
- Integrate:
- Controller
- High precision potentiometers for tuning servos
- Servos
- Enclosure for each controller
- Limit switches
- Activation switch
- Debug
- Test
- Refine
- Repeat
- Activation switch
- Write instructions
- Compress and link to all files
- OpenSCAD files
- STL models
- Arduino code
- Make diagram with everything labeled
- Schematic for servo controller
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-09-16 (W)
Comments
Post a Comment