{"id":90,"date":"2015-10-29T23:31:22","date_gmt":"2015-10-29T23:31:22","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=90"},"modified":"2015-10-29T23:31:22","modified_gmt":"2015-10-29T23:31:22","slug":"arduino-one-transistor-sound-detector","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=90","title":{"rendered":"ARDUINO one Transistor sound detector"},"content":{"rendered":"<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/f68cb8iif6nnyjv_medium.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-92\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/f68cb8iif6nnyjv_medium.jpg?w=300\" alt=\"F68CB8IIF6NNYJV_MEDIUM\" width=\"741\" height=\"566\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/f68cb8iif6nnyjv_medium.jpg 620w, https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/f68cb8iif6nnyjv_medium-300x229.jpg 300w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This easy to build circuit will let you detect sound with your ARDUINO, You can buy a pre made sound detection sensor module but they don&#8217;t work worth a sh!t from my experience.<br \/>\nThe picture\u00a0below shows you the simple circuit design (if you click on it, it will enlarge so you can see it better), just build that and it will work better than most of the pre maid modules you can buy.<\/p>\n<p>PARTS LIST:<br \/>\n2 &#8211; 10k\u03a9 resistors.<br \/>\n1 &#8211; 100k\u03a9 resistor.<br \/>\n1 &#8211; 1m\u03a9 resistor.<br \/>\n2 &#8211; 0.1 \u00b5f capacitors (Mylar is the best but ceramic will work if that&#8217;s all you have).<br \/>\n1 &#8211; microphone.<br \/>\n1 &#8211; MPS2222A Transistor (a 2N2222 , 2N2222A, 2N3904 or any small signal NPN\u00a0transistor\u00a0should work).<br \/>\n1 &#8211; diode a 1N4001 or similar will work.<br \/>\n1 &#8211; ARDUINO micro controller of any type should work.<br \/>\nFor the output (Testing side of the circuit you will need):<br \/>\n1 &#8211; RED led.<br \/>\n1 &#8211; 220\u03a9 resistor.<\/p>\n<p>If you need to order any of these parts or need some new stuff to play with check out this link to the site I buy all my <a href=\"http:\/\/www.dx.com\/c\/electrical-tools-499?Utm_rid=99156049&amp;Utm_source=affiliate\" rel=\"nofollow\"><span style=\"color:#0066cc;\">ARDUINO supplies..<\/span><\/a>.. This is the cheapest place I have found to date!!!!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/sound.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-93\" src=\"https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/sound.jpg?w=300\" alt=\"sound\" width=\"745\" height=\"298\" srcset=\"https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/sound.jpg 1947w, https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/sound-300x120.jpg 300w, https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/sound-768x308.jpg 768w, https:\/\/thezhut.com\/wp-content\/uploads\/2015\/10\/sound-1024x410.jpg 1024w\" sizes=\"auto, (max-width: 745px) 100vw, 745px\" \/><\/a><\/p>\n<p>Now that you have built the circuit lets see it in action!<br \/>\ncopy and past the code below into your arduino ide&#8230;<br \/>\nint led=9;<br \/>\nvoid setup() {<br \/>\nSerial.begin(9600);<br \/>\npinMode(led,OUTPUT);<br \/>\n}<br \/>\nvoid loop() {<br \/>\nint val=analogRead(A0); \/\/read the sound level<br \/>\nSerial.println(val); \/\/print sound level to serial monitor<br \/>\nif (val&gt;15) \/\/change this value (15) to tell the program when to trigger the effect!!<br \/>\n{<br \/>\ndigitalWrite(led,HIGH); \/\/put what you want the program to do if sound is detected here!!!<br \/>\ndelay(1000);<br \/>\ndigitalWrite(led,LOW);<br \/>\n}<br \/>\ndelay(10); \/\/for stability<br \/>\n}<br \/>\nThe code is pretty straight forward so I&#8217;m not going to explain it&#8230;..<\/p>\n<p>when you make a noise the led should light up for one second, if it don&#8217;t work check to make sure the circuit is constructed properly&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; This easy to build circuit will let you detect sound with your ARDUINO, You can buy a pre made sound detection sensor module but they don&#8217;t work worth a sh!t from my experience. The picture\u00a0below shows you the simple &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=90\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":10,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-90","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=90"}],"version-history":[{"count":0,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/90\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/10"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}