{"id":637,"date":"2015-10-28T21:05:49","date_gmt":"2015-10-28T19:05:49","guid":{"rendered":"http:\/\/upmsur.ieeespain.org\/?p=637"},"modified":"2015-10-28T21:05:49","modified_gmt":"2015-10-28T19:05:49","slug":"lightwand-kosmonaut-v1-lightpainting-with-arduino-taken-a-step-further","status":"publish","type":"post","link":"https:\/\/aetel.etsist.upm.es\/?p=637","title":{"rendered":"LightWand Kosmonaut V1. Lightpainting with Arduino taken a step further"},"content":{"rendered":"<h2>\u00bfWhat is Lightpainting?<\/h2>\n<p>The origin of the <em>Lightpainting<\/em> technique is linked to the origin of photography itself. The first photographic panels, whose chemicals were extremely little sensitive to light, needed several minutes to properly capture an image. These first photographs often resulted in blurry figures that little resembled the customers portrayed. On contrast, any lamp or intruder light that travelled a path while the shutter was open, got immortalized in the photograph with great sharpness.<\/p>\n<p><!--more-->\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Etienne-Jules Marey and George Demeny decided to take advantage of this circumstance and in 1882 they inaugurated the <em>Station Psicologique<\/em> where they used different inventions and a primitive <em>Lightpainting<\/em> technique to study the human movement. The first image that made use of this technique is this one in which the human movement during a jump was studied:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-623\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/Etienne-Jules-Marey-Chronophotography-300x240.jpg\" alt=\"Etienne-Jules-Marey-Chronophotography\" width=\"437\" height=\"350\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Etienne-Jules-Marey-Chronophotography-300x240.jpg 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Etienne-Jules-Marey-Chronophotography.jpg 600w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/p>\n<h6 style=\"text-align: center;\">Figure 1: Athleth\u2019s jump, Etienne-Jules Marey and Georges Demeny (1889)<\/h6>\n<p>Since then, a lot of enthusiasts and artists have developed techniques and tools to get the <em>Lightpaint<\/em> a step forward. <em>Light Spheres<\/em>, texturized light and different stencils, but nothing as advanced as the <em>LightWand<\/em>.<\/p>\n<h2>\u00bfWhat\u2019s the <em>LightWand<\/em>?<\/h2>\n<p>Through LED technology and the indexed RGB LED stripes (individual control of each LED) made popular by <em>Sparkfun<\/em>, the same concept has been developed by different developers independently.<\/p>\n<p>A <em>LightWand <\/em>is a LED bar controlled through a microcontroller that sequentially emit the pixel rows of an image. If, while the camera has the shutter open and a low ISO sensibility, the user displaces the <em>LightWand <\/em>\u00a0through the frame, it results in an image that resembles a hologram and inserts the image into the photograph:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-626 size-full\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/Picture1.png\" alt=\"Picture1\" width=\"1678\" height=\"564\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture1.png 1678w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture1-300x101.png 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture1-768x258.png 768w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture1-1024x344.png 1024w\" sizes=\"auto, (max-width: 1678px) 100vw, 1678px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-620 size-full\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/10480223_10152548609487255_3453799919726229748_n.jpg\" alt=\"10480223_10152548609487255_3453799919726229748_n\" width=\"960\" height=\"639\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/10480223_10152548609487255_3453799919726229748_n.jpg 960w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/10480223_10152548609487255_3453799919726229748_n-300x200.jpg 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/10480223_10152548609487255_3453799919726229748_n-768x511.jpg 768w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>This tool went popular in the Internet due to a <em>Kickstarter<\/em><a href=\"#_ftn1\" name=\"_ftnref1\">[1]<\/a>\u00a0by\u00a0<em>Bitbanger Labs<\/em> in which they presented <em>Pixelstick<\/em><a href=\"#_ftn2\" name=\"_ftnref2\">[2]<\/a>. <em>Pixelstick<\/em> quickly achieved the amount of investment necessary for its development and nowadays is the only commercial option to get this tool. Sadly, its price is high (349$) and sells preferably to the US. Additionally, it is a commercial product and therefore it is not suitable for modifications or changes by the user, being limited to its original Firmware and Hardware.<\/p>\n<p>But before <em>Pixelstick<\/em>, Michael Ross<a href=\"#_ftn3\" name=\"_ftnref3\">[3]<\/a> -an American photography enthusiast with technique education \u2013 had already publish in his blog a primitive version of his <em>LightWand <\/em>. This tool didn\u2019t achieve great repercussion due to its poor publicity and it resulted a little\u00a0unattractive and hard to handle tool &#8211; But the idea and the program were great -.<\/p>\n<p>During last year, I decided to build a <em>LightWand <\/em>for private uses. After several versions solving the different lacks of Michael Ross\u2019s <em>LightWand<\/em>, I developed the <em>LightWand Kosmonaut<\/em> V1 that I documented and publishes in Github some months ago.<\/p>\n<h2>\u00bfHow is it?<\/h2>\n<p>My objective in this project was to make this version cheap, light and easy to build. For this reason I decided to use an <em>Arduino Mega 1280<\/em> as the microcontroller and a <em>Neopixel <\/em>144LED\/m LED stripe. The result is a compact controlled based on an <em>Arduino Shield PCB<\/em> that includes a Nokia 5110 screen for monitoring and some minor extra functionalities as a <em>Buzzer<\/em> and external connections.<\/p>\n<p>The <em>LightWand Kosmonaut<\/em> reads the images stored in a microSD card in .<em>pnm<\/em> format and projects them through the LED stripe, allowing the user the control over the brightness and the delay between each pixel row.<\/p>\n<p>It has a 1m length (defined by the LED stripe longitude) but it can programed to control multiple LED stripe with different lengths and densities. One of the dimensions of the projected images is the limited by the LED stripe used while the other dimension can have several meters.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-624 size-full\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/Lightwand.jpg\" alt=\"Lightwand\" width=\"4752\" height=\"3168\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand.jpg 4752w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand-300x200.jpg 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand-768x512.jpg 768w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 4752px) 100vw, 4752px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-634 size-full\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/Lightwand_Full.jpg\" alt=\"Lightwand_Full\" width=\"957\" height=\"638\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand_Full.jpg 957w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand_Full-300x200.jpg 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Lightwand_Full-768x512.jpg 768w\" sizes=\"auto, (max-width: 957px) 100vw, 957px\" \/><\/p>\n<p>The main problem this tool has is that the result of the photograph depends on the speed at which the user makes the movement, being the result sometimes unpredictable. In the following sequence three examples are shown of the shots in the same conditions but with different results.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-631 size-full\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/Picture21.png\" alt=\"Picture2\" width=\"1956\" height=\"434\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture21.png 1956w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture21-300x67.png 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture21-768x170.png 768w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture21-1024x227.png 1024w\" sizes=\"auto, (max-width: 1956px) 100vw, 1956px\" \/><\/p>\n<p>Afterwards, the photograph can be improved with slight brightness and contrast corrections with any photo edition software.<\/p>\n<p>The price of the <em>LigthWand Kosmonaut<\/em> purchasing the material through <em>Ebay<\/em> or <em>Aliexpress <\/em>is of around 50\u20ac (Depending on the \u20ac\/$ fluctuations), being a very economic and reliable alternative to <em>Pixelstick<\/em> for those users with enough knowledge to build it.<\/p>\n<h2>\u00bfWhich were the main difficulties?<\/h2>\n<p>The <em>LightWand <\/em>I have developed has gone through many stages, from the first 60LED\/m version whose results were not acceptable to not stable non-PCB versions.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-633 size-full\" src=\"http:\/\/upmsur.ieeespain.org\/wp-content\/uploads\/2015\/10\/Picture3.png\" alt=\"Picture3\" width=\"1445\" height=\"481\" srcset=\"https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture3.png 1445w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture3-300x100.png 300w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture3-768x256.png 768w, https:\/\/aetel.etsist.upm.es\/wp-content\/uploads\/2015\/10\/Picture3-1024x341.png 1024w\" sizes=\"auto, (max-width: 1445px) 100vw, 1445px\" \/><\/p>\n<p>One of the main initial problems was to use <em>Arduino UNO<\/em>, with a very limited <em>SRAM<\/em> that was not able to handle the <em>Neopixel<\/em> library, the Nokia 5110 screen and the microSD (That loads in the <em>RAM<\/em> the whole file, not allowing a sequential read). The limitations of the <em>Arduino UNO<\/em> and the lack of debugging lead to the use of the <em>Arduino MEGA 1280<\/em> (Also cheap and a lot more powerful).<\/p>\n<p>After the first prototype I discovered the work of Michael Ross and I implemented one of his functions and a couple advises regarding his failed experiments with the <em>Arduino UNO<\/em>.<\/p>\n<p>The last step was to create the PCB reducing its dimensions to a <em>Arduino Shield<\/em> and documenting the whole project along with a guide that covered the whole process. All the necessary documentation can be found in <em>Github<\/em>:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/github.com\/PabloDMM\/LightWand_KosmonautEd\">https:\/\/github.com\/PabloDMM\/LightWand_KosmonautEd<\/a><\/p>\n<h2>\u00bfWhat is left to be done?<\/h2>\n<p>The next steps to be done for posterior versions of the <em>LightWand Kosmonaut<\/em> are:<\/p>\n<ul>\n<li>Implement the reading of <em>.bmp<\/em> files (A lot more common than <em>.pnm<\/em>)<\/li>\n<li>Implement an accelerometer to automatically control the sequence of pixel rows. This would inhibit the human mistake of the process.<\/li>\n<li>Implement <em>Bluetooth<\/em> connectivity (Not with a specific objective yet).<\/li>\n<li>Develop a mechanism to make the <em>LightWand <\/em>more portable.<\/li>\n<\/ul>\n<p>Away from the technics, the main objective is to create a small community of users using it and developing upgrades and share them through the web. In this direction, the publicity made thorough the social networks (FB, Instagram<a href=\"#_ftn4\" name=\"_ftnref4\">[4]<\/a>) have been useless. During the 2015\/2016 academic year AETEL plans to make a workshop with CAT in which assistants can buy and build a <em>LightWand<\/em>, expanding its presence at least in a local spectre.<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><a href=\"#_ftnref1\" name=\"_ftn1\">[1]<\/a> <em>Pixelstick <\/em>\u2013 Lightpainting Evolved(2013), <em>Bitbanger Labs, Kickstarter project<\/em>, https:\/\/www.kickstarter.com\/projects\/bitbangerlabs\/<em>Pixelstick<\/em>-light-painting-evolved<\/p>\n<p><a href=\"#_ftnref2\" name=\"_ftn2\">[2]<\/a> <em>Pixelstick <\/em>Homepage(nd), <em>Bitbanger Labs<\/em>, http:\/\/www.the<em>Pixelstick<\/em>.com<\/p>\n<p><a href=\"#_ftnref3\" name=\"_ftn3\">[3]<\/a> Michael Ross Photography and Light Painting (2014), <em>Michael Ross<\/em>, <a href=\"http:\/\/mrossphoto.com\/wordpress32\/\">http:\/\/mrossphoto.com\/wordpress32\/<\/a><\/p>\n<p><a href=\"#_ftnref4\" name=\"_ftn4\">[4]<\/a> Instagram Profile (2015), Arsene_lupin_<em>LightWand <\/em>, <a href=\"https:\/\/instagram.com\/arsene_lupin_lightwand\/\">https:\/\/instagram.com\/arsene_lupin_<em>LightWand <\/em>\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00bfWhat is Lightpainting? The origin of the Lightpainting technique is linked to the origin of photography itself. The first photographic panels, whose chemicals were extremely little sensitive to light, needed several minutes to properly capture an image. These first photographs often resulted in blurry figures that little resembled the customers portrayed. On contrast, any lamp [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":624,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[125,126,127,128,129,130],"class_list":["post-637","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-en","tag-arduino-en","tag-diy-en","tag-led-en","tag-lightpainting-en","tag-lightwand-en","tag-pixelstick-en"],"_links":{"self":[{"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=\/wp\/v2\/posts\/637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=637"}],"version-history":[{"count":0,"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=\/wp\/v2\/posts\/637\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=\/wp\/v2\/media\/624"}],"wp:attachment":[{"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aetel.etsist.upm.es\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}