{"id":324,"date":"2011-06-29T19:17:57","date_gmt":"2011-06-30T00:17:57","guid":{"rendered":"http:\/\/amymakesstuff.com\/?p=324"},"modified":"2011-06-29T19:17:57","modified_gmt":"2011-06-30T00:17:57","slug":"sam-now-with-lights","status":"publish","type":"post","link":"https:\/\/amymakesstuff.com\/?p=324","title":{"rendered":"SAM: now with lights!"},"content":{"rendered":"<p>Everyone knows that go-karts go faster when they have cool lights.<\/p>\n<p>My controller and batteries all sit on a 1\/8&#8243; sheet of polycarb which is transparent, so right under the controller was a good place to put the lights. I got two strips of RGB LEDs. This was my first time playing with them and they are awesome! All the LEDs are in parallel, and all the colors have a common anode (+ terminal). So to turn a particular color on, you just pull the corresponding pin to ground.<\/p>\n<p>I wanted to use an Arduino to control the lights and make them fade through different colors, but the Arduino cannot supply the necessary current. Instead, the Arduino switches a transistor that then switches the LEDs, which are hooked up to a separate supply. Instead of transistors, I ended up using a Darlington transistor chip (I used a ULN2003AN). Darlington transistors are when a transistor drives a transistor which then drives your load. My friends more fluent in electronics say that this drives the load &#8220;harder&#8221;, and has to do with the multiplied gain of the transistors. Yea&#8230;someday I&#8217;ll actually understand what that means&#8230;<\/p>\n<p>I also wanted to learn pcb layout and etching, hence the comically simple schematic. One highly misleading element of this schematic is the capacitor from battery +26V to V1 of the 7812. Its actually a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Thermistor\">thermister<\/a>, I was just lazy and wanted the right hole spacing. The thermister is to guard against the possibility of this board shorting the\u00a0 main battery.<\/p>\n<figure id=\"attachment_332\" aria-describedby=\"caption-attachment-332\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/sam-light-sch1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-332\" title=\"SAM light sch\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/sam-light-sch1.png?w=300&#038;resize=300%2C174\" alt=\"\" width=\"300\" height=\"174\" srcset=\"https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/sam-light-sch1.png?w=510&amp;ssl=1 510w, https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/sam-light-sch1.png?resize=300%2C174&amp;ssl=1 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-332\" class=\"wp-caption-text\">schematic<\/figcaption><\/figure>\n<p>After this I bumbled through the process of converting this to a board. Below is the result printed on the back photo paper which releases toner easily, I guess. The toner was transferred to a freshly sanded pcb blank with an iron. A sharpie is used for any touch up.<\/p>\n<figure id=\"attachment_325\" aria-describedby=\"caption-attachment-325\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1258.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-325\" title=\"IMG_1258\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1258.jpg?w=300&#038;resize=300%2C225\" alt=\"\" width=\"300\" height=\"225\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-325\" class=\"wp-caption-text\">printed on photo paper; toner transfered to pcb material<\/figcaption><\/figure>\n<p>Next, it etched away in a tub of ferric chloride for about 15 mins.<\/p>\n<figure id=\"attachment_326\" aria-describedby=\"caption-attachment-326\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1259.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-326\" title=\"IMG_1259\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1259.jpg?w=300&#038;resize=300%2C225\" alt=\"\" width=\"300\" height=\"225\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-326\" class=\"wp-caption-text\">ferric chloride etches copper<\/figcaption><\/figure>\n<p>Then I drilled out the holes. This wasn&#8217;t that precise, but if you slightly oversize the holes, it works out.<\/p>\n<figure id=\"attachment_327\" aria-describedby=\"caption-attachment-327\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1260-1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-327\" title=\"IMG_1260-1\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1260-1.jpg?w=300&#038;resize=300%2C225\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1260-1.jpg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1260-1.jpg?resize=300%2C225&amp;ssl=1 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-327\" class=\"wp-caption-text\">holes are drilled<\/figcaption><\/figure>\n<figure id=\"attachment_329\" aria-describedby=\"caption-attachment-329\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1262-1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-329\" title=\"IMG_1262-1\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1262-1.jpg?w=300&#038;resize=300%2C283\" alt=\"\" width=\"300\" height=\"283\" srcset=\"https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1262-1.jpg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1262-1.jpg?resize=300%2C284&amp;ssl=1 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-329\" class=\"wp-caption-text\">assembled circuit<\/figcaption><\/figure>\n<figure id=\"attachment_328\" aria-describedby=\"caption-attachment-328\" style=\"width: 225px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1261-1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-328\" title=\"IMG_1261-1\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1261-1.jpg?w=225&#038;resize=225%2C300\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1261-1.jpg?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1261-1.jpg?resize=225%2C300&amp;ssl=1 225w\" sizes=\"(max-width: 225px) 100vw, 225px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-328\" class=\"wp-caption-text\">I tinned over all the copper traces I care about, just in case the copper corrodes a lot<\/figcaption><\/figure>\n<p>I put a heatsink on the 7812 just in case. Below is everything right before plugging into the battery. The code for the Arduino is pretty simple. But its even simpler to briefly search the internet, and copy paste.<\/p>\n<figure id=\"attachment_330\" aria-describedby=\"caption-attachment-330\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1285-1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-330\" title=\"IMG_1285-1\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/img_1285-1.jpg?w=300&#038;resize=300%2C225\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1285-1.jpg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/img_1285-1.jpg?resize=300%2C225&amp;ssl=1 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-330\" class=\"wp-caption-text\">everything hooked up<\/figcaption><\/figure>\n<figure id=\"attachment_333\" aria-describedby=\"caption-attachment-333\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/go-cart-01-wd.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-333\" title=\"Go-Cart-01-wd\" src=\"http:\/\/amymakesstuffdotcom.files.wordpress.com\/2011\/06\/go-cart-01-wd.jpg?w=300&#038;resize=300%2C200\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/go-cart-01-wd.jpg?w=640&amp;ssl=1 640w, https:\/\/i0.wp.com\/amymakesstuff.com\/wp-content\/uploads\/2011\/06\/go-cart-01-wd.jpg?resize=300%2C200&amp;ssl=1 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" data-recalc-dims=\"1\" \/><\/a><figcaption id=\"caption-attachment-333\" class=\"wp-caption-text\">makes a good flashlight, kind of.<\/figcaption><\/figure>\n<p>The underglow while it is one the ground is nice. I plan to play around more with the colors, too.<\/p>\n<p><iframe loading=\"lazy\" title=\"Small go-kart, now with LEDs\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/CL1P68PN4jw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everyone knows that go-karts go faster when they have cool lights. My controller and batteries all sit on a 1\/8&#8243; sheet of polycarb which is transparent, so right under the controller was a good place to put the lights. I got two strips of RGB LEDs. This was my first time playing with them and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[25,82,103,128],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=\/wp\/v2\/posts\/324"}],"collection":[{"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=324"}],"version-history":[{"count":0,"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=\/wp\/v2\/posts\/324\/revisions"}],"wp:attachment":[{"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amymakesstuff.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}