{"id":1424,"date":"2013-01-16T21:01:17","date_gmt":"2013-01-17T02:01:17","guid":{"rendered":"https:\/\/www.kevindarrah.com\/?p=1424"},"modified":"2020-04-24T00:28:56","modified_gmt":"2020-04-24T04:28:56","slug":"the-8x8x8-rgb-led-cube-project","status":"publish","type":"post","link":"https:\/\/www.kevindarrah.com\/?p=1424","title":{"rendered":"The 8x8x8 RGB LED Cube Project"},"content":{"rendered":"ngg_shortcode_0_placeholder\n<h4><a href=\"https:\/\/www.kevindarrah.com\/?page_id=1450\">Click Here<\/a>&nbsp;to see the entire photo library!<\/h4>\n<h3>This project was featured on a TV show called &#8220;Right this Minute&#8221; on March 18 2013<\/h3>\n<h2>Click <a href=\"http:\/\/www.rightthisminute.com\/video\/build-your-own-rgb-8x8x8-led-cube\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>&nbsp;to see the clip on their site!<\/h2>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/guppB4cK3oU\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/bMMaZA-kk-8\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/wVYXAR1GWxU\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/zS5oZPJVh_o\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/xmScytz9y0M\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/NPrfpSjUa44\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/I0sgqgUwIAQ\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h1>Get the Eagle Project&nbsp;<a href=\"https:\/\/www.kevindarrah.com\/download\/8x8x8\/8x8x8Cube31613.zip\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>!<\/h1>\n<h1>Get the PDF Schematic&nbsp;<a href=\"https:\/\/www.kevindarrah.com\/download\/8x8x8\/Cube_sch_3_16_13.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>!<\/h1>\n<address>The schematic pdf is Huge! &nbsp;Probably easier to just download <a href=\"http:\/\/www.cadsoftusa.com\">Eagle<\/a> to view the files.<\/address>\n<h1>Get the PinOut Helper&nbsp;<a href=\"https:\/\/www.kevindarrah.com\/download\/8x8x8\/8x8x8RGB WiringHelper.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>!<\/h1>\n<h1>&nbsp;<\/h1>\n<h1>**Arduino Code**<\/h1>\n<h3>rev 7 &nbsp;<a href=\"https:\/\/www.kevindarrah.com\/download\/arduino_code\/RGB_CubeV7_cleanup.ino\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>!<\/h3>\n<h3>rev 11&nbsp;<a href=\"https:\/\/www.kevindarrah.com\/download\/8x8x8\/RGB_CubeV11_speed.ino\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>!<\/h3>\n<h3>rev 12 <a href=\"https:\/\/www.kevindarrah.com\/download\/8x8x8\/RGB_CubeV12_BitwiseFix.ino\" target=\"_blank\" rel=\"noopener noreferrer\">HERE<\/a>!<\/h3>\n<h4>Revision Notes:<\/h4>\n<p>Rev 7 &#8211; First released code. &nbsp;This is what you see running in the demo video, and all the tutorial videos<\/p>\n<p>Rev 11 &#8211; Fixed a bug in the Bit Angle Modulation, See the video How it Really Works for more information<\/p>\n<p>Rev 12 &#8211; Fixed the Bitwise Operation to set pins LOW. &nbsp;I was doing it PORTX &amp;= 0&lt;&lt;pinNumber, it should be PORTX &amp;= ~(1&lt;&lt;pinNumber) &nbsp;The wrong way was ANDing every pin in the port with 0, where is the new way ANDs only the pin you want to turn OFF with 0 and the rest with 1.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Parts List to build an Arduino Controlled 8x8x8 RGB LED Cube<\/strong><\/h2>\n<p>x512 RGB LEDs &#8211; I bought these from ebay.com from <a href=\"http:\/\/www.ebay.com\/itm\/100pcs-x-5mm-4-pin-RGB-Diffused-Common-Anode-LED-Red-Green-Blue-\/261083069774?ssPageName=ADME:L:OC:US:3160\" target=\"_blank\" rel=\"noopener noreferrer\">this link<\/a><\/p>\n<p>&#8211; In case that link is dead, here is a screen shot from the page when I bought them:<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"ngg-singlepic ngg-left alignleft\" src=\"https:\/\/www.kevindarrah.com\/wp-content\/gallery\/frontpage\/Screen Shot 2013-01-20 at 2.54.44 PM.png\" alt=\"Screen Shot 2013-01-20 at 2.54.44 PM\" width=\"480\" height=\"174\"><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The Power Supply &#8211; I bought <a href=\"https:\/\/www.jameco.com\/webapp\/wcs\/stores\/servlet\/Product_10001_10001_689784_-1\" target=\"_blank\" rel=\"noopener noreferrer\">this one<\/a>; its a 120VAC to 5VDC@10A. &nbsp;I wish I would have went a little bigger. &nbsp;The power supply kind of &#8216;whines&#8217; as you light all of the LEDs up at once. &nbsp;Probably a 15-20Amp supply would have been better<\/p>\n<p>x10 Proto Boards &#8211; <a href=\"http:\/\/www.futurlec.com\/Protoboards.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a>&nbsp; I always get the 777,&nbsp;which I think is the best out there!<\/p>\n<p>x200 NPN 2N3904 Transistors &#8211; <a href=\"http:\/\/www.futurlec.com\/TransGen2N.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a><\/p>\n<p>x401 1kOhm 1\/4W resistors &#8211; <a href=\"http:\/\/www.futurlec.com\/Res14W.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a>&nbsp; &nbsp;-One extra to pull up the Blank Pin, see the theory video for more info<\/p>\n<p>x328 100Ohm 1\/4W resistors &#8211; <a href=\"http:\/\/www.futurlec.com\/Res14W.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a><\/p>\n<p>x8 P-Channel MOSFETs IRF9Z34N &#8211; <a href=\"http:\/\/www.futurlec.com\/TransMosIRF.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a><\/p>\n<p>x25 Shift Registers 74HC595 &#8211; <a href=\"http:\/\/www.futurlec.com\/IC74HC00Series.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a><\/p>\n<p>x1 10kOhm Resistor-&nbsp;<a href=\"http:\/\/www.futurlec.com\/Res14W.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a>&nbsp;&#8211; For the arduino reset pull up<\/p>\n<p>x30 (at least) 0.01uF capacitors &#8211; <a href=\"http:\/\/www.futurlec.com\/CapCer.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a>&nbsp;&#8211; Put one of these on VCC to Ground for every IC &#8211; keep close to the power pin, also one in series with DTR pin on arduino standalone circuit from DTR to reset, pin-mapping cheat-cheat&nbsp;<a href=\"https:\/\/www.kevindarrah.com\/download\/PINouts.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a><\/p>\n<p>x1 16MHz crystal &#8211; <a href=\"http:\/\/www.futurlec.com\/ICCrystalsMain.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a>&nbsp;&#8211; I always get the low profile version<\/p>\n<p>x2 22pF capacitors &#8211;&nbsp;<a href=\"http:\/\/www.futurlec.com\/CapCer.shtml\" target=\"_blank\" rel=\"noopener noreferrer\">On this page<\/a>&nbsp;&#8211; Used on the crystal pins to ground for the arduino standalone<\/p>\n<p>x1 ATMEGA328P-PU with Arduino Bootloader &#8211; <a href=\"https:\/\/www.sparkfun.com\/products\/10524\">from here<\/a>, or program the bootloader yourself and get the micro <a href=\"http:\/\/www.futurlec.com\/ICAtmel.shtml\">from here<\/a><\/p>\n<p>&#8211; I would also sprinkle in a few big capacitors on the supply rails near the Sources of the P-Channel MOSFETs. &nbsp;I used a couple 100uF electrolytic caps.<\/p>\n<p>&#8211; The wire I used was 22AWG solid insulated wire from RadioShack. &nbsp;If I did it again, I would have searched for bare wire instead to save on all the stripping.<\/p>\n<h2>&nbsp;Taking a look back at how I got here&#8230;<\/h2>\n<p>It&#8217;s kind of interesting to see what I said I was going to do versus what I actually built!<\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/7j9Jg05Uyvw\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/6Oh6bMqhS38\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/52BtcCJwO6k\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/u-C4XQryv3U\" width=\"480\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h3>&nbsp;<\/h3>\n<h3>&nbsp;<\/h3>\n<p><script type=\"text\/javascript\">\/\/ <![CDATA[\ngoogle_ad_client = \"ca-pub-6097317947464913\"; \/* 8x8x8_ad *\/ google_ad_slot = \"9812967162\"; google_ad_width = 336; google_ad_height = 280;\n\/\/ ]]><\/script><br \/>\n<script type=\"text\/javascript\" src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\/\/ <![CDATA[\n\n\n\/\/ ]]><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Click Here&nbsp;to see the entire photo library! This project was featured on a TV show called &#8220;Right this Minute&#8221; on March 18 2013 Click HERE&nbsp;to see the clip on their site! Get the Eagle Project&nbsp;HERE! Get the PDF Schematic&nbsp;HERE! The schematic pdf is Huge! &nbsp;Probably easier to just download Eagle to view the files. Get&hellip;&nbsp;<a href=\"https:\/\/www.kevindarrah.com\/?p=1424\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">The 8x8x8 RGB LED Cube Project<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[99],"tags":[],"class_list":["post-1424","post","type-post","status-publish","format-standard","hentry","category-8x8x8-rgb-led-cube"],"_links":{"self":[{"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=\/wp\/v2\/posts\/1424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1424"}],"version-history":[{"count":5,"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=\/wp\/v2\/posts\/1424\/revisions"}],"predecessor-version":[{"id":1964,"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=\/wp\/v2\/posts\/1424\/revisions\/1964"}],"wp:attachment":[{"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kevindarrah.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}