{"id":3743,"date":"2021-03-25T20:27:11","date_gmt":"2021-03-25T20:27:11","guid":{"rendered":"http:\/\/rodmilstead.com\/pt\/?page_id=3743"},"modified":"2024-03-19T15:31:56","modified_gmt":"2024-03-19T15:31:56","slug":"arduino-display-and-ultrasonic-sensor","status":"publish","type":"page","link":"https:\/\/rodmilstead.com\/pt\/arduino-display-and-ultrasonic-sensor\/","title":{"rendered":"Arduino Warning Sensor"},"content":{"rendered":"<p>In this assignment you will create a circuit that includes a display and an ultrasonic sensor.<\/p>\n<p>The goal is to write a program that will use an if\/else statement to display a warning AND use custom characters as part of the warning when you get too close!<\/p>\n<p>The trick is to use an if\/else statement that changes the message displayed on the LCD<\/p>\n<p>You will turn in the following on Canvas: the link to your public Tinkercad circuit and program that makes the Arduino Warning System work.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3957\" src=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/01\/2022-ultrasonic-warning-1.gif\" alt=\"\" width=\"852\" height=\"480\" \/><\/p>\n<p>Here&#8217;s some starter code because I am so nice.\u00a0 But you have to wire up the sensor and fill in the if\/else statements.<\/p>\n<p>Resources:<\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-ultrasonic-sensor-part-1\/part-2-arduino-ultrasonic-sensor-and-leds\/\" target=\"_blank\" rel=\"noopener\">Wiring an ultrasonic sensor<\/a><\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/arduino-sample-coderesources\/arduino-lcd-display\/\" target=\"_blank\" rel=\"noopener\">Arduino and Display<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/document\/d\/1KYF-tRCKkXiTDBaIHjg5sj0bcuZQ8-AdSPk9RBMXCqk\/edit?usp=sharing\" target=\"_blank\" rel=\"noopener\">Click here for starter code<\/a><\/p>\n<p><a href=\"http:\/\/rodmilstead.com\/pt\/wp-content\/uploads\/2022\/01\/2022ArduinoWarningContrast.png\" target=\"_blank\" rel=\"noopener\">Full circuit with ultrasonic sensor and LCD screen<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this assignment you will create a circuit that includes a display and an ultrasonic sensor. The goal is to write a program that will use an if\/else statement to display a warning AND use custom characters as part of the warning when you get too close! The trick is to use an if\/else statement &hellip; <a href=\"https:\/\/rodmilstead.com\/pt\/arduino-display-and-ultrasonic-sensor\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Arduino Warning Sensor<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3743","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/comments?post=3743"}],"version-history":[{"count":10,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3743\/revisions"}],"predecessor-version":[{"id":5472,"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/pages\/3743\/revisions\/5472"}],"wp:attachment":[{"href":"https:\/\/rodmilstead.com\/pt\/wp-json\/wp\/v2\/media?parent=3743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}