{"id":17,"date":"2013-10-09T04:37:01","date_gmt":"2013-10-09T04:37:01","guid":{"rendered":"http:\/\/mypocket-technologies.com\/?p=651"},"modified":"2013-10-09T04:37:01","modified_gmt":"2013-10-09T04:37:01","slug":"arduino-mood-light-project","status":"publish","type":"post","link":"https:\/\/bitcows.com\/?p=17","title":{"rendered":"Arduino Mood Light Project"},"content":{"rendered":"<p><strong>FIRST STEP<\/strong><\/p>\n<p>One of my first projects I wanted to try was a mood light. I&#8217;ve seen a number of these on the internet, so I thought I would try my hand at one. Ok, I know its not the most difficult project, but baby steps. The first thing I did was design my board. It tooks me a week or so to design it, and get all the connections correct, but this is what I ended up with.<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:0\">\n<tr>\n<td  style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-654 alignnone\" title=\"firstboard\" src=\"http:\/\/mypocket-technologies.com\/wp-content\/uploads\/2013\/10\/firstboard.png\" alt=\"\" width=\"300\" height=\"300\" \/><\/td>\n<td style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/firstboard-bottom.png\" alt=\"\" width=\"800\" height=\"800\" class=\"alignnone size-full wp-image-1741\" \/><\/td>\n<\/tr>\n<\/table>\n<p>During the time the board was sent away being created. I discovered <a href=\"http:\/\/www.sketchup.com\/\" target=\"_new\" rel=\"noopener noreferrer\">sketchup<\/a>. If you don&#8217;t know about this app, get to know it. It&#8217;s GREAT! It took me about 3 days to get proficient with it but once I did I was on my way. Once I modeled my board in 3D, I realized that I did a few things wrong. I had tried to plan out how I would mount the board and I even thought about the final package design. But with out modeling it in 3D It&#8217;s really difficult to think of every detail.<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:0\">\n<tr>\n<td  style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/moodlight3d.png\" alt=\"\" width=\"632\" height=\"476\" class=\"alignnone size-full wp-image-1743\" \/><\/td>\n<td style=\"border:0\"><img decoding=\"async\" class=\"alignnone size-full wp-image-657\" title=\"moodlight sketchup \" src=\"http:\/\/mypocket-technologies.com\/wp-content\/uploads\/2013\/10\/moodlight3d1.png\" alt=\"\" width=\"320\" \/><\/td>\n<\/tr>\n<\/table>\n<p>One of the things i didn&#8217;t really think through was how I would plug it in. I knew that I needed to convert 12V to 5V so I added the power converter on the bottom. However, I forgot the plug. I could get one in there but it would probably be a hack. The other thing I did was make the board WAY to big. Due to the size it was a little to expensive to fix the minor issues with this board. Live and learn I guess.<\/p>\n<p>After I got the boards back from the <a href=\"http:\/\/oshpark.com\/\" target=\"_new\" rel=\"noopener noreferrer\">PCB manufacture<\/a> I realized I had a few errors. For starters I wired the slide switch wrong, oops. Then I found that one of the lights would flicker and stutter. All the other lights worked just fine. I fixed the errors but I was disappointed.<\/p>\n<p><strong>NEXT STEPS (REDESIGN)<\/strong><br \/>\nAfter seeing the mistakes of my first board, I got back on eagle CAD and started making a new version. For starters I made the board 1\/2 the size of the original. This will keep the cost down and If I need to have them reprinted I should be able to afford to do so. In order to make my board smaller I decided to use SMD (Surface Mount Device) \/ SMT (Surface Mount Technology) components. I&#8217;ve done a little SMD soldering but not as much as this board will demand ;-\/<\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:0\">\n<tr>\n<td  style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/eagleUp_moodlight_board_bottom.png\" alt=\"\" width=\"600\" height=\"586\" class=\"alignnone size-full wp-image-1744\" \/>\n<\/td>\n<td style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/eagleUp_moodlight_board_top.png\" alt=\"\" width=\"600\" height=\"586\" class=\"alignnone size-full wp-image-1745\" \/><\/td>\n<\/tr>\n<\/table>\n<p>I decided to make this with 2 types of lights. DIP RGB LED&#8217;s and surface mount RGB LED&#8217;s. The board should be able to use either one depending on what components I might want to use. I also decided to use a different microprocessor. My original design utilized a ATTiny 2313 but this new board required something smaller. So I found a great deal on <a href=\"http:\/\/www.ebay.com\">ebay<\/a> for some ATMega88A devices in a TQFP package. I also added the ability to add a battery pack to the board instead of attaching a power converter. I thought this might be an interesting addition. I might not even use it, but It&#8217;s easier to add now than later.  <\/p>\n<p>This time I modeled my boards with greater detail. I wanted to make sure that all my components will fit with no modifications. I found a way to mount the power converter directly to my custom board, and used a surface mount DC barrel jack to my board. <\/p>\n<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"border:0\">\n<tr>\n<td  style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/moodlight2top.png\" alt=\"\" width=\"600\" height=\"516\" class=\"alignnone size-full wp-image-1746\" \/><\/td>\n<td style=\"border:0\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/moodlight2bottom.png\" alt=\"\" width=\"600\" height=\"403\" class=\"alignnone size-full wp-image-1747\" \/><\/td>\n<\/tr>\n<tr>\n<td style=\"border:0\" colspan=\"2\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bitcows.com\/wp-content\/uploads\/2013\/10\/moodlight2side.png\" alt=\"\" width=\"600\" height=\"417\" class=\"alignnone size-full wp-image-1748\" \/><\/td>\n<\/tr>\n<\/table>\n<p><strong>WAITING FOR COMPONENTS<\/strong><br \/>\nIm still waiting for my SMD\/SMT RGB LED&#8217;s so in the mean time I will be working on the final design of the rest of the light. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>FIRST STEP One of my first projects I wanted to try was a mood light. I&#8217;ve seen a number of these on the internet, so I thought I would try my hand at one. Ok, I know its not the most difficult project, but baby steps. The first thing I did was design my board.&hellip;<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/bitcows.com\/?p=17\" class=\"themebutton\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":1731,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[33,45],"class_list":["post-17","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","tag-arduino","tag-electronics"],"_links":{"self":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":0,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcows.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}