{"id":1020,"date":"2018-10-01T22:36:46","date_gmt":"2018-10-01T22:36:46","guid":{"rendered":"https:\/\/zhutarduino.wordpress.com\/?page_id=1020"},"modified":"2019-10-20T16:34:15","modified_gmt":"2019-10-20T16:34:15","slug":"arduino-mad-scientist-laboratory-ep-4-simulated-candle-light-using-a-led-controlled-by-arduino","status":"publish","type":"page","link":"https:\/\/thezhut.com\/?page_id=1020","title":{"rendered":"Arduino Mad Scientist Laboratory EP #4 simulated candle light using a LED controlled by Arduino"},"content":{"rendered":"<h1 style=\"text-align: center;\">In this episode of the arduino mad scientist laboratory we will try to take over the world by removing the 110 volt light fixture from a plastic Halloween jack-o&#8217;-lantern and replace it with a Arduino controlled LED simulated candle light DIY device.<\/h1>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" title=\"Arduino Mad Scientist Laboratory EP #4 simulated candle light using a LED controlled by Arduino\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/riygvwT-6rE?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h1><a href=\"https:\/\/www.facebook.com\/zarduino\/\" target=\"_blank\" rel=\"noopener noreferrer\">Check us out on Facebook!<\/a><\/h1>\n<p>&nbsp;<\/p>\n<h1>Parts List:<\/h1>\n<p>affiliate links<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=ARDUINO Board&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=a82bb6a90750e6aef661f99ad9e00f17\" target=\"_blank\" rel=\"noopener noreferrer\">ARDUINO Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=Resistors&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=320073993b9af4cc731fa615f28b39c1\" target=\"_blank\" rel=\"noopener noreferrer\">Resistor<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=Pirana LED&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=14cee0cce461d4b7d33da4a38ed03a8e\" target=\"_blank\" rel=\"noopener noreferrer\">Pirana LED<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=Bread Board arduino&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=6f84dfe3ebce424dc8b63baf920d8812\" target=\"_blank\" rel=\"noopener noreferrer\">Bread Board<\/a><\/p>\n<p><a href=\"https:\/\/www.amazon.com\/gp\/search\/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&amp;tag=zhut01-20&amp;keywords=Jumper Wires arduino&amp;index=aps&amp;camp=1789&amp;creative=9325&amp;linkCode=xm2&amp;linkId=1ddc80f4a0d913d4b21d9f4d9c55df9f\" target=\"_blank\" rel=\"noopener noreferrer\">Jumper Wires<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h1>ARDUINO CODE:<\/h1>\n<p>#define led 3<br \/>\nint lvl;<br \/>\nint del;<\/p>\n<p>void setup() {<br \/>\npinMode(led,OUTPUT);<\/p>\n<p>}<\/p>\n<p>void loop() {<br \/>\nlvl=random(50,255);<br \/>\ndel=random(100,500);<br \/>\nanalogWrite(led,lvl);<br \/>\ndelay(del);<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this episode of the arduino mad scientist laboratory we will try to take over the world by removing the 110 volt light fixture from a plastic Halloween jack-o&#8217;-lantern and replace it with a Arduino controlled LED simulated candle light &hellip; <a href=\"https:\/\/thezhut.com\/?page_id=1020\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":1009,"menu_order":3,"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-1020","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1020","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=1020"}],"version-history":[{"count":2,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1020\/revisions"}],"predecessor-version":[{"id":1461,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1020\/revisions\/1461"}],"up":[{"embeddable":true,"href":"https:\/\/thezhut.com\/index.php?rest_route=\/wp\/v2\/pages\/1009"}],"wp:attachment":[{"href":"https:\/\/thezhut.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1020"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}