{"id":506,"date":"2023-04-03T00:54:58","date_gmt":"2023-04-03T00:54:58","guid":{"rendered":"https:\/\/portfolio.wcu.edu\/sjallen7\/?p=506"},"modified":"2023-04-03T00:54:58","modified_gmt":"2023-04-03T00:54:58","slug":"ultrasonic-sensor-controlling-a-servo-motor","status":"publish","type":"post","link":"https:\/\/portfolio.wcu.edu\/sjallen7\/2023\/04\/03\/ultrasonic-sensor-controlling-a-servo-motor\/","title":{"rendered":"Ultrasonic Sensor Controlling a Servo Motor"},"content":{"rendered":"<p>For this assignment, I used an Ultrasonic Sensor to control a Servo Motor. I first wrote my code on an online simulator (Tinkercad) to control the Ultrasonic sensor, then to control a Servo Motor. I combined the two codes to create the final code. I then mimicked the simulation on Tinkercad and built it on the real Arduino and I copied the code in Arduino.<\/p>\n<p>How do they work?<\/p>\n<p>In an Ultrasonic sensor, one side transmits radio waves, and the other side receives then when they bounce off an object. When the sensor receives the waves, the sensor will read &#8220;HIGH&#8221;. The longer they take to get back to the sensor the farther the object. If the sensor receives no waves after transmitting them then the sensor will read &#8220;LOW&#8221; because there are no objects in front of the sensor.<\/p>\n<p><a href=\"https:\/\/wcu.hosted.panopto.com\/Panopto\/Pages\/Viewer.aspx?id=7783de12-c927-472f-aba6-afd9000dca55\">https:\/\/wcu.hosted.panopto.com\/Panopto\/Pages\/Viewer.aspx?id=7783de12-c927-472f-aba6-afd9000dca55<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this assignment, I used an Ultrasonic Sensor to control a Servo Motor. I first wrote my code on an online simulator (Tinkercad) to control the Ultrasonic sensor, then to control a Servo Motor. I combined the two codes to create the final code. I then mimicked the simulation on Tinkercad and built it on [&hellip;]<\/p>\n","protected":false},"author":1968,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-506","post","type-post","status-publish","format-standard","hentry","category-motor-mount"],"_links":{"self":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts\/506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/users\/1968"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/comments?post=506"}],"version-history":[{"count":1,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts\/506\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/posts\/506\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/media?parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/categories?post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolio.wcu.edu\/sjallen7\/wp-json\/wp\/v2\/tags?post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}