{"id":87,"date":"2013-05-01T04:03:36","date_gmt":"2013-05-01T04:03:36","guid":{"rendered":"http:\/\/projects.ravelox.com\/blog\/?p=87"},"modified":"2013-05-01T04:05:47","modified_gmt":"2013-05-01T04:05:47","slug":"its-alive","status":"publish","type":"post","link":"https:\/\/www.raveloxprojects.com\/blog\/?p=87","title":{"rendered":"It&#8217;s Alive !"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/projects.ravelox.com\/blog\/wp-content\/uploads\/2013\/04\/20130427-130426.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-85\" alt=\"The Circuit\" src=\"https:\/\/i0.wp.com\/projects.ravelox.com\/blog\/wp-content\/uploads\/2013\/04\/20130427-130426-300x225.jpg?resize=300%2C225\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/raveloxprojects.com\/blog\/wp-content\/uploads\/2013\/04\/20130427-130426.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/raveloxprojects.com\/blog\/wp-content\/uploads\/2013\/04\/20130427-130426.jpg?resize=624%2C468&amp;ssl=1 624w, https:\/\/i0.wp.com\/raveloxprojects.com\/blog\/wp-content\/uploads\/2013\/04\/20130427-130426.jpg?w=1024&amp;ssl=1 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I actually got the circuit wired up again and, somehow, it seemed to work this time. I saw a voltage change with small taps and large hits so the next step was to connect the ADC (MCP3008) and the Pi Cobbler (GPIO cable connector).<\/p>\n<p>So, I consulted the project at\u00a0<a href=\"http:\/\/learn.adafruit.com\/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi\/overview\">http:\/\/learn.adafruit.com\/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi\/overview<\/a> and wired up the GPIO pins to the ADC per their instructions.<\/p>\n<p>I also took the python script from the same project and hacked it to remove the audio volume stuff.<\/p>\n<p>It was during my initial test that I found I had connected the GPIO cable the wrong way round on the Pi which meant that nothing worked. My first thought was that I&#8217;d broken something but I pulled everything out and did a quick LED test ( see\u00a0<a href=\"https:\/\/projects.drogon.net\/raspberry-pi\/gpio-examples\/tux-crossing\/gpio-examples-1-a-single-led\/\">https:\/\/projects.drogon.net\/raspberry-pi\/gpio-examples\/tux-crossing\/gpio-examples-1-a-single-led\/<\/a> ) which proved that none of the GPIO pins were responding as they should have done. So, I took the case apart, turned the cable around and reassembled everything. This time, the LED test worked as I expected (cue a quick Gangnam across the living room to celebrate ).<\/p>\n<p>After wiring the ADC up again, it was a success as this video shows:<\/p>\n<div class=\"jetpack-video-wrapper\"><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" title=\"YouTube video player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/PrBNNBQT4T4?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span><\/div>\n<p>&nbsp;<\/p>\n<p>Next to do is to remove the capcitor to see if I can get the slope to decay much quicker.<\/p>\n","protected":false},"excerpt":{"rendered":"<p> I actually got the circuit wired up again and, somehow, it seemed to work this time. I saw a voltage change with small taps and large hits so the next step was to connect the ADC (MCP3008) and the Pi Cobbler (GPIO cable connector). So, I consulted the project at\u00a0http:\/\/learn.adafruit.com\/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi\/overview and wired up the GPIO &#8230; <a class=\"read-more meta-nav\" href=\"https:\/\/www.raveloxprojects.com\/blog\/?p=87\">Read more &raquo;<\/a><\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[19,10],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-drum-interface","tag-circuit","tag-hardware"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8tHuw-1p","jetpack_likes_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":5,"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":92,"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/92"}],"wp:attachment":[{"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.raveloxprojects.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}