{"id":118,"date":"2017-07-20T00:22:57","date_gmt":"2017-07-20T00:22:57","guid":{"rendered":"http:\/\/digm.drexel.edu\/uxid\/?p=118"},"modified":"2018-03-18T18:24:18","modified_gmt":"2018-03-18T18:24:18","slug":"arduino-week-02","status":"publish","type":"post","link":"https:\/\/philsinatra.net\/branches\/uxid\/2017\/07\/20\/arduino-week-02\/","title":{"rendered":"Arduino Week 02"},"content":{"rendered":"<p>This week we worked our way through <em>Project 4: Color Mixing Lamp<\/em> and<em> Project 5: Mood Cue<\/em>.<\/p>\n<p>Project 4 dealt taught us how to use photoresistors to control the color of an RGB LED. We use three photoresistors, each one was covered with a red, green, or blue gel so that the resistor reacted only to the corresponding light waves. Then by covering the gelled resistors with our fingers we could block specific light waves and control the color of the LED. Unfortunately we did not make any videos of our work, but there is a good <a href=\"https:\/\/www.youtube.com\/watch?v=ZnNvsJyZQUE\">video on YouTube<\/a> of someone else completing this project.<\/p>\n<p>Next we moved on to Project 5 where we learned how to control a servo with a potentiometer. Servos are special motors that do not spin in a full circle, instead they only rotate 180 degrees, and move to a specified position until you tell them to move to another specific location. \u00a0The potentiometer controls the amount of voltage that is passed through it, returning a value between 0 to 1023. Our code grabs the current position of the potentiometer and maps it to the servo scale (0 to 180) then tells the servo where to turn to. Here is Seamus demonstrating his completed project.<\/p>\n<figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube\"><div class=\"wp-block-embed__wrapper\"><iframe  id=\"_ytid_71104\"  width=\"326\" height=\"183\"  data-origwidth=\"326\" data-origheight=\"183\" src=\"https:\/\/www.youtube.com\/embed\/Uhhal8A3E4g?enablejsapi=1&autoplay=0&cc_load_policy=0&cc_lang_pref=&iv_load_policy=1&loop=0&modestbranding=0&rel=1&fs=1&playsinline=0&autohide=2&theme=dark&color=red&controls=1&\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure>\n<p>Before next week each student will be completing Project 6: Light Theremin on their own. A theremin is a musical instrument that makes sound as the musician moves their hand around the instrument. \u00a0In this project we will use a photoresistor to measure light input, then we will convert that data into an audio signal that we will send to a piezo so we get audio feedback.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week we worked our way through Project 4: Color Mixing Lamp and Project 5: Mood Cue. Project 4 dealt taught us how to use photoresistors to control the color of an RGB LED. We use three photoresistors, each one was covered with a red, green, or blue gel so &hellip;<\/p>\n","protected":false},"author":2,"featured_media":119,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[21],"_links":{"self":[{"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/posts\/118"}],"collection":[{"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":2,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/posts\/118\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/posts\/118\/revisions\/121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/media\/119"}],"wp:attachment":[{"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/media?parent=118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/categories?post=118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/philsinatra.net\/branches\/uxid\/wp-json\/wp\/v2\/tags?post=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}