{"id":125,"date":"2019-10-23T07:47:04","date_gmt":"2019-10-23T07:47:04","guid":{"rendered":"https:\/\/starthardware.org\/en\/?p=125"},"modified":"2019-10-23T07:47:05","modified_gmt":"2019-10-23T07:47:05","slug":"unit-18-touch-sensitive-instrument","status":"publish","type":"post","link":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/","title":{"rendered":"Unit 18 \u2013 Touch sensitive instrument"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>Do you know, that your body also conducts electricity? The resistance of your skin can be used as analog input, too. Let\u2019s use it to build another instrument.<\/p><\/blockquote>\n\n\n\n<p>Since the human body consists of a lot of water it conducts electricity. Of course it is not such a good conductor like metal. We could day, humans have a high inner resistance. That inner resistance is perfectly suited to be used as an analog sensor.<\/p>\n\n\n\n<p>Like mentioned in the last unit, for an analog sensor we need an additional reference resistor. This time, it has to be much larger. Let\u2019s say at least 1 mega ohm. That is one million ohm. If you don\u2019t have such a high resistor, you can put smaller ones in a row. If you have 10 resistors of 100 kilo ohm, you will get 1 mega ohm. Resistors in a row add up.<\/p>\n\n\n\n<p>Used Parts<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_1_parts-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"535\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_1_parts-1.png\" alt=\"Arduino Touch Instrument Parts\" class=\"wp-image-131\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_1_parts-1.png 1280w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_1_parts-1-300x125.png 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_1_parts-1-768x321.png 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_1_parts-1-1024x428.png 1024w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Info: Series Circuit<\/h3>\n\n\n\n<p>If you put resistors or other electrical parts in a row, they share the voltage. The current in each component is the same. The total resistance is the sum of all partial resistors.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-touch-circuit.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"848\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-touch-circuit-1024x848.jpg\" alt=\"Arduino touch sensitive instrument circuit\" class=\"wp-image-128\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-touch-circuit-1024x848.jpg 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-touch-circuit-300x248.jpg 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-touch-circuit-768x636.jpg 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-touch-circuit.jpg 1290w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>You can use the program of the last unit:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Program Code<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>int sensorPin = 0;\nint speakerPin = 9;\n\nvoid setup() {\n  Serial.begin(9600);\n}\n\nvoid loop() {\n  Serial.println(analogRead(sensorPin));\n  tone(speakerPin,analogRead(sensorPin));\n  delay(20);\n}<\/code><\/pre>\n\n\n\n<p>If you now touch both wire ends (red and blue wire) you can influence the sound coming out of the speaker. Try what happens with wet fingertips.<\/p>\n\n\n\n<p>The line of a pencil consists of graphite. It also conducts some electricity. Let\u2019s use it to build a pencil violin.<\/p>\n\n\n\n<p>Draw a thick pencil line on a sheet of paper. The softer the pencil the better it will work. Now, hold the one wire tight onto the end of the pencil line. Take the other wire and run along the pencil line.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto.png\" alt=\"Arduino touch sensitive instrument foto\" class=\"wp-image-129\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto.png 1200w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto-300x169.png 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto-768x432.png 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto-1024x576.png 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/18_9_foto-800x450.png 800w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Do you know, that your body also conducts electricity? The resistance of your skin can be used as analog input, too. Let\u2019s use it to build another instrument. Since the human body consists of a lot of water it conducts electricity. Of course it is not such a good conductor like metal. We could day,&hellip;&nbsp;<a href=\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Unit 18 \u2013 Touch sensitive instrument<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":130,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unit 18 \u2013 Touch sensitive instrument - StartHardware - Tutorials for Arduino<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unit 18 \u2013 Touch sensitive instrument - StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"og:description\" content=\"Do you know, that your body also conducts electricity? The resistance of your skin can be used as analog input, too. Let\u2019s use it to build another instrument. Since the human body consists of a lot of water it conducts electricity. Of course it is not such a good conductor like metal. We could day,&hellip;&nbsp;Read More &raquo;Unit 18 \u2013 Touch sensitive instrument\" \/>\n<meta property=\"og:url\" content=\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/\" \/>\n<meta property=\"og:site_name\" content=\"StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-23T07:47:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-10-23T07:47:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-pencle-instrument.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Stefan Hermann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/starthardware.org\/en\/#website\",\"url\":\"https:\/\/starthardware.org\/en\/\",\"name\":\"StartHardware - Tutorials for Arduino\",\"description\":\"Arduino, Electronics, Fun\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/starthardware.org\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-pencle-instrument.jpg\",\"contentUrl\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-pencle-instrument.jpg\",\"width\":1200,\"height\":675,\"caption\":\"Arduino Touch Sensitive Instrument\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#webpage\",\"url\":\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/\",\"name\":\"Unit 18 \u2013 Touch sensitive instrument - StartHardware - Tutorials for Arduino\",\"isPartOf\":{\"@id\":\"https:\/\/starthardware.org\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#primaryimage\"},\"datePublished\":\"2019-10-23T07:47:04+00:00\",\"dateModified\":\"2019-10-23T07:47:05+00:00\",\"author\":{\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59\"},\"breadcrumb\":{\"@id\":\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/starthardware.org\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unit 18 \u2013 Touch sensitive instrument\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59\",\"name\":\"Stefan Hermann\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/starthardware.org\/en\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g\",\"caption\":\"Stefan Hermann\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unit 18 \u2013 Touch sensitive instrument - StartHardware - Tutorials for Arduino","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/","og_locale":"en_US","og_type":"article","og_title":"Unit 18 \u2013 Touch sensitive instrument - StartHardware - Tutorials for Arduino","og_description":"Do you know, that your body also conducts electricity? The resistance of your skin can be used as analog input, too. Let\u2019s use it to build another instrument. Since the human body consists of a lot of water it conducts electricity. Of course it is not such a good conductor like metal. We could day,&hellip;&nbsp;Read More &raquo;Unit 18 \u2013 Touch sensitive instrument","og_url":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/","og_site_name":"StartHardware - Tutorials for Arduino","article_published_time":"2019-10-23T07:47:04+00:00","article_modified_time":"2019-10-23T07:47:05+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-pencle-instrument.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Stefan Hermann","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/starthardware.org\/en\/#website","url":"https:\/\/starthardware.org\/en\/","name":"StartHardware - Tutorials for Arduino","description":"Arduino, Electronics, Fun","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/starthardware.org\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#primaryimage","inLanguage":"en-US","url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-pencle-instrument.jpg","contentUrl":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2019\/10\/arduino-pencle-instrument.jpg","width":1200,"height":675,"caption":"Arduino Touch Sensitive Instrument"},{"@type":"WebPage","@id":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#webpage","url":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/","name":"Unit 18 \u2013 Touch sensitive instrument - StartHardware - Tutorials for Arduino","isPartOf":{"@id":"https:\/\/starthardware.org\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#primaryimage"},"datePublished":"2019-10-23T07:47:04+00:00","dateModified":"2019-10-23T07:47:05+00:00","author":{"@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59"},"breadcrumb":{"@id":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/starthardware.org\/en\/unit-18-touch-sensitive-instrument\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/starthardware.org\/en\/"},{"@type":"ListItem","position":2,"name":"Unit 18 \u2013 Touch sensitive instrument"}]},{"@type":"Person","@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/811b16fabcbfeef4210ea79cf0990a59","name":"Stefan Hermann","image":{"@type":"ImageObject","@id":"https:\/\/starthardware.org\/en\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5b5a74ee1d07024fd1eff9b1f7137108089169010a93afaee907b9325ee579a6?s=96&d=mm&r=g","caption":"Stefan Hermann"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":1,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":132,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/125\/revisions\/132"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media\/130"}],"wp:attachment":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}