Difference between revisions of "BetaDelta Log"

From ESE205 Wiki
Jump to navigation Jump to search
Line 102: Line 102:
 
**Finished the light sensor circuit that Bex started last week.   
 
**Finished the light sensor circuit that Bex started last week.   
 
*Nial:
 
*Nial:
**Connected the server to the wifi of the raspberry pi. Also obtained the ip address for the pi, as well as downloaded apache php, mysql, and wordpress.
+
**Connected the server to the wifi of the raspberry pi.  
 +
**Obtained the ip address for the pi
 +
**Downloaded apache php, mysql, and wordpress.
  
 
[[Category:Logs]]
 
[[Category:Logs]]
 
[[Category:Spring 2017 Logs]]
 
[[Category:Spring 2017 Logs]]

Revision as of 04:47, 4 April 2017

Week of January 27, 2017

  • Brainstormed project ideas
  1. Our main focus was on a website that provides realtime updates about the availability of South 40 study rooms
  • Held first meeting with our TA
  • Began work on our proposal

Week of February 3, 2017

  • Met with TA to finalize our project idea as well as work on some of its highlights
  1. Highlights that we decided we would like to include:
    1. User input ability, where students can publicize which subjects are being studied in specific study rooms
    2. The detection of room occupation via light sensor
    3. A history log of past room availabilities, so that students can make predictions for future study plans
  • Finished writing the proposal as a team

Week of February 10, 2017

  • Refined proposal
    • Edited Gantt chart and budget
  • Team decisions:
    • Add both motion and sound detectors to the light sensor, all of which will be hooked up to our raspberry pi
      • This will allow more accurate prediction on whether or not the room is occupied
  • Began learning how to code in python
  • Began brainstorming design ideas for Raspberry Pi casing
    • Official design must wait until materials arrive

Week of February 17, 2017

  • Edited Gantt chart and budget
  • Worked on recommendations from our TA about our proposal:
    • Streamlined our objectives
  • Continued python education
  • Edited design for Raspberry Pi casing
    • Still waiting on materials to be ordered and shipped

Week of February 24, 2017

  • Heavy exam week for systems engineers (includes all three team members)
  • Downloaded Google SketchUp for 3D printing design and began learning how it works
  • Continued brainstorming ideas for raspberry pi casing
  • Continued learning python
  • Obtained our raspberry pi

Week of March 3, 2017

  • Added a highlight to the BetaDelta website: users can now see a ranking of study rooms based on their probability of being available
  • Discussed how the website will display information for each study room
    • Light sensor: "on" or "off"
    • Motion and sound sensor - will report most recent indication of activity
  • Edited our budget:
    • Included the specific website host for BetaDelta
    • Got rid of the ethernet cord (using a wifi dongle instead)

Week of March 10, 2017

  • Bex:
    • drew final draft of device casing.
    • Top View: Pick51.jpg Front View: Pick61.jpg
    • The rectangular shape holds the raspberry pi in the bottom of the casing and the perf board built into the wall, with holes for each sensor to protrude. The motion sensor is at the top, with the light and sound sensors below for the front view drawing.
    • Practiced drawing a wine bottle in sketchup, and converted real drawing of casing into a 3D model in sketchup
    • Pick7.jpg Pick8.jpg
    • Created first outline for an algorithm. 5 necessary steps have emerged for the algorithm.
      • Before entering the algorithm:
        • Convert information from sensors into comparable numbers
        • Assign those numbers to a temporary variable
      • In algorithm:
        • Enter a conditional loop.
        • If motion sensor is activated within the last 15 minutes, the room is occupied.
        • If the light sensor and the sound sensor have both been activated within the last 5 minutes, the room is occupied.
        • Else, the room is NOT occupied.
        • Exit loop and refetch data.

Week of March 17, 2017

  • Bex:
    • Ran into issues converting sketchup file to an STL, so the solution was to redrew the sketchup model in CAD with more accurate lines and measurements.
  • In CAD:
    • Pick4.jpg Pick3.jpg
    • 3D printed (to a reduced scale) the first version of the case:
    • Pick10.jpg
  • JD:
    • Drew design for simulation box. We realized as a team that our simulation environment would need to support an easy way to turn a light on and off within the box, stop and start music, and have motion within the box while both other variables are negative (lights off, no sound) to show the first way that our algorithm loop breaks. Also built the circuit for the motion sensor and worked on its connection to the raspberry pi.
  • Nial:
    • Worked on server and connection to instance.

Week of March 24, 2017

  • Team: met and put the code for the motion sensor into the raspberry pi using python. We are working on the final steps to getting our server running, dealing with the issue of an encrypted wifi path.
    • Pic3.jpg
  • Nial:
    • Connected wifi dongle to the Wustl internet. Got server up and running!
  • Bex:
    • Printed the to-scale version of the casing. We found that all pieces fit relatively well into the case, but are going to make a few adjustments to allow the motion sensor to protrude further out from the case as well as have the sound detector have a better-fitted box. A hole was also added for the power supply, which was mistakenly forgotten in the first versions of the model. A second piece will be printed, the wall mount, and superglued to the rectangular case that holds the raspberry pi and sensors itself. Two pieces are necessary because the 3D printers are limited in the size of model they can print at a time. A picture of the first to-scale model is below:
    • Pic2.jpg Pic1.jpg
    • Reprinted there final version of the casing, with rounded edges and a slightly larger hole for the sound detector. Also printed a backing so that it can be mounted to the wall.
    • Started the circuit for the light sensor and connected it to the raspberry pi as well as soldered wires to the sensor.
  • JD:
    • Made the circuit for the motion sensor. Coded python into raspberry pi and succeeded in getting the motion sensor working! Worked on getting wifi connected to the raspberry pi, running into issues with the CA certificate. Bex and JD have been working on getting the wifi up, spending time in the lab 5 different days this week each. Our solution moving forward is to seek help from a friend, John Gibson, who has vast experience working with wifi raspberry pis.
  • Here is our motion sensor working and the code JD used:
    • PicMS.jpg PicCodeMS1.jpg

"Week of March 31, 2017"

  • Wifi Situation:
    • Brought in help from Mr. Gibson, who hooked up the wifi for us and walked us through the code of how he got there. He also lent us transistors for our sound detector, alerting us that our raspberry pi doesn't have a way do the job of an ADC (analog digital converter). This is significant because we would have realized very quickly that our circuit wouldn't work if he had not told us what we were missing! We made the team decision to use transistors instead of an ADC because the transistors will give us a "yes or no" response, based on a range that we input into the code, instead of a spectrum. It should also make for simpler coding altogether.
  • Bex:
    • Made some very small, but important, edits to the to-scale model for the case. The sound detector needed a few millimeters more space and the circle on the front was changed to a square in order to allow the motion sensor to reach its full potential of detection. Edits in the CAD lab were also made for the triangular piece that serves as a wall-mount/ allows the device to fit nicely into any room's corner. The idea for the cap is very simplistic and will be printed after all circuits are soldered to the final perf board.
  • JD:
    • Downloaded i2C using a tutorial recommended by Mr. Gibson
    • Finished the light sensor circuit that Bex started last week.
  • Nial:
    • Connected the server to the wifi of the raspberry pi.
    • Obtained the ip address for the pi
    • Downloaded apache php, mysql, and wordpress.