User:Jdittman8063/ENES-100/project 1

Team Page Combo Lock Pick

Week0 Preferences
The first week I familiarized myself with the Arduino and attempted to run the Blink program. After downloading the Arduino software I attempted to run the program and can into a series of issues. The first problem I encountered was with the associated Java file, so I uninstalled Java and downloaded the newest version that will work with my operating system. This did not fix my issue so I searched on the Arduino forum for others with similar problems. From what I have read it seems to be an issue with me trying to use an older Mac OS which is no longer properly supported, thus the program cannot run without alterations. I do not know how to make the necessary changes but intend to learn.

Week1 Narrative
Given the issues I encountered last week with the Arduino program not running on my laptop, I downloaded the program to a PC running Windows 7 and had no more issues. The program opened correctly and I was able to run the Blink code.

Week2 Narrative
Pages which were found to be useful in writing the associated code are linked below. The two tutorials on how to pick the lock gave a general idea of what steps are necessary, and the two team pages from Fall 2012 provided detailed examples of how others have pursued these same goals before.

http://www.wikihow.com/Crack-a-%22Master-Lock%22-Combination-Lock http://hackaday.com/2009/10/06/how-to-crack-a-master-lock/

http://en.wikiversity.org/wiki/ComboLockPick/Howard_Community_College/Fall2011/502_NZ http://en.wikiversity.org/wiki/ComboLockPick/Howard_Community_College/Fall2012/p1-502-cmsb

Week3 Narrative
The Astrosyn Stepper motor being used in this project has a 1.8 degree step, yielding 200 steps per rotation. Given the 40 reference points on the Masterlock, this yields 5 steps on the motor to a progression of one number on the lock. Additional research has shown that a motor shield will be needed to properly operate the motor using the arduino, while being able to control the solenoid simultaneously.

The code written by Kmcgiver0970 has been extremely helpful in providing a baseline for writing code specific to this motor. By increasing the step increment from 2.5 to 5 the code seen here: http://en.wikibooks.org/wiki/User:Kmcgiver0970/sketchThree could be directly used with the materials provided for this project.

However, this code is inefficient and will attempt every possible combination, rather than following the guidelines provided in the tutorials linked in Week2. This code is an excellent starting point for improvement and re-direction to follow the efficient steps. The commands used in this code are very similar to the ones which would be used in a final version and should allow for rapid alterations.

Week4 Narrative

 * /Code Version 1/ This is the first full attempt at trying to open the lock by cycling through all theoretically possible combinations. Later versions will build on this by eliminating combinations that cannot practically exist due to design limitations of the lock.
 * /Code Version 2/
 * /Quick Test/

When attempting to run the quick test it resulted in multiple errors. The tutorial linked below was found when attempting to troubleshoot the errors, and can be used as a starting point for understanding how the motor shield works with the Ardunio. With this information I decided that it would be best to start over on the code and not begin based on the previous teams' work. This is frustrating in that building off of their code originally seemed simple and to be a time saving measure. I am currently working on new code that should function with the Arduino and motor shield to follow the implied algorithm properly.

Tutorial for using Arduino and motor shield found here: http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial/

Here is the wiring diagram for a motor shield, to give a better idea of how it works. http://arduino.cc/en/uploads/Main/arduino_MotorShield_Rev3-schematic.pdf

Also tested the various motor wires to determine pairs. By connecting two wires to an LED's leads and turning the motor, it can be determined if the two wires are a pair or not. If the light turns on while the motor turns then they are a pair. If the light stays turned off then they are not a pair. This enabled me to determine which wires were pairs and which was the ground. The resulting pairs were red-black and green-white pairs, with brown as the ground wire. This did not match up with what was shown in the previous team's work.

is the video of the LED turning on as the motor turns.

Project #2 Preferences: 1. Combo Lock Pick 2. Music 3. ECU