Window Shade Alarm Log

From ESE205 Wiki
Revision as of 20:25, 24 October 2017 by Colefitzsimmons (talk | contribs)
Jump to navigation Jump to search

Window Shade Alarm

9/1/17-9/7/17

Cole, Arnob, and Sam:
Met as a group to brainstorm ideas. Ultimately came up with this proposal: We are hoping to create an apparatus that opens your window shades automatically in the morning which would act as a nicer way to wake up than an annoying alarm. We would a servo motor to open the shades paired with an Arduino. The stimuli to open the shades could be activated based on time, light sensor, noise, and/or power from a solar panel.

9/8/17-9/11/17

Cole, Arnob, and Sam: Met again to come up with a list of supplies needed.
Cole: Focused on the hardware needed for the frame (wood, blind, screws, etc.).
Arnob: Focused on the hardware needed to make the shade move (servo motor, gears, etc.).
Sam: Focused on the Raspberry Pi and the software needed.

9/12/17-9/18/17

Cole, Arnob, and Sam: Met with Andrew on 9/12/17 for weekly meeting and discussed progress so far. Also set following tasks to for the week.
Arnob: Familiarizing himself with 3D modeling software and making gear.
Sam: Familiarizing himself with Raspberry Pi and making the display work.
Cole: Familiarizing himself with Raspberry Pi and making the motor work.
Cole, Arnob, and Sam: Met with Professor Feher and Andrew on 9/15/17 to discuss project.
Cole, Arnob, and Sam: Met as a group for 2 hours on 9/17/17 to continue working with Raspberry PI (display and servo motors). Finalized supply list. Had some difficulty getting servo motor connected to Raspberry PI.

9/19/17-9/25/17

Cole, Arnob, and Sam: Met with Andrew on 9/19/17 for weekly meeting. Each member worked with Andrew on their currents individual tasks as detailed below 1 hour. With the help of Andrew, we decided that we would use an Arduino Dual Step Motor Driver Shield paired with the stepper motor, which can be controlled by HIGH and LOW outputs from either an Arduino or Raspberry PI.
Cole: Worked on connecting stepper motor set up. This included determining that we will use an Arduino to control the motors as well as cutting and re-soldering the servo motor wires.
Sam: Continued to set up LCD display to work with Raspberry Pi. This included installing the necessary drivers to the Raspberry Pi and writing the necessary code.
Arnob: Continued to 3D model the gears with SolidWorks so they can help open the blinds.
Each member continued to work on their individual tasks over the weekend, as detailed below. Also worked on their group presentation.
Arduino Assignment:


Sam: In the afternoon of Sep 22nd (Friday), Sam spent 2 hours installing the arduino library for the 7-segment LED backpack, a substitute for Raspberry Pi LCD touchscreen. Sam programmed the arduino to make it available for users to set their time with two buttons. Video for Friday's work Spent 2 hours on 9/24 afternoon figuring out the serial communication between Rpi and arduino.

RPi to arduino.jpg


Arnob: Spent 1 hour on Sunday 9/24 making presentation for class on 9/29. Spent 2 hours on Monday 9/25 creating models of gears on SolidWorks. Referenced McMaster-Carr for ideas on different types of gears.

Cole: Spent 2.5 hours in lab on 9/24 to get stepper motor working and update wiki page and log. Finished wiring and successfully programmed it to turn. Stepper motor would only vibrate, not turn. Determined that battery pack is needed in order to provide more voltage (12V).


9/26/17-10/2/17

Met as a group with Andrew and Professor Feher for weekly meeting on 9/26. Each member discussed and worked on their individual components of the project.
Cole: Got the stepper motoring working (with the help of Sam and Andrew). Solution was to unplug one of direction wires. Still unsure of why this works (possibly were sending opposing signals to each other). Will continue to investigate.
Arnob: write what you did at weekly meeting here
Sam: write what you did at weekly meeting here

Cole: Worked in the lab on 9/28. Improved the functionality of the stepper motors, discovered root of wiring problem with Andrew's help, and figured out how to write code for the stepper.



Sam: Worked in the lab on 10/1 fo 3 and half hours in total. First worked with Cole to get NTP running on the RPI. And then installing the LED backpack library and other neccessary standard library (SPI.h) for the Arduino IDE on Raspberry Pi. Improved the code I have before to enable the Arduino correctly print out the time transmitted given by raspberryPi.

print time


Cole: Worked in the lab for 1.5 hours on 10/1 with Sam in order to control the Stepper Motor via the Raspberry PI. It was successful. Also worked with Sam to get NTP running on the RPI. Also spent 45 minutes outside of lab learning how to retrieve local weather data from a Raspberry Pi using the Wunderground API.

Raspberry Pi controlling Arduino and stepper motor


Arnob: 3D-printed first gear that will be directly connected to the Stepper motor. Researched the different possibilities for the other parts of our machine, and downloaded the respective templates from McMaster-Carr. Finally, started editing these parts on SolidWorks so we can utilize them for our Window Shade Alarm.

Gear1.jpg


Next steps for group:

  • Have RPI send time to Arduino
  • Have Arduino accept time from used
  • Have Arduino run code at given time

10/3/17-10/9/17

Team met with Andrew on 10/3/17 for weekly meeting. Team discussed mechanical design of project, showed progress so far, and discussed goals for the week.
Cole: Before meeting spent 1.5 hours getting Raspberry Pi to retrieve current weather data and print in nice format. Used sample Python code found on this website for a base, changed it slightly. Goal for the week is to get RPi to print 3 day forecast.


Arnob: On 10/8, spent a few hours modelling 3 different parts on SolidWorks for the assembly, including redesigning the gear which is directly attached to the stepper motor (changing the number of teeth and diameter of the hole), modelling a much bigger gear with 4x the number of teeth (which will attach to the stepper motor gear and increase torque), and a small metal bar/cylinder which will hold the larger gear. Attached is a hand-drawn diagram of the assembly.

Diagram of the assembly of parts which function to open the shades


Sam:
Cole: Spent a few hours during the week working to have the Raspberry Pi send the current weather data (that it now successfully fetches) to the Arduino in order to display the weather to the user.
Group met in lab to work together for a few hours on 10/8/17.
Cole: Successfully sent weather data from Raspberry Pi to Arduino with help of Sam. Next step is to have Arduino collect and store time and weather data from RPi using arrays so it can be printed to LCD later.
Sam: Spent one and half hour figuring out how to request print and update time in python and led backpack. It works successfually and I also completed the program of setting time, displaying time and compare setting time with the display time. However, on Sunday, the ledbackpack goes wrong without any reason; it can not display any digit we told it to print and any arduino program got into conflict it(program in loop() is not running. Cole and I spent over 1.5 hours on that, but it shows no sign of getting better.
Arnob:
Upcoming tasks:

  • Begin to order parts
  • Get LCD display working to display time and weather
  • Trigger stepper motor at certain time set by user
  • Begin to assemble physical apparatus

10/10/17-10/16/17

Group met with Andrew at normal meeting time. Discussed progress and goals for the week. Ordered new LCD parts. Fall break.

10/17/17-10/23/17

Met with Andrew on Thursday due to fall break. Discussed further progress and discussed goals for the week.
Cole: Soldered new LCD backpack and worked on code for sending weather to Arduino with Sam's help.
Sam: Worked on code for sending weather to Arduino. Worked on asselmbling codes of time display, motor control and weather display together.
Arnob: Spent a total of 3 hours this week watching videos to about SolidWorks. Although I have already downloaded a few objects from McMaster-Carr and successfully edited the models on SolidWorks, I still have a lot to learn about the various functions on SolidWorks, and I need this information the complete our project well. As a result, I thought spending those 3 hours watching videos was extremely helpful! Because of these videos, I should be able to model the complete assembly of all the different parts I need for the project (at least a good draft of the assembly), and show this assembly to Andrew on Tuesday 10/31 for feedback. This YouTube channel has been very helpful for learning SolidWorks: https://www.youtube.com/user/solidworks/featured

10/24/17-10/30/17

Cole, Arnob, and Sam: Traveled to Home Depot from 9-11AM on Tuesday, 10/24 to buy supplies needed for the construction of our device. These supplies included 2X4's, nuts, screws, and other supplies which are listed in our budget list. We should now have everything we need to complete the project.
Cole: Finalized Python code that sends string of weather data to Arduino. Sam helped also worked a lot on this code. Also researched how to use the second LCD that was purchased recently which will be used to display the weather data. Plan to solder this weekend. Sam:
Arnob:
The next big step in terms of the Arduino/Raspberry Pi is to create one script that calls on all of our other scripts in order to have all the programs run together as one cohesive unit.