{"id":77,"date":"2016-05-14T20:16:56","date_gmt":"2016-05-15T00:16:56","guid":{"rendered":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/?page_id=77"},"modified":"2021-05-24T15:08:00","modified_gmt":"2021-05-24T19:08:00","slug":"lab-notebook","status":"publish","type":"page","link":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/lab-notebook\/","title":{"rendered":"Lab Notebook"},"content":{"rendered":"<h3 style=\"text-align: center\">The Main Foginator&#8217;s Lab Notebook<\/h3>\n<hr \/>\n<p>The\u00a0main notebook that was collaborated on can be seen by clicking on this <a href=\"https:\/\/ece454designprojects.scranton.edu\/foginator\/notebook\/\">Link<\/a>. \u00a0This will show our plans for construction as well as our layout of various sensor data.<\/p>\n<h3 style=\"text-align: center\">My\u00a0Foginator Lab Notebook<\/h3>\n<hr \/>\n<p>My portion of the project consisted of programming a webpage to read and update pictures and values taken as well as helping to build the foginator and circuitry. \u00a0This consisted of 3D-printing custom parts to our various needs or drilling holes to attach fans and sensors to various locations. \u00a0The programming aspect consisted of creating a customized user interface. \u00a0The code and techniques used to accomplish this task can be seen below:<\/p>\n<div class=\"post-content\">\n<p><strong>Step 1: Data Collection<\/strong><\/p>\n<p>The first step in the process of building a user interface is the retrieval of the data. \u00a0This is done through programming on the arduino which will read and right to the various I\/O located within the Foginator. \u00a0To read more about how this is done visit our<strong> *********page*********** and*******link it************<\/strong><\/p>\n<p><strong>Step 2: Communicating the Data to the Server<\/strong><\/p>\n<p>Once the data has been acquired the arduino will send the information over an I2C protocol to the raspberry pi server. \u00a0The communication will be controlled through the following python file.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-116\" src=\"https:\/\/ece454designprojects.scranton.edu\/foginator\/wp-content\/uploads\/sites\/17\/2016\/03\/read_data-1.png\" alt=\"read_data\" width=\"513\" height=\"876\" \/><\/p>\n<p><strong>Step 3: Taking a Picture with the Raspberry Pi<\/strong><\/p>\n<p>The algorithms we wish to use will not only use the newly acquired data, but will also utilize photos taken from the raspberry pi. \u00a0To take a continuous images with the raspberry pi one uses the following script.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-117\" src=\"https:\/\/ece454designprojects.scranton.edu\/foginator\/wp-content\/uploads\/sites\/17\/2016\/03\/cam_capture.png\" alt=\"cam_capture\" width=\"296\" height=\"414\" \/><\/p>\n<p>There are many additional variables that can change to help capture perfect images.<\/p>\n<p><strong>Step 5: Combining the Images into an html\u00a0File<\/strong><\/p>\n<p>Raspberry pi\u2019s can host simple servers with a single command. \u00a0To utilize this to our advantage one can simply build a python script that will return the necessary html\u00a0file updates the website every thirty seconds. \u00a0The python script can be seen below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-120\" src=\"https:\/\/ece454designprojects.scranton.edu\/foginator\/wp-content\/uploads\/sites\/17\/2016\/03\/test_1.png\" alt=\"test_1\" width=\"602\" height=\"506\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-121\" src=\"https:\/\/ece454designprojects.scranton.edu\/foginator\/wp-content\/uploads\/sites\/17\/2016\/03\/test_2.png\" alt=\"test_2\" width=\"597\" height=\"668\" \/><\/p>\n<p><strong>Step 6: Viewing the Webpage:<\/strong><\/p>\n<p>The files above come together to form a website that displays the image being received from the raspberry pi as well as the I\/O from the arduino. \u00a0an example image can be seen below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-152\" src=\"https:\/\/ece454designprojects.scranton.edu\/foginator\/wp-content\/uploads\/sites\/17\/2016\/03\/WebsiteScreenshot.jpg\" alt=\"WebsiteScreenshot\" width=\"1280\" height=\"960\" \/><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Main Foginator&#8217;s Lab Notebook The\u00a0main notebook that was collaborated on can be seen by clicking on this Link. \u00a0This will show our plans for construction as well as our layout of various sensor data. My\u00a0Foginator Lab Notebook My portion of the project consisted of programming a webpage to read and update pictures and values [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-77","page","type-page","status-publish","hentry","post-preview"],"_links":{"self":[{"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/pages\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/comments?post=77"}],"version-history":[{"count":3,"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/pages\/77\/revisions"}],"predecessor-version":[{"id":81,"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/pages\/77\/revisions\/81"}],"wp:attachment":[{"href":"https:\/\/ece454designprojects.scranton.edu\/chadryan\/wp-json\/wp\/v2\/media?parent=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}