Smart Plug

 Screen Shot 2017-07-17 at 10.07.22 AM

Gabriel Grajeda, Rian Toussaint, Khari Watson 

Reference Links:

  • https://www.powr.io/users/auth/google_oauth2/callback?state=394914789171c23d2c763baa66c668fe131db71922f680b4&code=4/7eaLdthT3njBqyJCYxlkHmWRV0M0V_IEh9RiSInP-5M#
  • https://www.w3schools.com/css/css3_animations.asp
  • https://www.w3schools.com/howto/howto_js_dropdown.asp
  • https://www.w3schools.com/js/js_functions.asp
  • https://thingspeak.com/channels/84008

For Photos:

  • https://mail.google.com/mail/u/0/#inbox/15d75c612e382ed9
  • https://mail.google.com/mail/u/0/#inbox/15d74efc4417462a
  • https://mail.google.com/mail/u/0/#inbox/15d74ff5797f3930
  • https://mail.google.com/mail/u/0/#inbox/15d7506fd1a1a481
  • https://mail.google.com/mail/u/0/#inbox/15d75ab80458efe4
  • https://mail.google.com/mail/u/0/#inbox/15d75213101f53da

Problem

Home owners not having an affordable alternative to transform typical household objects into smart objects.

Solution

Smart plug is a cost efficient solution of having a smart home and allowing the buyer to have the ability to switch the flow of electricity wherever they place the product.

The definition of a smart home is very straight forward. Using this plug will enable you to control any electron

IOT meaning the internet of things refers to the network of physical objects that feature an IP address for internet connectivity, and the communication that occurs between these objects and other Internet-enabled devices and systems.ic appliance that you attach to it. The average cost for a samsung smart package costs well over $200

Working with a budget of nothing over 100 we are developing a smart plug that cost half of a quarter of what it costs to get a smart home package.

Technologies

Physical Programming

for programming the photon

Digital Fabrication

designing the outside case for our smart plug for the most part we will be using a 3D printer for the case. And If we do have time, we can laser cut, and press fit  a case It depends on what kind of time we have. 

Electronics

We are working with relays

An esp

A photon which is used to control a circuit in our schematic using wifi which can be controlled by a hand held device and outer power surge for our project

Audience

 From the Middle class to lower class families

Materials

1 Photon

5 Relays

Leviton 80703

1 Extension cord 

1 VGA cable

Concept and Design

The concept within Smart-Plug is to allow low income families experience a smart home with low cost . The assets to this concept are the plug itself, the monitor, and the app.

The design currently is that there would be 3 central parts to the concept. A monitor to view the flow of electricity, a plug to control the flow of power (and to possibly save some of that power if there were ever to be a power outage) , and finally an app  view and manually control the monitor and the plug to the buyer’s content.

Pros and Cons

The pros are as follows:

  • Allows families to experience smart homes with destroying their wallets
  • Adds a touch of connivence to their homes
  • Allows our audience to be better equipped if a power outage were to happen
  • It helps out audience become more environmentally friendly if the want to lower their power usage with our product

The cons are as follows:

  • It may seem very clunky in design
  • There are other alternatives
  • Worst case scenario it could short circuit

Daily Log:

07/11/17 

We further fleshed out our project by by addressing the problems regarding voltage, the price limits along with the production of the smart plug, and contemplating the timezone of which this project can be done.

FullSizeRender (9)FullSizeRender (8)

07/12/17

We made up the project as we went n and made the prototype out of cardboard. We didn’t get much criticism fem the project panelist. this could go two ways… being really good, or really bad. We had problems referring to AC, and DC currents. we had doubt on if  it would be feasible

07/17/2017

 FullSizeRenderFullSizeRender (1)

 

FullSizeRender (2)

Project diagrams for the app and monitor 

07/18/2017

We had a lesson over the use and the formatting of a particle photon for our wifi-based project. Basically including web connected LEDs and how to publish events on a console. We also researched on using more python based code in our project.

07/19/2017

Goals for today:

  • How to connect a raspberry-pi to a computer monitor

We now changed the asset of it being an app to it being a website that still is accessible through your phone.

Conflicts:

  • We don’t know if creating the website may work without the use of the particle photon app which would pretty make the effort pointless.

FullSizeRender (6)

We also created our website for the viewing of the smartplug, here’s the URL:

  • https://thimbleprojects.org/rgt/299424

07/20/2017

We plan to program our website with HTML to insert weather info and connect it with the raspberry-pi. And to also figure out how to physically connect the raspberry-pi to a monitor along with furthering our physical design.

Screen Shot 2017-07-20 at 11.23.46 AMIMG_2279

 

This is me attaching the raspberry pi to a monitor. Most parts I found from around the middle room. It was complicated, but I managed. We seemed to be missing a HDMI cable but Susan helped us out with that. I had trouble loading files on the sd card but I googled and downloaded the file just in time for lunch. The next problem that I had to tackle was having the Raspberry pi hooked up to the monitor, and having it show up on the monitor. Ming came by and told me that I might not have to do that If we can get the relay working. “Whew!”

-Khari

IMG_2280

 

07/24/2017

Today we are mainly focusing on the adapting the monitor to the rasberry-pi, using a converter given to us by susan, and updating our html and css powered website. our monitor is a regular and standard dell monitor 

FullSizeRender (5)

 

We also got our many cables, boxes, and plugs/outlets.

FullSizeRender (1)FullSizeRender (3)FullSizeRender (2)FullSizeRender (4)FullSizeRender

 

And we also programmed some relays along with our websiteIMG_2294

FullSizeRender (7)IMG_2293IMG_2292

 

07/25/2017

Today we are focusing on 3 things. Learning newer software so that we have better control for the relays, working on the html website that we have for the presentation and mechanics of the plug, and finally beginning to consider the actual look of our project.

07/26/2017

Pictures regarding our designs

  • https://ci4.googleusercontent.com/proxy/_l_phww-NyFOdTeU_U5Pao3idKFITJrX3uCiZdaIM6awpewpB1qdxYtklhBYOdoo59Zupu1vfWfk8qGPpnXmf7Eai6tVVm4rQiUgZn1aJ5-b6vKChjart-gCLLgRcrlypHkFHgdV-A524rKvDK3RuCkah-9eYuW4O8pLtLTKtDU=s0-d-e1-ft#https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT4YD8pu42zjKtCbmydHc0gO01S7DfYvrh99ZwE4Si4r9y6-JExXw
  • https://ci5.googleusercontent.com/proxy/BGLRehQa-gLjG3KEea2XsmsVKW3Ulv2jefzbmsTf0K6SQH6bmFwd-XCPEIVybTp89-Ahf5fnSJgrUnufVFcU2zuHTMLLkyyCQ5JS7B5CPxqXM5KcCfI6PlAzDxVIRgWjhUeMRB49mP5q2rBvR76ufcFZwEmu4BQg5gbZbsPBk3s=s0-d-e1-ft#https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSEE_972iMHXSUqQarSoy1Vltrd-M9dHGkMiNscm4o_Mtk30zHcTg
  • https://ci6.googleusercontent.com/proxy/-8FLua1MSv_QWFk2CJmbKA5k8y5-FYh0_83oG1P3WsdwEYUCcPhDreJOn00cZAXmesBishIBa7ABKTVzzb8lMiuYBdaYNzqXyuJUtZFZsiB1T3E7jmV1gnrEKx6hgINB3psUp6zYowscIRw4V-h7nPhcFrz04si9JBi9HDnE=s0-d-e1-ft#https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT8_K2LCkiBAv4j6fnD43A_PTLt93o2-7bSMMjaMoFkB8iOkKWg

07/26/2017

What we accomplished today was designing our actual frame for our smart plug. we designed it through Tinkercad, and It took half of the day to accomplish. We did a lot of measurements regarding the length with, and height of our project. We also made a list of all the priorities that we needed to finish the project including:

  • HTML page
  • Coding of the ESP
  • Printing of the frame 

What we still need to do:

  • Finish and decorate the HTML webpage
  • Code the esp8266 to connect to webpage
  • Materials needed:
  • Voltage reader
  • Second outlet and encasing
  • 3D print the encasing

FullSizeRender (1)FullSizeRenderIMG_2306

 

07/31/2017

Today our goals for our project are:

  • To print our 3d demo of our frame for our Smartplug

IMG_2325IMG_2324IMG_2323IMG_2322

  • To continue to design the web page on Mozilla Thimble

IMG_2321IMG_2452

 

08/1/2017

Our goals for today are:

  • Redesigning the smart plug frame
  • Sketch redesigns
  • Consider how much we have done with the web site.
  • Prep of the website

Our conflicts for today are:

  • Having enough time to finish everything
  • Redesigning might take a little longer due to false measurements
  • Probability that frame might not be printed due to time constraints

08/03/2017

Today we are doing research on putting a kill a watt meter on our website, but all that were there according to google blogs stating that there is no such thing. so we decided to hack one. I fount a hack to make an Kill a Watt wireless. The website is located below:

  • https://hackaday.com/tag/kill-a-watt/
  • https://forum.arduino.cc/index.php?topic=50478.0

08/08/2017

Today we continued the work on the project with Gabe working on making sure the wiring and connection between the esp worked , and  the rest of us working on learning css and javascript to better handle the website. Today was mostly understanding variables and substrings.

IMG_2452IMG_2450IMG_2449

And these are also the 2 websites we use to help us record data and feeds:

  • https://learn.adafruit.com/adafruit-io/feeds
  • https://io.adafruit.com/rgt/settings

 

08/09/2017

We updated the website with more widgets. Including a notification bar, a button, and a comment section. A challenge we faced today was not exactly know where to begin.

08/15/2017

Today we successfully reached another step with connecting our esp micro controller to the website and finding more code to  establish a better connection. This is for our esp to better our project so that it works for whoever uses it. IMG_2507IMG_2473IMG_2492IMG_2508

 

Links we used today:

  • https://www.jmarshall.com/easy/http/#sample
  • http://www.open-sensing.org/wsnblog/2017/4/4/adafruit-io-data-logging-update
  • https://io.adafruit.com/gabrielgrajeda/dashboards/smartplug
  • https://stackoverflow.com/questions/12843764/javascript-how-to-program-button-to-act-like-a-mouse-click
  • https://gist.github.com/deckerego/e1a96b79dd7ee398e09e/revisions?diff=unified

 

08/17/2017

Today we tested out the smaller parts of our project to make sure its fully functional. specifically with our relays and capacitors. we also printed out a yellow frame for the plug.

IMG_2511 IMG_2521 IMG_2522

 

 

8/22/2017

We have completed the project in time for the expo. we have a total of four outlets, and we made a 3D printed lid, and a 3D printed case. 

We learned many things during the expo, and events leading up through the expo. Fore one thing I learned that there are always more than one way to finish things. We ended up not even using the raspberry pi so a lot less wiring, and hook up for me. 

My experience with working with a group was a little stressful with plenty of dead ends, and sheer cliffs as far as with designing it we always tried to strive to perfect it, and make our project better. If we had more time, we could have tried to make a better case, and try to add more features to our plug for example an  LCD screen.

These are the videos of our demonstration of the newly finished smart plug

smartplug1

SmartPlug2