User:Mohjee259/Project 2

Week 5 Narrative
Task:
 * Link the Processing program to the Arduino Motor Code
 * Make case for Arduino w/ Motorshield

Doings:
 * Designing case for Arduino w/ Motorshield
 * Problem: Need specifications for the size of the Arduino
 * Need a lid
 * Need location for holes on Arduino
 * Solution: Get overall size
 * Approx. 3" x 2"
 * Glue Screws into the bottom of the box like guides/aligners
 * Use the raft as a lid


 * How to keep box solidly "posted" on the wall
 * Problem: How to keep the box on the wall
 * Design Solutions
 * Design Solutions

Week 6 Narrative
My method of connecting the Arduino to the Processing program was by have it do a neural handshake. When the Processing program does a successful scan it displays "Successful scan. Ready for next barcode".

Doing:
 * Make a if statement and station it in the record-attendance tab where
 * the code detects if a certain message is outputted.


 * Only want the Arduino motor code to run if the barcode scan is successful
 * if (messages.equals("Successful ID Scan .. marked arrived .. ready to scan another"))
 * myPort.write('1');
 * println("1");
 * myPort.clear;
 * myPort.write('0');
 * }
 * }


 * Experimenting with the Processing code to find where to paste the "system.print "1" code"
 * Problem:
 * Had troubles getting the Processing program to send a "1" variable to the Arduino code because I need to use the lines:
 * >import processing.serial.*;

and
 * >Serial myPort;"
 * Solution: Paste the "import processing.serial.*" and "Serial myPort;" lines on the main SCANGUI tab so they can be continuously looped

void loop { if (Serial.available) { // If data is available to read, val = Serial.read; // read it and store it in val } if (val == '1') { // If 1 was received digitalWrite(ledPin, HIGH); // turn the LED on   { motorGo(1, CCW, 200); //open door handle delay(1000);
 * Arduino Motor Code
 * Able to make the motor run only if a "1" was received from serial communications by using if else
 * Require the Arduino to receive a "1". Once received the Arduino will use the motorGo commands

motorGo(1, CCW, 75); //hold door handle delay(7000);

motorGo(1, CW, 100); //close door handle delay(110);

motorOff(1); } }  else {   digitalWrite(ledPin, LOW); // otherwise turn it off } delay(10); // Wait 1 milliseconds for next reading }

}
 * Did finishing touches to mountings (can still be improved)

Next Steps:
 * Better cord management
 * Receive longer USB extension (ordered)
 * Need to solder the motorshield wires to the door motor (right now the wires are just wrapped around the motor terminals)
 * Figure out how to use the door opening motor (motor that opens door similar to handicap doors)

Week 7 Narrative
Task: Re-download updated Attendance Scanning from Github and apply my code to it
 * Find why computer is blue-screening
 * HCC Tech will replace computer

Doing:
 * Copy and Pasted code from old Attendance Scanning Master to new Attendance Scanning Master (one with the lock animation)

Found out that the processing program does not launch when a connection with the Arduino isn't made.


 * Looking at the computer specifications
 * Has not been updated since January 24th, 2014
 * Searching for updates came up with 105 updates (1374.1 MB, total) <<quite ridiculous.
 * Not sure how to end deepfreeze
 * Ended the process deepfreeze.exe in the task manager


 * Used gaffers tape to keep barcode scanner wire against the wall and floor. Done nicely. Forgot pictures, will upload to Week 8 Narrative

Next Steps:
 * Organize cords on the wall
 * Thinking about using wire sleeves

Week 8 Narrative
Task:
 * Re-code Attendance Scanning into the Arduino.
 * Use zip ties on Arduino power supply cables

Doing:
 * Better Arduino cable management

Before


 * Wondering if copying Processing code into Arduino Will work.
 * Posted on Arduino Forum, got replies.
 * Possible error causers:
 * Screensaver causes problems
 * Only allow data travel through USB
 * Will have to reprogram the Processing code into the Arduino Code