User:Rphillip3418/ENES-100/project 3

Combo Lock Pick

Week1 Narrative
I will be continuing my work of the Combo lock pick on this page. My next task on the combo lock pick project is to get the arduino working with the solenoid. The solenoid needs to shoot up when the motor is done spinning. So I got a code on the arduino programe on the schools computer called, blink program. I sent this to the arduino. The red wire goes into the ground and the orange goes into port 13. I later change the port to port 5. This is because port 13 is needed for the motor program.

How I got to the blink program:  File:Arduino Blink File.JPG|This is a file that is already made on the Arduino program on the school computer. It is the blink program. File:Blink File.JPG|I changed the blink file to activate on the arduino when the orange wire is in port 5, not 13. Because port 13 is needed for the motor program. File:Arduino Connected to computer.JPG|Arduino linked to computer to send it the program to run the solenoid. File:Wires Coming off of the power cable.JPG|The power cable connects to the solenoid and to the arduino. The red wire is the ground. The orange wire is what runs the program. File:Wires in Arduino.PNG|Red goes to the ground, and when the orange goes into the correct port it shoots up the solenoid. File:Solenoid Pulled Up.PNG|The solenoid is told by the arduino to contract up. File:Solenoid Switch.JPG|This switch could be used to mount on top of the solenoid to tell it when it hits it to stop the program because the combination has been solved.  Arduino connecteed to the Solenoid:
 * Engshortcut
 * Arduino
 * Ports
 * USB serial port (Com 14)
 * Blink Program

http://www.youtube.com/watch?v=qMwK1ov807k&feature=youtu.be

Next I took the power source and screwed it into the back of the board with the solenoid and the lock. The power source has to be close to the solenoid because that is what it has to connect to.  File:Power Source Plugged Into Solenoid.JPG|Power source plugged into solenoid File:Power Source Back.JPG|Power Source screwed in to the upright board.  Video of the Combo lock relining back to change out a lock, then coming back into position:

http://www.youtube.com/watch?v=cFAW6Mqz9Vo&feature=youtu.be

Week2 Narrative
My task is to find a way to mount the arduino to the wood board without having the bottom come in contact with anything else. To do this i found rubber stoppers that I put around the screws that run through the arduino.  File:Rubber pieces that will be under the arduino.JPG|These rubber pieces go under the arduino, and around the screws. File:Rubber pieces on the board.JPG|This is showing where the rubber pieces will go on the wood. File:Top view of arduino screwed into the board.JPG|Top view of arduino screwed into the board. File:Rubber under the arduino.JPG|Rubber under the arduino. File:Side view of rubber under the arduino.JPG|Side view of rubber under the arduino File:Rubber under the top two screws.JPG|Rubber under the top two screws. File:Screws with rubber through the arduino.JPG|The screws run through the arduino with the rubber on the bottom to keep the arduino from coming into contact with the wood.  The wires coming from the power block are not long enough to reach the ardino, and when the solenoid and lock are pulled back the wires are even farther away from the arduino. To solve this problem the wires just needed to be extended by soldering them, then heat shrink wrapping them. Once this was done the wires could stretch out long enough even after the lock and solenoid are pulled back.  File:Ground wire does not reach the arduino.JPG|Ground wire does not reach the arduino. File:Wires connected before they are extended.JPG|The wires need to be extended because when the solenoid is pulled back the wires are too short to stay connected to the arduino. File:Power wire is extended.JPG|Power wire is extended by soldering an extra wire to it. File:Heat wrap on power wire.JPG|After being soldered the power wire is wrapped in a heat shrink wrap. File:Ground wire is extended.JPG|Ground wire is extended by soldering. File:Ground wire is extended again.JPG|Ground wire is extended again by soldering.  Video of the wires being to short to stay connected while the solenoid and lock are pulled back:

http://www.youtube.com/watch?v=RnwxFWSSMJI&feature=youtu.be

Video of the solenoid and lock being pulled back, the wires stay in place:

http://www.youtube.com/watch?v=1t0uR5_pfHs&feature=youtu.be

Week3 Narrative
 File:Hole drilled for wires.JPG|a hole is drilled to channel the wires through. File:Wires running along bottom.JPG|Wires running along bottom. This makes them hidden from sight. File:Wires coming through the hole.JPG|Wires coming through the hole, but they aren't long enough. File:Wires go underneath the wood.JPG|Wires go underneath the wood. File:Wires soldered.JPG|Wires extended to reach the arduino. File:Wires coming through the bigger hole.JPG|wires are now long enough. File:Wires connected to the arduino.JPG|Wires coming through the hole and connecting to the arduino. File:Wires running under motor.JPG|Wires running under motor. File:Thicker hook.JPG|A thicker hook is needed connect to the lock because the solenoid would bent the thinner one out of shape. File:New thicker hook.JPG|thicker hook connected to lock. File:Hook 1 holding wires in place.JPG|Hook by the hinge is holding the wires in place as they come in from the power block. File:Hook 2 holding wires in place.JPG|Second hook is placed by the the hole under the arduino.  Video of the thicker hook connected to the solenoid:

http://www.youtube.com/watch?v=ZnLiqRuQBjM&feature=youtu.be

 File:Motor Connected to gear.JPG|the motor needs to connect to the gears by moving forward because there is a line hat runs through the middle of the gear. File:Gears moved forward.JPG|The bearing board is moved forward so that the gears can be pushed back so the motors gear can hook up correctly. File:New screw placed through the gear..JPG|A thinker screw is placed through the gears and rubber piece because the old screw started to slip. File:Back view of new screw.JPG|The new screw is shorter so it doesn't poke out the back. File:Hooks on the main board.JPG|Hooks will be used to hold a string to keep the project from moving so much. File:Hooks on top and bottom.JPG|Hooks will hold the project together by the tension of a string. File:Fishing line used.JPG|Fishing line is tied and used to hold the project together. 

Week4 Narrative
Video of gears being spun by hand: http://www.youtube.com/watch?v=ETb02RsUdVU&feature=youtu.be

 File:Arduino mounted.JPG|The arduino with the programs is mounted to the project. File:Side view of arduino.JPG|Side view of arduino mounted. File:Wooden block that will hold up motor.JPG|Wooden block that will hold up motor File:Wooden Block screwed in.JPG|The wooden block that will hold up the motor is screwed in. File:Motor on top the block.JPG|The wood block will hold up the motor so the gear doesn't scrap the wood. File:Metal clamp.JPG|A metal clamp is used to tighten up motor. File:Motor held in place.JPG|The motor is held in place by a metal clamp that is tightened. File:Steel cable connected to hook.JPG|Steel cable connected to hook. File:Steal cable wrapped around hooks.JPG|The wire is wrapped around the hooks to hold the project together. 