{"id":412,"date":"2019-03-31T13:39:52","date_gmt":"2019-03-31T13:39:52","guid":{"rendered":"https:\/\/commons.princeton.edu\/epics\/?page_id=412"},"modified":"2019-05-06T22:37:59","modified_gmt":"2019-05-06T22:37:59","slug":"mslogo","status":"publish","type":"page","link":"https:\/\/commons.princeton.edu\/epics\/about-2\/2019-2\/mslogo\/","title":{"rendered":"Light Up Soccer Goal Utilizing an Arduino and Motion Sensor"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row][vc_column][vc_zigzag el_border_width=&#8221;8&#8243; css=&#8221;.vc_custom_1553988634650{margin-bottom: 20px !important;}&#8221;][vc_column_text]<\/p>\n<h3>Students<\/h3>\n<p>[\/vc_column_text][vc_row_inner][vc_column_inner width=&#8221;1\/6&#8243;][vc_single_image image=&#8221;1027&#8243; img_size=&#8221;medium&#8221; css=&#8221;.vc_custom_1557181943559{margin-bottom: 0px !important;border-bottom-width: 0px !important;}&#8221;][vc_column_text]Richard Wolf<br \/>\nComputer Science, 2021[\/vc_column_text][\/vc_column_inner][vc_column_inner width=&#8221;1\/6&#8243;][vc_single_image image=&#8221;1026&#8243; img_size=&#8221;medium&#8221; css=&#8221;.vc_custom_1557181935827{margin-bottom: 0px !important;border-bottom-width: 0px !important;}&#8221;][vc_column_text]Jonah Lytle<br \/>\nComputer Science, 2021[\/vc_column_text][\/vc_column_inner][vc_column_inner width=&#8221;1\/6&#8243;][\/vc_column_inner][vc_column_inner width=&#8221;1\/6&#8243;][\/vc_column_inner][vc_column_inner width=&#8221;1\/3&#8243;][\/vc_column_inner][\/vc_row_inner][vc_zigzag el_border_width=&#8221;8&#8243; css=&#8221;.vc_custom_1553988638130{margin-bottom: 20px !important;}&#8221;][vc_column_text]<\/p>\n<h3>Project Description<\/h3>\n<p>We bought a 3 foot by 2 foot by 2 foot goal since our pipes and joints never arrived. We attached to the crossbar the Arduino with light and PIR motion sensor attached. This light lights up when a ball rolls into the goal due to use of the PIR motion sensor.. We wrote code to program the Arduino to recognize when the PIR motion sensor detected movement and subsequently turn on the attached light. We experimented with different positions for the motion sensor and placed it in the optimal location to recognize a ball passing over the line and into the back of the net. We wrote this code code in the Arduino application in C. Jonah and Richard are on the varsity soccer team Princeton University, and wanted to create something interesting related to soccer. Both students are also in the BSE computer science department at Princeton, and wanted to utilize programming in combination with a motion sensor to create something fun and practical.[\/vc_column_text][vc_zigzag el_border_width=&#8221;8&#8243; css=&#8221;.vc_custom_1553988641874{margin-bottom: 20px !important;}&#8221;][vc_column_text]<\/p>\n<h3>Technical Background<\/h3>\n<p>[\/vc_column_text][vc_row_inner][vc_column_inner][vc_column_text]Arduino boards are extremely useful because they are capable of reading analog or digital input from different sensors, such as a PIR motion sensor, and turning that input into output. The majority of arduino boards consist of an Atmel 8-bit AVR microcontroller. Arduino boards are loaded with program code by a serial connection to a computer. Serial arduino boards utilize a level shifter circuit that enable the board to convert between RS-232 logic levels and transistor-transistor logic levels. An arduino functions by taking in as input pulse-width modulated signals from auxiliary sensors, performs operations based on those signals, and produces a corresponding output signal to auxiliary attachment technologies. If an external sensor, such as a PIR sensor detects a change in one image to a subsequent image, it generates an output signal to indicate that change. An arduino is capable of taking signals such as this one as input, and then performing a function utilizing the microcontroller coupled with the uploaded code along with the input signal to produce some output signal that produces the desired effect in the attachment. The arduino board has most of its microcontroller I\/O pins exposed, so that they can be utilized by other circuits. These exposed I\/O pins enable circuits of auxiliary technologies, such as motion sensors, to function alongside the arduino. The arduino itself is an open sourced electronics platform used for building electronics projects. An arduino consists of a microcontroller, or a physical programmable circuit board, as well as an IDE (Integrated Development Environment). This piece of software runs on a computer, and can be utilized to write and upload computer code to the microcontroller. There are many different kinds of arduino boards that differ in operating voltage, clock speed, analog input number, and other components, that all make use of the same arduino IDE. As a result of all making use of the same IDE, the same code can be utilized to operate every arduino circuit board.[\/vc_column_text][vc_column_text]<em>Arduino. (2019). Introduction to Arduino. Retrieved March 8, 2019, from https:\/\/www.arduino.cc\/en\/guide\/introduction Tutorialspoint.com. (2019). Arduino Board Description. Retrieved March 15, 2019, from https:\/\/www.tutorialspoint.com\/arduino\/arduino_board_description.ht<\/em>m[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_zigzag color=&#8221;black&#8221; el_border_width=&#8221;8&#8243; css=&#8221;.vc_custom_1553988646466{margin-bottom: 20px !important;}&#8221;][vc_column_text]<\/p>\n<h3>Design Drawings<\/h3>\n<p>[\/vc_column_text][vc_media_grid grid_id=&#8221;vc_gid:1557181884738-948185a2-ca21-10&#8243; include=&#8221;1029,1030,1031,1032,1033&#8243;][vc_zigzag css=&#8221;.vc_custom_1553988654467{margin-bottom: 20px !important;}&#8221;][vc_column_text]<\/p>\n<h3>Fabrication Process<\/h3>\n<p>[\/vc_column_text][vc_row_inner][vc_column_inner][vc_column_text]<\/p>\n<div id=\"bannerR\">\n<div id=\"div-gpt-ad-1474537762122-3\" data-google-query-id=\"CJ3tvPmBq-ECFQJ6wQodrYYMtQ\">\n<div id=\"google_ads_iframe_\/15188745\/Lipsum-Unit4_0__container__\">Our fabrication process started with figuring out what we wanted to build the goal out of as well as what technology we wanted to use to detect movement into the goal. We started off by researching proximity sensors but ended up deciding that a motion sensor would be a better option as we wanted any type of ball entering the goal to register and turn on the light. When researching motion sensors we came across the PIR motion sensor as well as the Arduino R3 which could be used to turn on lights as well. We had thought that our first major fabrication step would be the assembly of the goal from PVC pipes and joints, however, these never arrived and thus we had to buy our own goal already assembled. We coded in C using the Arduino open source coding app on a computer. We then uploaded this code to the Arduino via a USB a-b cable. We created the Arduino circuit with attached motion sensor and light by inserting the wires into the desired ports and then attached this system to various locations on the goal. The Arduino received power via the USB a-b cable plugged into a computer. We then tested how the system responded to the motion sensor being placed in various locations and came to the conclusion that placing it on the crossbar was the most effective place. We attached the Arduino (with light inserted into a port) and motion sensor onto the crossbar of the goal with tape which matched the color of the goal.<\/div>\n<\/div>\n<\/div>\n<p>[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][vc_media_grid grid_id=&#8221;vc_gid:1557181884740-fcc11464-2992-6&#8243; include=&#8221;1034,1035,1036,1037,1038,1039,1040,1041,1042,1043&#8243;][vc_zigzag css=&#8221;.vc_custom_1553988664868{margin-bottom: 20px !important;}&#8221;][vc_column_text]<\/p>\n<h3>Final Result<\/h3>\n<p>[\/vc_column_text][vc_media_grid grid_id=&#8221;vc_gid:1557182036524-bd95884e-ec92-9&#8243; include=&#8221;1044,1045,1046,1047,1048,1049,1050&#8243;][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>[vc_row][vc_column][vc_zigzag el_border_width=&#8221;8&#8243; css=&#8221;.vc_custom_1553988634650{margin-bottom: 20px !important;}&#8221;][vc_column_text] Students [\/vc_column_text][vc_row_inner][vc_column_inner width=&#8221;1\/6&#8243;][vc_single_image image=&#8221;1027&#8243; img_size=&#8221;medium&#8221; css=&#8221;.vc_custom_1557181943559{margin-bottom: 0px !important;border-bottom-width: 0px !important;}&#8221;][vc_column_text]Richard Wolf Computer Science, 2021[\/vc_column_text][\/vc_column_inner][vc_column_inner width=&#8221;1\/6&#8243;][vc_single_image image=&#8221;1026&#8243; img_size=&#8221;medium&#8221; css=&#8221;.vc_custom_1557181935827{margin-bottom: 0px !important;border-bottom-width: 0px !important;}&#8221;][vc_column_text]Jonah Lytle Computer Science,&hellip; <a class=\"read-more\" href=\"https:\/\/commons.princeton.edu\/epics\/about-2\/2019-2\/mslogo\/\" title=\"Light Up Soccer Goal Utilizing an Arduino and Motion Sensor\"><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1379,"featured_media":1045,"parent":212,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-412","page","type-page","status-publish","has-post-thumbnail","hentry","category-12"],"_links":{"self":[{"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/pages\/412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/users\/1379"}],"replies":[{"embeddable":true,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/comments?post=412"}],"version-history":[{"count":3,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/pages\/412\/revisions"}],"predecessor-version":[{"id":1051,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/pages\/412\/revisions\/1051"}],"up":[{"embeddable":true,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/pages\/212"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/media\/1045"}],"wp:attachment":[{"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/media?parent=412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/categories?post=412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/commons.princeton.edu\/epics\/wp-json\/wp\/v2\/tags?post=412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}