{"id":192,"date":"2014-03-22T23:28:35","date_gmt":"2014-03-22T22:28:35","guid":{"rendered":"http:\/\/heppg.de\/ikg\/wordpress\/?p=192"},"modified":"2015-05-08T15:28:05","modified_gmt":"2015-05-08T13:28:05","slug":"capacitive-sensor-for-scratch","status":"publish","type":"post","link":"https:\/\/heppg.de\/ikg\/wordpress\/?p=192","title":{"rendered":"Capacitive Sensor for Scratch"},"content":{"rendered":"<p><a title=\"Kapazitiver Sensor f\u00fcr eine F\u00fcllstandsanzeige\" href=\"http:\/\/heppg.de\/ikg\/wordpress\/?p=188\">[german<\/a>]<br \/>\nUsing an oscillator and a microcontroller atmega328 it is possible to build a fill level measurement for scratch, based on a capacitive sensor.<\/p>\n<p>The controller is measuring the frequency of the oscillator. Data are transmitted by SPi to raspberry. A <a title=\"scratchClient\" href=\"http:\/\/heppg.de\/ikg\/wordpress\/?page_id=4\">scratchClient<\/a> adapter is calculating the frequency and forwarding them to scratch.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/LS_4saw-d8w?feature=player_detailpage\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>The video shows the setup on breadboard. Left side is the oscillator, in the middle is the controller and then the connection to raspberry. The sensor is build from a stripe of copper coated epoxy, separated in the middle. As air has different electrical characteristics than water, the capacity of the capacitor changes close to water. An oscillator, using this capacitor, will change its frequency.<\/p>\n<p><a href=\"http:\/\/heppg.de\/ikg\/wordpress\/wp-content\/uploads\/2014\/03\/atmel_Steckplatine2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-251\" src=\"http:\/\/heppg.de\/ikg\/wordpress\/wp-content\/uploads\/2014\/03\/atmel_Steckplatine2.png\" alt=\"atmel_Steckplatine\" width=\"2583\" height=\"1581\" \/><\/a><\/p>\n<p>The scratchClient uses the adapter &#8216;Atmel328_ADC_Adapter&#8217;. The firmware is the same as for the ADConverter\u00a0 <a title=\"Atmel 328-Prozessor als AD-Wandler\" href=\"http:\/\/heppg.de\/ikg\/wordpress\/?p=164\">AD-Wandler. <\/a><\/p>\n<p>The oscillator ist standard TLC555, the cmos cousin of popular 555. The frequency range is in the example 13,5kHz in dry air and 9,6kHz with water in glass.<\/p>\n<p>Frequency measurement is done in controller on 10ms or prox 72 periods. The controller is averaging the last 16 measurements. The &#8216;open&#8217; construction causes some disturbances, causing sporadic measurement failures.<\/p>\n<pre>Update history:\r\n2014-04-01 Fixed connections of LED<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[german] Using an oscillator and a microcontroller atmega328 it is possible to build a fill level measurement for scratch, based on a capacitive sensor. The controller is measuring the frequency of the oscillator. Data are transmitted by SPi to raspberry. A scratchClient adapter is calculating the frequency and forwarding them to scratch. The video shows [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,3],"tags":[],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-analog-digital-wandler","category-scratchclient"],"_links":{"self":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=192"}],"version-history":[{"count":11,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/192\/revisions\/484"}],"wp:attachment":[{"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/heppg.de\/ikg\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}