{"id":99,"date":"2013-06-19T21:26:55","date_gmt":"2013-06-20T04:26:55","guid":{"rendered":"https:\/\/www.falatic.com\/?p=99"},"modified":"2013-06-20T22:30:11","modified_gmt":"2013-06-21T05:30:11","slug":"trying-out-my-new-colorduino-v2-0-first-impressions-and-tips","status":"publish","type":"post","link":"https:\/\/www.falatic.com\/index.php\/99\/trying-out-my-new-colorduino-v2-0-first-impressions-and-tips","title":{"rendered":"Trying out my new Colorduino v2.0 &#8211; first impressions and tips"},"content":{"rendered":"<p dir=\"ltr\">After my recent experiments with the Logos RGB backpack I stumbled upon the\u00a0<a href=\"http:\/\/blog.iteadstudio.com\/ah-colorduino-debut\/\" target=\"_blank\">Colorduino<\/a>\u00a0(a cousin if not a descendant of the <a href=\"http:\/\/www.seeedstudio.com\/blog\/tag\/rainbowduino\/\" target=\"_blank\">Rainbowduino<\/a>), which is a very interesting little device! It not only controls the individual colors, but can vary their brightness (something the Logos backpack doesn&#8217;t offer).<\/p>\n<p dir=\"ltr\"><!--more--><\/p>\n<p dir=\"ltr\">The two devices cover different use cases: the Logos backpack is really more of an I2C raw display leveraging the memory-limited ATtiny2313V, while the Colorduino with the Atmel ATMega 328P\u00a0can do much more heavy lifting on its own in terms of direct processing.<\/p>\n<p dir=\"ltr\"><strong>Ordering the <strong>Colorduino<\/strong>:<\/strong> I looked around and found\u00a0<a href=\"http:\/\/www.hobbyking.com\/hobbyking\/store\/__26845__colorduino_v2_0_rgb_led_matrix_driver.html\" target=\"_blank\">a &#8220;version 2.0&#8221; Colorduino board from a place called HobbyKing<\/a>\u00a0at a decent price (about $23 USD shipped from Hong Kong after a small discount).<\/p>\n<p dir=\"ltr\">A word about HobbyKing: I read MANY scathing reviews about them (quality and shipping times being big issues), but decided to take a chance ordering this since it doesn&#8217;t have a lot of moving parts, it was at a very good price and I was paying with PayPal which offered some modicum of reassurance.<\/p>\n<p dir=\"ltr\"><strong>The Colorduino arrives:<\/strong> The verdict on the purchase itself? A bit of a mixed bag but generally positive. First, it arrived surprisingly quickly! I took the slightly more expensive &#8220;registered&#8221; airmail route ($1 more than basic, which is still way cheaper than &#8220;EMS&#8221; or whatever). I ordered it early 6\/1, it claimed to be shipped out on 6\/4 (took a couple more days for HK Post to show tracking info), left HK on the 8th, arrived in New York (?!) on the 10th, and arrived at my post office here in the San Francisco Bay area on the 12th! Not bad at all&#8230; I was fully expecting to see this no earlier than the end of the month if not sometime in mid-July.<\/p>\n<p>The fit and finish on the board? Eh&#8230; it&#8217;s not quite as clean and precise as the pictures. The LED connectors were tilted off-center making it tricky to plug the display in, and NOBODY tells you what pin 1 on the LED matrix itself corresponds to (see the video). However, as soon as I gave it 5 volts it lit right up and displayed a little demo it shipped with!<\/p>\n<p dir=\"ltr\"><strong>Programming the <strong>Colorduino<\/strong>:<\/strong> There&#8217;s lots of info in\u00a0<a href=\"http:\/\/blog.lincomatic.com\/?p=148\" target=\"_blank\">Lincomatic&#8217;s post<\/a>, particularly in the comments.\u00a0Though I found versions elsewhere, I ended up grabbing the plasma demo directly from <a href=\"https:\/\/github.com\/lincomatic\/Colorduino\" target=\"_blank\">Lincomatic&#8217;s GitHub repo for the Colorduino<\/a>.<\/p>\n<p dir=\"ltr\"><em><strong>Update:<\/strong><\/em> <a href=\"https:\/\/github.com\/MartyMacGyver\/Colorduino\" target=\"_blank\">I&#8217;ve created my own repo<\/a>\u00a0(in part a fork of Lincomatic&#8217;s repo)\u00a0in order to update it, add the original demo my board came with, and add other things I happen to come up with in the future. <a href=\"https:\/\/github.com\/MartyMacGyver\/Colorduino\" target=\"_blank\">You can check it out on Github<\/a>!<\/p>\n<p dir=\"ltr\">I also want to add a note of appreciation to the owner of <a href=\"https:\/\/github.com\/tinkering-arduino\/ColorShield_8x8_RGB_LED\" target=\"_blank\">the tinkering-arduino repo on GitHub<\/a>. It got me un-stuck as I tried to get the original demo working with the Arduino IDE. I may pull elements of that into the combined demo as well.<\/p>\n<p dir=\"ltr\">I also stumbled upon the <a href=\"http:\/\/www.geeetech.com\/Documents\/Sch-Colorduino-V2.0.pdf\" target=\"_blank\">schematic for the &#8220;2.0&#8221;<\/a>, as well <del>as different demo<\/del>\u00a0the demo the board shipped with (see above)\u00a0that <del>will probably require some work to convert<\/del>\u00a0now works exactly as it did when I received it (there&#8217;s not a whole lot of info out there actually, but I did manage to track down the originals at least). I&#8217;m not really sure what makes it a v2.0 other than a slightly different connector or two, and the scarcity of info makes me think this board is otherwise identical to the v1.3 (and judging by some of what I found, some entities were doing little more than slapping their name on the files &#8211; yeah it&#8217;s LGPL but at least give the original authors and editors credit if you&#8217;re just making a copy of the file! Ugh.)<\/p>\n<p dir=\"ltr\">Anyway, I realized I had no easy way to program this thing, so I ordered <a href=\"https:\/\/www.sparkfun.com\/products\/9873\" target=\"_blank\">SparkFun&#8217;s Basic FTDI board<\/a>\u00a0(from CanaKit by way of Amazon) to do the job. It&#8217;s a keeper! Note that I Ieft it on the default 3.3V setting and it worked perfectly fine &#8211; it&#8217;s 5V-tolerant and the 5V Arduinos seem to do fine with 3.3V serial signalling &#8211; but as noted below do NOT connect the 3.3V line to anything! Just make sure the ground is properly connected to the same ground as the LED display. (The usual disclaimer of liability applies &#8211; know what you&#8217;re doing before you do it!)<\/p>\n<p dir=\"ltr\">I then decided to try uploading the <em>ColorduinoPlasma<\/em> demo. I opened the\u00a0project file with the Arduino IDE (the 1.5.x version worked fine for me) and imported the libraries by select &#8220;Sketch -&gt; Import Library&#8230; -&gt; Add Library&#8230;&#8221;, then selecting the Colorduino folder within the libraries folder (e.g.: \u00a0<em>&#8230;..\\Colorduino-from-git\\libraries\\Colorduino<\/em>)\u00a0That this will copy the folder with those library files into your workspace&#8217;s library folder (personally I&#8217;d like to learn how to keep them local to the rest of the project but&#8230; not today).<\/p>\n<p><strong>Connecting the\u00a0<strong>Colorduino:<\/strong><\/strong>\u00a0For convenience I used an Uno as a power source and tapped the 5V and ground from there for the VCC and GND on the Colorduino, then connected my FTDI board to the same common ground (but you DO NOT need or want to connect the 3v3 line from the FTDI board to anything!) I connected DTR to DTR, RX to TX and TX to RX (crossover), selected <em>Arduino Nano<\/em> as the board and the serial port for the FTDI board. I then clicked the compile\/upload button and after a few seconds of loading the demo started right up! **<\/p>\n<p>Here&#8217;s a quick video of the <em>ColorduinoPlasma<\/em> demo in action on my board (sorry &#8211; no video of the demo it originally shipped with &#8211; wish I had that source code as well!):<\/p>\n<p><iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/bdrCXusY88c\" height=\"315\" width=\"560\" allowfullscreen=\"\" frameborder=\"0\"><\/iframe><\/p>\n<p><em>** Well, it worked like a charm once I finally figured out the right board type, the right way to write the serial lines, the right COM port, and how to coerce the library into the right place! I had some help from <a href=\"http:\/\/forum.arduino.cc\/index.php?topic=148566.0\" target=\"_blank\">the Arduino forums<\/a>\u00a0where I verified my wiring and found the board type to use. Think of my post here as saving you a whole lot of time! \ud83d\ude00<\/em><\/p>\n<!-- wpsso rrssb get buttons: buttons on archive option not enabled -->\n","protected":false},"excerpt":{"rendered":"<p>After my recent experiments with the Logos RGB backpack I stumbled upon the\u00a0Colorduino\u00a0(a cousin if not a descendant of the Rainbowduino), which is a very interesting little device! It not <a href=\"https:\/\/www.falatic.com\/index.php\/99\/trying-out-my-new-colorduino-v2-0-first-impressions-and-tips\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[85,86],"tags":[90,104,103,105,106],"class_list":["entry","author-marty","has-more-link","post-99","post","type-post","status-publish","format-standard","category-electronics","category-software-and-hardware-development","tag-arduino","tag-atmel","tag-colorduino","tag-ftdi","tag-leds"],"_links":{"self":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":0,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.falatic.com\/index.php\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}