{"id":545,"date":"2023-12-14T16:28:42","date_gmt":"2023-12-14T16:28:42","guid":{"rendered":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/?p=545"},"modified":"2023-12-16T04:48:56","modified_gmt":"2023-12-16T04:48:56","slug":"fire-fighting-robot-final-project","status":"publish","type":"post","link":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/2023\/12\/14\/fire-fighting-robot-final-project\/","title":{"rendered":"Fire Fighting Robot-Final Project"},"content":{"rendered":"<div class=\"et_d4_element et_pb_section et_pb_section_0  et_pb_css_mix_blend_mode et_section_regular et_block_section\" >\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_d4_element et_pb_row et_pb_row_0  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_4_4 et_pb_column et_pb_column_0  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_text et_pb_text_0  et_pb_text_align_left et_pb_bg_layout_light\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_text_inner\"><p>The problem presented to the class was to build a fire fighting robot out of an Arduino that can navigate a maze in order to extinguish a flame. The maze or track that the robot had to navigate was in the shape of an L. The track had to be successfully maneuver two different ways, once turning right, left, then left again, and left, right, then right. At the end of the maze, the robot is intended to snuff out a flame. The robot was created using various materials that were given to us over the course of the semester. Among the sensors that we used were, an ultrasonic sensor for the robot to sense the walls of the maze and an infrared sensor for the robot to detect the flame at the end of the maze. The wheels used for the robot to move were printed using a Prusa Mini 3D Printer along with the stepper motor mounts and the ping pong ball holder. We were also given stepper motors to move the robot along with a fan and relay switch. The relay switch was connected to the fan and infrared sensor so the Arduino would know when the power the fan.<\/p>\n<p>The problem that was given to us, we decided to build upon the assignments that we were given earlier in the semester. <a href=\"https:\/\/portfolio.wcu.edu\/ejmagnante1\/2023\/12\/15\/fire-fighting-robot-final\/\">Link to my partners blog post.<\/a><\/p>\n<p>I learned a lot about coding during this project. Before starting this project I knew little about coding in general. To code the robot, we used a stepper motor library for connivence. To simplify the code, we hard coded the two different track layouts into the code. When the robot drove into the first wall, it would turn to the left and take the reading from the ultrasonic sensor, then the robot would turn in the opposite direction and take another distance reading. After taking the two different readings the robot would then decide which track that was placed in front of it. If the reading from the left was shorter than the reading from the right, then the robot would determine the turns that it had to make in order to reach the end of the maze, and vise versa if the reading from the right was shorter than the reading from the left.\u00a0<\/p><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_d4_element et_pb_row et_pb_row_1  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_1  et_pb_css_mix_blend_mode et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_text et_pb_text_1  et_pb_text_align_left et_pb_bg_layout_light\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_text_inner\"><p>During the course of this project, we went through a few different changes. The wheels for the robot had to be reprinted several times due to the tolerance of the Prusa Mini that was being used. The motor hub of the wheel, where the wheel would fit onto the stepper motor was the reoccurring problem. The tolerance of the printer was off enough to make the motor hub too small to fit onto the stepper motor. We also intended to add a tone block that would mimic the sound of a fire engine siren, but do to a lack of time and complications with the circuits we could not make that addition.<\/p><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div><div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_2  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_gallery et_pb_gallery_0  et_pb_bg_layout_light et_pb_slider et_pb_gallery_fullwidth\">\n\t\t\t\t<div class=\"et_pb_gallery_items et_pb_grid_items et_post_gallery clearfix\" data-per_page=\"4\"><div class=\"et_pb_gallery_item et_pb_bg_layout_light et_pb_css_mix_blend_mode et_pb_gallery_item_0_0\"><div class=\"et_pb_gallery_image landscape\">\n\t\t\t\t\t<a href=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Top-view-scaled.jpg\" title=\"Top view\">\n\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"2560\" src=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Top-view-scaled.jpg\" class=\"wp-image-560\" srcset=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Top-view-scaled.jpg 1920w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Top-view-1280x1707.jpg 1280w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Top-view-980x1307.jpg 980w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Top-view-480x640.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1920px, 100vw\" \/>\n\t\t\t\t\t\n\t\t\t\t<\/a>\n\t\t\t\t<\/div><\/div><div class=\"et_pb_gallery_item et_pb_bg_layout_light et_pb_css_mix_blend_mode et_pb_gallery_item_0_1\"><div class=\"et_pb_gallery_image landscape\">\n\t\t\t\t\t<a href=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Side-view-scaled-e1702577472221.jpg\" title=\"Side view\">\n\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"2560\" height=\"1920\" src=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Side-view-scaled-e1702577472221.jpg\" class=\"wp-image-559\" srcset=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Side-view-scaled-e1702577472221.jpg 2560w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Side-view-scaled-e1702577472221-1280x720.jpg 1280w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Side-view-scaled-e1702577472221-980x551.jpg 980w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Side-view-scaled-e1702577472221-480x270.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 2560px, 100vw\" \/>\n\t\t\t\t\t\n\t\t\t\t<\/a>\n\t\t\t\t<\/div><\/div><div class=\"et_pb_gallery_item et_pb_bg_layout_light et_pb_css_mix_blend_mode et_pb_gallery_item_0_2\"><div class=\"et_pb_gallery_image landscape\">\n\t\t\t\t\t<a href=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Front-view-scaled-e1702577504739.jpg\" title=\"Front view\">\n\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1920\" height=\"2560\" src=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Front-view-scaled-e1702577504739.jpg\" class=\"wp-image-558\" srcset=\"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Front-view-scaled-e1702577504739.jpg 1920w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Front-view-scaled-e1702577504739-1280x720.jpg 1280w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Front-view-scaled-e1702577504739-980x551.jpg 980w, https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-content\/uploads\/sites\/1864\/2023\/12\/Front-view-scaled-e1702577504739-480x270.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) and (max-width: 1280px) 1280px, (min-width: 1281px) 1920px, 100vw\" \/>\n\t\t\t\t\t\n\t\t\t\t<\/a>\n\t\t\t\t<\/div><\/div><\/div><\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_d4_element et_pb_row et_pb_row_2  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_4_4 et_pb_column et_pb_column_3  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_video et_pb_video_0\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_video_box\"><iframe loading=\"lazy\" title=\"Fire Fighting Robot Maze Navigation\" width=\"1080\" height=\"608\" src=\"https:\/\/www.youtube.com\/embed\/9-guKzHjymE?feature=oembed\"  allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_text et_pb_text_2  et_pb_text_align_left et_pb_bg_layout_light\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_text_inner\"><p>This project was a success, however the final product was rough around the edges. If given more time the tone block would have become an addition to the final design of the robot. The wiring of the robot could have also been tidied up as well. In the end, this project allowed me to learn much about coding and design work.\u00a0<\/p><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2047,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-545","post","type-post","status-publish","format-standard","hentry","category-engr-199-intro-to-eng"],"_links":{"self":[{"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/posts\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/users\/2047"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/comments?post=545"}],"version-history":[{"count":10,"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/posts\/545\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/posts\/545\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/media?parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/categories?post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/jhenry4-engr\/wp-json\/wp\/v2\/tags?post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}