<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title></title>
	<atom:link href="https://gonazar.x10.mx/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://gonazar.x10.mx</link>
	<description></description>
	<lastBuildDate>Sat, 02 Sep 2017 04:26:41 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>PSA: WS2812B LEDs may not be what you think they are!</title>
		<link>https://gonazar.x10.mx/?p=941</link>
		<comments>https://gonazar.x10.mx/?p=941#comments</comments>
		<pubDate>Fri, 13 Jan 2017 22:13:31 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=941</guid>
		<description><![CDATA[Hey guys, So I&#8217;ve just spent the last week investigating this topic as I&#8217;ve recently learned that a couple thousand dollars worth of our inventory is defective because of bad WS2812B LEDs. EDIT: Yay, I got credited on Hackaday for this discovery! Story Time: Discovering the Issue (Feel free to skip to How to Identify [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hey guys,</p>
<p>So I&#8217;ve just spent the last week investigating this topic as I&#8217;ve recently learned that a couple thousand dollars worth of our inventory is defective because of bad WS2812B LEDs.</p>
<p>EDIT: Yay, I got <a href="http://hackaday.com/2017/01/25/ws2812b-led-clones-work-better-than-originals/">credited on Hackaday</a> for this discovery!</p>
<h3>Story Time: Discovering the Issue</h3>
<p>(Feel free to skip to How to Identify Smart LEDs)</p>
<p>For a while we&#8217;ve been sourcing Smart LED flexible strips from various sources: eBay, Amazon, Aliexpress, Alibaba with varying results. All searches were done using the term WS2812B which is a 4 pin integrated smart RGB LED. It only needs V+, GND rails and Data in/out using a daisy chain structure and sending data down the line sequentially.</p>
<p>We now rely on a very stable supplier <a href="http://www.shiji-led.com/">http://www.shiji-led.com/</a> who I&#8217;ve now purchased about 800m worth of LEDs without issue.</p>
<p>However, we also needed to make some custom double sided LED PCB bars so I went and sourced WS2812B LEDs directly from WorldSemi. These we spent about $800 worth on discrete LEDs, ~$100 on pcbs, and then another $1200 to have them assembled by a local fab. After everything was made we did some QC tests and found that the LEDs were failing in a weird way. Basically 1/10 LEDs had one or more internal diodes failing. Typically the blue diode, but occasionally red or green and in rare cases multiple or all three diodes failed.</p>
<p>Here are a couple videos of the behavior we were seeing:<br />
Test 1:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='https://www.youtube.com/embed/_Gt5VzD8Di4?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0' allowfullscreen='true'></iframe></span></p>
<p>Test 2:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='640' height='390' src='https://www.youtube.com/embed/cQURSWLKLFU?version=3&#038;rel=1&#038;fs=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0' allowfullscreen='true'></iframe></span></p>
<p>The failure seems to be temperature sensitive, and in extreme cases pressure sensitive too. Being temperature sensitive means that from a cold start running full brightness white, in about 30 seconds you&#8217;ll start to see issues, but after it&#8217;s warmed up (~1-5min) those issues will disappear. If poked (pressure) it&#8217;s very likely you can permanently damage it. In the second video that one LED I poked never worked again and in fact the data line has been severed so subsequent LEDs will not work either.</p>
<p>This raised a lot of questions as to why our flexible strip LED supply was so reliable, but the LEDs bought directly from WorldSemi were not.</p>
<p>After investigating bad WS2812B chips and variations of the chip, we discovered there is a clone called the SK6812. And I&#8217;ve since confirmed that our stable flexible strip supplier has been selling these since early 2016 without telling their clients. Since they&#8217;re directly clones they felt there was no need to change the name of their product since it uses the same WS2812B protocol. However the main reason they switched was because they&#8217;re way more reliable than the WS2812B. There is also some slight improvements in the electrical characteristics, namely double the PWM frequency on the diodes (making them better for persistence of vision projects).</p>
<h3>How to Identify (4 pin) Smart LEDs</h3>
<p>I&#8217;ve compiled a imgur album, but I will summarize the main points:</p>
<p>* **WS2812(S)** is the 6 pin grandfather of the 4 pin smart LED, which follows a stupid naming convention. WS2812 is the name of the Smart LED with RBG diodes and an integrated IC. The name of that IC is WS2811. The reason this IC has 6 pins is because the WS2811 has separate power rails which is rather pointless. 6 Pins makes this easy to identify on it&#8217;s own.<br />
* **WS2812B** is the next evolution with 4 pins. From the images you&#8217;ll see I&#8217;ve found at least 3 different variations of it. To identify this IC you&#8217;ll need a microscope to look at the bonding wires. I&#8217;m mainly focusing on the IC itself because of the bonding wire pad placement. You&#8217;ll see that it has 3 closely place pads along the short edge of the IC and on the opposite side 3 spaced out pads. Other indicators for variations of the LED package are the placement of the blue diode and shape of the pads inside the package.<br />
* **SK6812** is the clone Smart LED and is most easily identified by the IC being rotated 90°. Under a microscope you&#8217;ll also see that the 3 closely placed bonding wire pads are now along the long edge of the IC.</p>
<p>One other way to differentiate the ICs is the size:</p>
<p>* WS2811 is 0.8&#215;1.05mm<br />
* WS2812B is 0.7&#215;0.9mm<br />
* SK6812 is 0.6&#215;0.8mm</p>
<blockquote class="imgur-embed-pub" lang="en" data-id="a/MLmZD"><p><a href="https://imgur.com/a/MLmZD">Differences between WS2812(S) vs. WS2812B vs. SK6812 LED Variants</a></p></blockquote>
<p><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script></p>
<h3>Summary</h3>
<p>If you&#8217;re buying this type of smart LED, make sure you get the good stuff. Verify with your supplier which IC is being used in the product because it seems like most manufacturers aren&#8217;t bothering to tell people they&#8217;ve switch to clone.</p>
<h3>Credits</h3>
<p>I&#8217;ve done most of this investigation through discussion on a few blogs. For more information on bad WS2812B LEDs and other failure modes check out:<br />
<a href="https://wp.josh.com/2016/10/29/a-quick-test-for-crappy-ws2812b-neopixels/">https://wp.josh.com/2016/10/29/a-quick-test-for-crappy-ws2812b-neopixels/</a><br />
For more information on the SK6812 go here:<br />
<a href="https://cpldcpu.com/2016/03/09/the-sk6812-another-intelligent-rgb-led/">https://cpldcpu.com/2016/03/09/the-sk6812-another-intelligent-rgb-led/</a><br />
And for a summary on the differences between WS2811 and WS2812B, go here:<br />
<a href="http://rgb-123.com/ws2812b-vs-ws2811/">http://rgb-123.com/ws2812b-vs-ws2811/</a></p>
<h3>After Credits</h3>
<p>WorldSemi has yet to respond to my inquiry of the failed ICs but I expect with a small order (on their scale) I expect they&#8217;re probably not going to bother compensating me in any way.<br />
Shiji has been very helpful and offered to supply me with the SK6812 discrete LEDs in tape/reel. I&#8217;m not sure if we&#8217;ll do that though because the cost of rebuilding the inventory is far higher than falling back to an old design using old inventory we already have.</p>
<h4>Other things to note:</h4>
<p>There are also a new generation of smart LEDs if you&#8217;re interested in looking them up. Some have RGBW diodes with varying white color temperatures. The next generation of ICs WS2813 and SK6822 which have dual data lines, this is a redundancy so that if one dataline breaks, you can still have signal going through. Interestingly WS2813 also incorporates the decoupling capacitor <em>inside</em> the LED package too allowing you to cram more LEDs closer together.<br />
Another few other names to throw out: APA102 and SK9812. I haven&#8217;t looked into these in detail but I believe they&#8217;re also 6 pin packages with different protocols or data line redundancy.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=941</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3D Printing Tests: Figurine</title>
		<link>https://gonazar.x10.mx/?p=929</link>
		<comments>https://gonazar.x10.mx/?p=929#comments</comments>
		<pubDate>Tue, 06 Jan 2015 00:30:45 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=929</guid>
		<description><![CDATA[Thanks to my friend Daniel Kreuter I received a fairly high res 3D figurine model ready for printing. Since I do want to get into this more eventually I wanted to give this a go to test the limits of my printer. The nice thing about this model which is great for printing is both [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Thanks to my friend <a href="https://plus.google.com/u/0/+DanielKreuter/posts">Daniel Kreuter</a> I received a fairly high res 3D figurine model ready for printing.</p>
<p>Since I do want to get into this more eventually I wanted to give this a go to test the limits of my printer. The nice thing about this model which is great for printing is both the simplicity and the details included. She doesn&#8217;t have any super detailed clothing (you can hardly tell she&#8217;s wearing any), the shapes are simple and clean. However the smaller features such as the face, fingers and toes, come out very clearly. The best part is the hair is not overly complex and has almost no unsupported hanging parts. Unsupported hair is very common in most 3D modeled figures which make them undesirable for printing.</p>
<p>The biggest challenge here is printing a very complex shape that can&#8217;t support itself during printing. You can clearly see when you get to the ball she&#8217;s holding, there would be nothing for the printer to start building that on off of. As a result I have to add in a lot of support material, though this drastically reduces the surface quality. The only tweaking I did was to rotate the fingers so they were not hanging unsupported, but rather connected with her thigh and the ball. I also added a base since the model only stands on her toes and would have been very unbalanced without one.</p>
<p>The biggest issue with this print showed itself near the top of the legs, halfway through the thighs. It became apparent there was no horizontal support and the long tall thin features were vibrating like tuning forks whenever the print head was working on them, or worse when the nozzle caught the edge of print making it deflect almost 1cm. Eventually this broke the middle support piece and in my panic I tried holding it all together with my hands until it got to the crotch. However I soon realized that I had inadvertently been adding weight to the print bed. Since it&#8217;s only supported on one side it&#8217;s like a cantilever and deflects. This totally knocked the z-precision way off and it took me 20 minutes sitting there before I came to a solution that i didn&#8217;t have to hold up myself. I was very determined to see this print through since it was estimated to take 7 hours and I didn&#8217;t want to restart it. I&#8217;m actually pretty surprised it managed to finish at all.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1248.jpg"><img class="aligncenter size-large wp-image-935" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1243-768x1024.jpg" alt="IMG_1243" width="640" height="853" /></a>Above: Figure test with support material, just as the print was completed.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1242.jpg"><img class="aligncenter size-large wp-image-934" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1242-1024x768.jpg" alt="IMG_1242" width="640" height="480" /></a>Adding weights to the bed to offset the Z-layer height. Thank god I didn&#8217;t cash those coins in yet. Maybe I&#8217;ll keep the pennies after all since they make great weights in small units.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1248.jpg"><img class="aligncenter size-large wp-image-932" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1250-1024x768.jpg" alt="IMG_1250" width="640" height="480" /></a>Quality of the upper body and head was so so, lots of room for improvement. The support material definitely takes it&#8217;s toll on surface quality. I can probably achieve a much better finish if I was going slower and did thinner layer heights.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1248.jpg"><img class="aligncenter size-large wp-image-930" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1248-1024x768.jpg" alt="IMG_1248" width="640" height="480" /></a>The totally messed up area. So surprised it recovered itself. The hand on the right looks super creepy.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1249.jpg"><img class="aligncenter size-large wp-image-931" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1249-1024x768.jpg" alt="IMG_1249" width="640" height="480" /></a>The legs up to the messed up point look very good though, the quality is pretty smooth and the detail in the toes is pretty good.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1251.jpg"><img class="aligncenter size-large wp-image-933" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1251-768x1024.jpg" alt="IMG_1251" width="640" height="853" /></a> <a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1242.jpg"><br />
</a>Oops. Looks like the only thing holding up the right section was the fingers, which broke while I was trying to remove the support material.</p>
<p>I learned a lot from this print. I now know to never, ever, eeeeeever touch a print while it&#8217;s printing. I also learned how to deal with misalignment in the Z-axis by adding a bit of weight to the bed to deflect it and give the nozzle a bit more room.</p>
<p>This also showed me that I need to consider horizontal support for tall unsupported structures. I definitely need to change my settings for support material from just &#8216;Line&#8217; to &#8216;Grid&#8217; so it&#8217;s sturdier.</p>
<p>If I get better software to slice this model, I will definitely attempt it again. If it turns out better than this, and remains unbroken, then I will look into post processing it as well.</p>
<p>Thanks again to <a href="https://plus.google.com/u/0/+DanielKreuter/posts">Daniel Kreuter</a> for the model, he does great 3D modelling so go check out his stuff on his site.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=929</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>3D Printing Tests: Thermomolding</title>
		<link>https://gonazar.x10.mx/?p=922</link>
		<comments>https://gonazar.x10.mx/?p=922#comments</comments>
		<pubDate>Mon, 05 Jan 2015 23:57:44 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[3D Printing Tests]]></category>
		<category><![CDATA[3D printing]]></category>
		<category><![CDATA[Test Printing]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=922</guid>
		<description><![CDATA[Trying out a new method to create more complex shapes using PLA. This wrist brace model was found on Thingiverse and I just gave it a go. The idea behind thermomolding is thanks to the properties of PLA which is the plastic I am using. PLA is liquified at around 200°C but actually softens at [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Trying out a new method to create more complex shapes using PLA.</p>
<p>This wrist brace model was found on Thingiverse and I just gave it a go. The idea behind thermomolding is thanks to the properties of PLA which is the plastic I am using. PLA is liquified at around 200°C but actually softens at around 100°C. This means the plastic becomes malleable and can be shaped just by dunking it for a few seconds in boiling water. However, once it cools, it becomes quite stiff. The print itself it pretty simple, a mostly 2 dimensional object, though probably one of the largest I&#8217;ve done in terms of print bed surface area used. It took approximately 5.5 hours to print this, mainly due to the complexity of the lattice and the tool pathing required adds additional time.</p>
<p>This particular design has reinforced bars on the long axis of the brace. The notches on the sides are for adding straps to secure it.</p>
<p><img class="aligncenter size-large wp-image-926" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1230-1024x768.jpg" alt="IMG_1230" width="640" height="480" /></p>
<p>The actual process of thermomolding was straight forward. Dunk the plastic in hot water and you&#8217;ve got about 10 seconds to shape it before it starts to stiffen up again. The pro: you can isolate which sections of the print are exposed to the hot water to control where the bending takes place. The con: molding it over your arm might burn you with hot water droplets.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1233.jpg"><img class="aligncenter size-large wp-image-923" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1233-1024x768.jpg" alt="IMG_1233" width="640" height="480" /></a></p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1237.jpg"><img class="aligncenter size-large wp-image-924" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1237-1024x768.jpg" alt="IMG_1237" width="640" height="480" /></a></p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1238.jpg"><img class="aligncenter size-large wp-image-925" src="http://gonazar.x10.mx/wp-content/uploads/2015/01/IMG_1238-1024x768.jpg" alt="IMG_1238" width="640" height="480" /></a></p>
<p>For something that wasn&#8217;t designed for my hand size and was molded by an amateur, I&#8217;d say the fit is pretty good. Even if it&#8217;s not perfect, I imagine it&#8217;d be good to squeeze some padding in there.</p>
<p>Overall this print was very successful and I look forward to applying this technique to future prints.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=922</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 1: Electronics and Software</title>
		<link>https://gonazar.x10.mx/?p=896</link>
		<comments>https://gonazar.x10.mx/?p=896#comments</comments>
		<pubDate>Mon, 24 Nov 2014 08:37:32 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P1]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=896</guid>
		<description><![CDATA[This part has taken me a long time, mainly because I worry too much about burning electronics and lack of resources to debug things. It also didn&#8217;t help that I kept starting and stopping work on this so it was hard to maintain continuous progress. I&#8217;d forget what it was I was doing or what [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This part has taken me a long time, mainly because I worry too much about burning electronics and lack of resources to debug things. It also didn&#8217;t help that I kept starting and stopping work on this so it was hard to maintain continuous progress. I&#8217;d forget what it was I was doing or what I got stuck on.</p>
<p>Additionally, there were a lot of features I wanted to include in this that required various bits of hardware and logic to run it all. In retrospect, it would have been better to create a roadmap or outline of what I waned to accomplish, then work on individual parts and put it all together. However in some sense I thought it wouldn&#8217;t be too difficult to put it altogether in one go, so I just winged it. Working on multiple parts of the code simultaneously is not a good idea. Especially when you get bugs and have no idea where they are originating from.</p>
<p>Since I am writing this in post, it&#8217;s much easier for me to outline what has been done and give a proper road map of where this is going:</p>
<ol>
<li>Create time keeping electronics that display on an LCD</li>
<li>Add LED Lamp brightness control (input from a potentiometer and create PWM output)</li>
<li>Add alarm functionality (manual alarm set + sunrise effect for alarm action)</li>
<li>Add button array for user input (include debouncing and UI logic)</li>
<li>Modify firmware to be able to display time, alarm time and modify either by using button inputs (remove manual time/alarm set)</li>
<li>Add switches to change modes (might be trouble since we&#8217;re running out of digital I/Os)</li>
<li>Add Winamp communication functionality to buttons in different modes (media buttons, playlist selection, volume)</li>
<li>Create script on computer to handle communication between MCU and Winamp</li>
<li>Add an independent power supply</li>
<li>Move all electronics to custom PCB boards or Prototyping boards</li>
<li>Design and print an enclosure to hold all the electronics.</li>
</ol>
<p>Steps 1-3 were fairly easy since I relied heavily on <a href="http://startingelectronics.com/beginners/start-electronics-now/tut16-arduino-clock/">this tutorial</a> and the RTC library. Step 4 was a bit more challenging since at first I didn&#8217;t know how to approach debouncing on multiple buttons. This changed after I resolved to use a button map and used that for checking debouncing. Subsequently, once the buttons were figured out, adding alarm functionality for step 5 was a matter of playing with the RTC library a bit more in depth.</p>
<p>Step 6 has been one of the more difficult challenges. I needed two switches but only had one digital I/O left. Instead I opted to use analog pins, however due to the time it takes to process the value of these pins I think I was accumulating latency and errors. Since the switches are flip/rocker switches I don&#8217;t have to worry about debouncing and don&#8217;t need to check the value as often. As far as I can tell this bug has been resolved, but more testing is needed to see if it&#8217;s been totally cleared.</p>
<p>Step 7 and 8 have been mostly figured out on another program. Earlier this year I was already playing with trying to make an external Winamp controller, before I changed the goal of this project to a led lamp with the same functionality. In the other program I had used an PS/2 mouse as an input, utilizing a low level serial communication to interface the two buttons and mouse wheel. A python script was already in place to handle commands from the external MCU for media control, playlist selection and volume. This project was mainly dropped because originally I wanted to display currently playing tracks on the small 2&#215;16 character LCD. However the majority of my music is Japanese and uses many asian characters that the LCD is not able to display, making it effectively useless. With the LED Lamp however, I plan to just use the computer monitor to display this data which means I can also modify the python script as an interface for selecting playlists.</p>
<p>Step 9 was something I had wanted ever since I installed the LED strip. The LED strip runs at 12 V and draws about 0.5 A, while the MCU and all the electronics run at 5V with about 100mA draw. Throughout the prototyping process I have been using my Hydra which is a programmable digital power supply which was set for 5V and 12V outputs. While great for prototyping, I did not want this project dependent on it if it were to become a stand alone product. Thus, added a 9V regulator and utilized the DC input socket of the arduino. I have a 12V 1.6A switching power supply which feeds the LED strip and this small regulator which in turn powers everything else.</p>
<p>Step 10 is one of the slowest parts mainly because I am unsure of how to proceed. Ideally I would have liked to have a custom PCB, but it&#8217;s incredibly expensive or time consuming to manufacture a single board. Therefore I have to resort to prototyping board on which I have very limited space. On this board I need to fit the power circuit, PWM transistors circuits, a pin socket for the potentiometer, and the real-time clock circuit (in which the coin cell batter takes up a huge amount of space). The button array has already been moved to a much nicer board with fancy colorful buttons.</p>
<p>Step 11 I will not be able to start until the last board is finished. Otherwise I won&#8217;t know for sure the dimensions I need to fit everything in.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=896</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 1: Mechanical Design and Construction</title>
		<link>https://gonazar.x10.mx/?p=893</link>
		<comments>https://gonazar.x10.mx/?p=893#comments</comments>
		<pubDate>Mon, 24 Nov 2014 08:17:07 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P1]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=893</guid>
		<description><![CDATA[With the rough design in mind I designed all the joint components in Solidworks for 3D printing. In total there are 6 joint pieces per side; two at the base, two at the top, and two small nubs that will connect the reflector (not shown above). The two joint pieces at the base are pretty straight [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>With the rough design in mind I designed all the joint components in Solidworks for 3D printing.</p>
<p><img class="aligncenter  wp-image-904" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/LEDLamp2.jpg" alt="LEDLamp2" width="292" height="400" /></p>
<p>In total there are 6 joint pieces per side; two at the base, two at the top, and two small nubs that will connect the reflector (not shown above). The two joint pieces at the base are pretty straight forward, the only important feature in this was to make the inner piece, which fits inside the copper tube, hollow so that the LED wires could be run internally. The top two joint pieces are the most complex of this design. The outer (left) piece has a large hole in the bottom so that it can be fixed to to the copper tube. The majority of this piece is hollow aside from the core which supports the axial screw. The hollow cavity is for extra slack in the wires so the connecting piece can rotate without tugging on them. The inner (right) piece is the crux of this joint system.</p>
<p><img class="aligncenter size-large wp-image-907" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/LEDLamp5.jpg" alt="LEDLamp5" width="492" height="644" /></p>
<p>a) Hole for axial screw and bolt. b) slot for aluminum bar with a notch for the led wires. c) Hole for locking screw to fix aluminum bar in place. d) Slots to allow reflector to move from front to back. e) Mounting hole for telescoping bar.</p>
<table>
<tr style="background-color:#3E3E3E;">
<td><img class="wp-image-906 aligncenter" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/LEDLamp4.jpg" alt="LEDLamp4" width="403" height="250" /></td>
<td><img class="wp-image-905 aligncenter" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/LEDLamp3.jpg" alt="LEDLamp3" width="284" height="250" /></td>
</tr>
</table>
<p>The bottom reflector nub attaches to both ends of a brass bar and slots into the inner-top joint. The top nub also attaches to both ends of a brass bar which connect to the top of the telescoping bars.</p>
<p><img class="aligncenter size-large wp-image-899" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/IMG_7209-1024x768.jpg" alt="IMG_7209" width="640" height="480" /></p>
<p>The most difficult part of this was determining tolerances since I had not yet made anything that joined to other parts (of various materials). Additionally, I found that the 3D printed PLA changes over time, depending on the shape and the way it was extruded, it can shrink, expand and even warp if under stress over a long period of time.</p>
<p><img class="aligncenter size-large wp-image-901" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/IMG_7211-1024x768.jpg" alt="IMG_7211" width="640" height="480" /></p>
<p><img class="aligncenter size-large wp-image-902" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/IMG_7212-1024x768.jpg" alt="IMG_7212" width="640" height="480" /></p>
<p>The only way to resolve this was by trial and error. Parts were designed to fit snugly however I quickly realized I needed at least 0.1&#8243; extra clearance to get &#8216;snug&#8217; fits.</p>
<p><img class="aligncenter size-large wp-image-900" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/IMG_7210-1024x768.jpg" alt="IMG_7210" width="640" height="480" /></p>
<p>Joints aside, I also needed to get together the non plastic parts that would fill in everything in between. I sourced 2&#8243; #6-32 machine screws + nuts, 1/2&#8243; wood screws, a 1/4&#8243;aluminum bar, 2 1/8&#8243; brass rods, a piece of 3/4&#8243; diameter copper pipe (meant for plumbing) and a 8&#8242; plank of 1&#215;3, all from Home Depot. All the metal components were cut to size and polished with steel wool to achieve a very nice shine. The wood was cut to length, however I found despite being very careful to pick one that was straight, after cutting it it turned out to be very warped.</p>
<p>Additionally I picked up a sheet of poster board from the dollar store which would become my reflector and a set of bunny ears (telescoping TV antennas) which was the single worst purchase I&#8217;ve ever made. I don&#8217;t think I&#8217;ve been scammed worse than for the bunny ears which cost me ~$10 for 2 pieces of telescoping metal, a plastic shell and a copper wire that was screwed to the bottom of each &#8216;ear&#8217; that went out to the TV. I had no idea these things were that simple and it certainly was worth much much less than $10.</p>
<p>With all the joints printed, it was a simple matter to assemble everything together. It really is amazing to be able to develop a concept in my mind and make it into a reality. However, like any other prototyping process, design flaws may not be realized until after the thing has been built.</p>
<p><img class="aligncenter size-large wp-image-908" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/IMG_7223-1024x768.jpg" alt="IMG_7223" width="640" height="480" /></p>
<p>Two of the major issues I found with my design are weight distribution and using screws in rotational joints. Looking back at the design, I had imagined that the majority of the lamp would be fairly light, but having used metal bars, pipes and rods with a light cedar base, the lamp is very top heavy. This was further compounded with the fact that the rotational joints had fixed slots for the nuts, meaning the joints would loosen every time it was moved. Even if the top heavy lamp managed to stay upright, there was a good chance the reflector section would just spin downwards since the joints would not be tight enough for friction to hold it&#8217;s position.</p>
<p>In the mean time, I&#8217;ve left the lamp mostly upright, which is still usable. Now that it&#8217;s been tested, I have a better idea of what I want to do and the design requirements for revision 2. Ah, the life of prototyping.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=893</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 7: Dynamic Ambient Lighting for TV/Monitor</title>
		<link>https://gonazar.x10.mx/?p=874</link>
		<comments>https://gonazar.x10.mx/?p=874#comments</comments>
		<pubDate>Tue, 11 Nov 2014 23:05:30 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P7]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=874</guid>
		<description><![CDATA[This idea has been floating around for a while. It&#8217;s a very cool way to increase the immersive experience of playing games or watching movies. It&#8217;s based on using RGB LEDs on the back of the monitor to light up the wall behind it with colors similar to the content of the screen. Since you&#8217;re [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This idea has been floating around for a while. It&#8217;s a very cool way to increase the immersive experience of playing games or watching movies. It&#8217;s based on using RGB LEDs on the back of the monitor to light up the wall behind it with colors similar to the content of the screen. Since you&#8217;re eyes are focused on the screen, areas beyond the edges are seen with your peripheral vision. Using dynamic lighting behind the screen, the effective area of the screen is expanded.</p>
<p><img class="aligncenter" src="http://www.technologytell.com/hometech/files/2013/05/Lightpack-Dynamic-DIY-Ambient-Backlighting.jpg" alt="" width="640" height="360" /></p>
<p>When I first saw this the method of achieving it was rather resource heavy. The RGB LEDs and the controller were expensive and there was no simple software to run it. To grab color data from the screen some people were even using VGA/DVI adapters to backward process what was being displayed. Additionally strips came in two kinds: addressable and non-addressable, meaning each LED could be addressed for RGB value or the whole strip would be the same color. Controlling this meant that either I would need to figure out the modulation pattern of whatever addressable strip I buy (at the time I wasn&#8217;t very experienced with this and didn&#8217;t understand the datasheets) or I would need a controller with multiple PWM I/Os to send to multiple short segments of non-addressable strips.</p>
<p>Recently however, I was hired to work on building RGB LED matrix displays. From that project I was able to salvage some leftover WS2811 strips. These strips are rather special since each LED pad contains an R, G, and B diode, plus a WS2811 chip. The chip is designed for controlling a lot of RGB LEDs (up to 4000) with a single microcontroller. This is achieved by sending a high frequency PWM modulated data stream down a single data line along an entire strip. The data stream addresses each LED pad and provides 4 bytes of data, 3 for each value of r, g and b and one for brightness. This makes the strip very versatile and easy to manipulate since the libraries already exist and all I need to do is program an array of data that gets sent to the strip.</p>
<p>To understand this I have been playing with the strip for a while using my MSP430 Launchpad to control it. The <a href="http://forum.43oh.com">43oh</a> forums have been very helpful to get the appropriate libraries and code to start working with it. Example code can be found here:<a href="http://forum.43oh.com/topic/2852-ws2811-led-controller-driver/"> http://forum.43oh.com/topic/2852-ws2811-led-controller-driver/</a></p>
<p>Once I understood how to send data to the strip, the project turned toward grabbing data from the source and transmitting it to the microcontroller</p>
<p>On the software side I did a lot of research to find a simple way to achieve this. I ended up finding this project which was doing something very similar with a non-addressable RGB strip. http://siliconrepublic.blogspot.ca/2011/02/arduino-based-pc-ambient-lighting.html</p>
<p>Here they&#8217;re using Processing, a Java based IDE to take screenshots and analyze the average color of the screen. I took this and modified it to produce multiple regions to analyze instead of just one. To optimize the usage of the strip I needed to assign  a certain number of LEDs per region that was proportional to the area it was reading. Ideally I wanted to minimize the number of cuts I would need to make in the strip.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2014/11/ADLDistribution.jpg"><img class="aligncenter wp-image-877 size-full" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/ADLDistribution.jpg" alt="ADLDistribution" width="885" height="576" /></a>With my 1920*1200 resolution screen and a 60 LED strip I divided it accordingly. Alternatively I could have made it 6 regions of 6 at the top and each side would have 2 regions of 6, but the dimensions of the monitor only allows less than 34 LEDs in the horizontal axis without cutting it. Similarly in the vertical axis I can only put around 20 LEDs without cutting the strip.</p>
<p>Next post: Transmitting Data Serially and Putting It All Together (coming soon)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=874</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 6: MSESS Robot Concept</title>
		<link>https://gonazar.x10.mx/?p=869</link>
		<comments>https://gonazar.x10.mx/?p=869#comments</comments>
		<pubDate>Fri, 07 Nov 2014 19:17:40 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P6]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=869</guid>
		<description><![CDATA[Back in my last years at Uni I was heavily involved with the MSESS (Mechatronics Systems Engineering Student Society). It was a very new student group since the MSE program was only 5 years old at the time and the Student Society had only been around for 2 or 3. With constant cycling of members [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Back in my last years at Uni I was heavily involved with the MSESS (Mechatronics Systems Engineering Student Society). It was a very new student group since the MSE program was only 5 years old at the time and the Student Society had only been around for 2 or 3. With constant cycling of members as the course loads were heavy and people taking co-ops in all semesters around the year, it was hard to get the society off the ground. Once it was established though, we were very ambitious. One of the society&#8217;s goals was to develop a mascot (so it could be used at engineering conferences or aka being envied by other student societies and having it stolen).</p>
<p>From our first year of Alumni we had a big trophy made of welded machine parts and making a weak attempt to combine all the aspects of our program, it also doubled as a beer bong. However what we wanted was something similar to WESST&#8217;s mascot Debbie, the concrete Donkey. It&#8217;s more iconic and easy to get attached to than a 50lb inanimate jumble of machine parts.</p>
<p>So after a committee meeting, I came of with a concept for a Mechatronics robot which followed the style of Pixar&#8217;s Wall-E.</p>
<p>I named him MAD-E (Mechatronics <del>Autonomous</del> Alcoholic Drink Expeller).</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2014/11/MAD-E-001.jpg"><img class="aligncenter size-large wp-image-870" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/MAD-E-001-1024x744.jpg" alt="MAD-E 001" width="640" height="465" /></a></p>
<p>The idea was to have this little box robot follow people around autonomously and fire beer cans out it&#8217;s top. Some of the features i would have included are:</p>
<ul>
<li>RC chassis and battery</li>
<li>MCU Autonomous and remote control</li>
<li>Camera to use for tracking and obstacle detection</li>
<li>LED Matrix display on the front to display faces and &#8216;emotions&#8217;</li>
<li>Cooling unit that can store at least 6 cans</li>
<li>Mechanism to transfer cans into cannon</li>
<li>Some sort of mechanism to fire cans out the top</li>
<li>A speaker and maybe a vibrator to get pre-programmed behavioral quirks in</li>
</ul>
<p>Since the robot was fairly complex the plan was to execute project development over 3 years and commit a certain amount of resources every semester. However, the primary resource no one had to spare was time and almost no one was willing to commit to it. I would have been happy to lead the project, but with no members it was a flop from the beginning.</p>
<p>In the end we decided to keep the beer bong as our mascot, albeit we fixed it up so it was a bit more presentable.</p>
<p>I guess an autonomous beer dispensing robot that will follow me around will continue to be a dream for the future.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=869</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 5: 8x8x8 LED Matrix Cube</title>
		<link>https://gonazar.x10.mx/?p=865</link>
		<comments>https://gonazar.x10.mx/?p=865#comments</comments>
		<pubDate>Fri, 07 Nov 2014 18:44:45 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P5]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[Launchpad]]></category>
		<category><![CDATA[LEDs]]></category>
		<category><![CDATA[microcontrollers]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=865</guid>
		<description><![CDATA[Another back burner project. This one&#8217;s concept I saw a long time ago on Instructables.com but it happened to end up being the main project for one of my courses at SFU. I thought that was pretty awesome, do a project I wanted to try and also get marks for it too. During university I [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Another back burner project.</p>
<p>This one&#8217;s concept I saw a long time ago on <a href="http://www.instructables.com/id/Led-Cube-8x8x8/?ALLSTEPS">Instructables.com</a> but it happened to end up being the main project for one of my courses at SFU. I thought that was pretty awesome, do a project I wanted to try and also get marks for it too. During university I had very little time to work on personal projects so it was great to be able to allocate school work hours into something I wanted to do anyways.</p>
<p>The twist is that the course was Microcontroller and Embedded Systems, meaning we were not permitted to use the Arduino used in the step-by-step project tutorial online. We had to learn the architecture of another mcu and use that instead. However the university resources were pretty outdated and they wanted us to use a HCS12 Dragon (educational) board programmed via Freescale Codewarrior. Since I believe I&#8217;ll never use this architecture in the future, I wanted to learn something useful instead. I have already been working with Texas Instruments boards for a bit, their Launchpad development boards are stupidly cheap (so much I think they lose money on it). The MSP430 DSPs are equivalent to an arduino and I think are equally capable if not more (imo the biggest difference to me is the community and library support). However in recent years, TI started a new line of products called the Stellaris Launchpads. These are designed as introductory products to their high performance Stellaris products and Stellarisware libraries. I&#8217;ve used this before on a Intelligent Display Module Stellaris dev kit (RDK-IDM) for my Capstone.</p>
<p>The Stellaris Launchpad (EK-LM4F120) carries a mcu (LM4F120H5QR ) with absolutely amazing specs for a dev kit that <strong>only costs $13</strong>. When I bought it they were just introducing it and had a promotion and I got 2 of them for $5 each.</p>
<p>A quick overview of it&#8217;s specs:</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2014/11/LM4F120H5QR.jpg"><img class="aligncenter size-full wp-image-866" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/LM4F120H5QR.jpg" alt="LM4F120H5QR" width="730" height="682" /></a></p>
<p>So I&#8217;m using this mcu to control my LED Matrix Cube, it has just enough I/O pins to do it too. My goal is to utilize the DSP parts of it to run a spectrum analyzer on an audio feed and play an animated equalizer on the cube.</p>
<p>After meeting the minimum requirements for the course I have not touched this in a while. During the course I hit a lot of bugs in the firmware that I was not able to resolve and I suspect I will need to rebuild the firmware from scratch in order to continue the project.</p>
<p>The project goal is purely aesthetic and the cube will not really serve any purpose, which is why this is a back burner project. I do hope to eventually get back to this so I can learn more about mcu architecture and embedded programming. I did at least put in the effort to create a CAD model of a nice case and had that made from laser cut acrylic. As you can see in the photo, it has a nice gloss black base (missing some square brackets that are used to keep the lid closed and act as feet). Additionally I had cut a clear acrylic box that goes around the LEDs to protect it.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=865</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 4: Custom Ear Bud connector</title>
		<link>https://gonazar.x10.mx/?p=861</link>
		<comments>https://gonazar.x10.mx/?p=861#comments</comments>
		<pubDate>Fri, 07 Nov 2014 17:56:30 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P4]]></category>
		<category><![CDATA[3D modelling]]></category>
		<category><![CDATA[3D printing]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[electronics]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=861</guid>
		<description><![CDATA[This one has been on my back burner for a very long time. Story time: About 7 years ago my brother gave me a pair of very awesome Sennheiser ear buds, CX55&#8217;s, for my birthday. I had been looking at getting a decent pair for a while and marked out Sennheiser, but wasn&#8217;t really sure [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This one has been on my back burner for a very long time.</p>
<p>Story time: About 7 years ago my brother gave me a pair of very awesome Sennheiser ear buds, CX55&#8217;s, for my birthday. I had been looking at getting a decent pair for a while and marked out Sennheiser, but wasn&#8217;t really sure which model to get. I had my eye on a very expensive pair around ~$120 at the time. Pretty pricey for a pair of ear buds for a high-schooler. So my brother got me a pair, but one of the cheaper models. The actual value of the CX55&#8217;s was around $80 at the time. I was a little disappointed at first, but after using them for a bit, I came to love them. The quality was absolutely amazing. I was very sad when the connector wore out 2 years later and I had to start looking for another pair.</p>
<p>After doing a bit of research I was shocked to find the exact same ear buds for sale on Deal Extreme, the cheap Chinese supplied online shopping site. Everything about the Cx55&#8217;s were identical, except the price: $12.49 and down to $10.60 if I bought it in bulk&#8230; which is exactly what did. I figured if even if they were crap and lasted a couple months, if 5 pairs can last as long as the original for te same price then it was fine.</p>
<p>When they arrived I did a thorough check. The only difference I could find was that the shape of the plastic nub where the L and R wires split was a different shape. The quality of sound, I could hear no difference than the original.</p>
<p>I started using these regularly, but as expected I found that they didn&#8217;t last too long, 6 months at best with my regular wear and tear. The common defect among them was the audio jack.</p>
<p>After getting a 3rd gen iPod in 2011 I noted that the audio jack on it was pretty crap. No matter what ear buds I used the connection occasionally disconnected in one channel or both. At the time I thought it was a defective iPod, but after recently getting a similar behavior from a 3rd gen iPhone I believe it&#8217;s just a shitty design. I think the apple ear buds have just a slightly longer jack which makes the connection more secure.</p>
<p>After that I decided to try something different. I noted that the iPod docks are often incorporated into speakers which means the proprietary Apple connector feeds audio channels. I bought a cheap connector off of Deal Extrememe, cut the connector and opened it up to find exactly what i was hoping for. So I spliced one of the dead earbuds and tested it out. Perfect audio coming through.</p>
<p>The one and only problem: no volume control. By default the Apple devices will max out the audio signal through the dock connector since it&#8217;s expected that the dock device (a speaker) would have it&#8217;s own amplifier and volume control. This meant if I wanted to use this I needed a in-line volume controller. I researched a little into this and found I could easily just use a potentiometer per audio line since I have no need of amplification, I only need a negative gain. However, after playing around splicing a few of the other ear buds I know all to well that the wires inside them are extremely delicate and require very good strain relief. This meant I couldn&#8217;t just find an existing in-line volume controller and splice it between the cables. I&#8217;d never be able to get a decent strain relief that wouldn&#8217;t look super ugly.</p>
<p><strong>TL;DR: I bought great quality sounding ear buds with defective connectors and want to splice an Apple connector instead of an audio jack but I need a volume controller with good strain relief.</strong></p>
<p>After purchasing my 3D printer I can now design a plastic module that will hold a pair of potentiometers and provide decent strain relief.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=861</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project 1: LED Lamp Design</title>
		<link>https://gonazar.x10.mx/?p=857</link>
		<comments>https://gonazar.x10.mx/?p=857#comments</comments>
		<pubDate>Fri, 07 Nov 2014 17:21:52 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[P1]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[3D modelling]]></category>
		<category><![CDATA[3D printing]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[microcontrollers]]></category>

		<guid isPermaLink="false">http://gonazar.x10.mx/?p=857</guid>
		<description><![CDATA[In my previous post I talked about influences that lead to the idea of this lamp. Concerning Japanese lighting elements, I&#8217;d like to add that two key defining aspects I&#8217;ve learned from them are indirect lighting and ambient lighting. In most cases in common household a point source (bulb) lamp is used to light an area [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>In my previous post I talked about influences that lead to the idea of this lamp. Concerning Japanese lighting elements, I&#8217;d like to add that two key defining aspects I&#8217;ve learned from them are indirect lighting and ambient lighting. In most cases in common household a point source (bulb) lamp is used to light an area while using a shade to block direct light. Having a direct view of a bulb can sometimes be too bright for the eye. Typically these lamps are either directed upwards to reflect off the ceiling or downwards to light up the floor. With ambient lighting we focus on smaller areas to create a contrast with light at dark. Some examples of this are using focused point sources directly on walls to light up a certain section, a highlight lamp to bring out a feature in the space and using edge lighting near the ceiling or floor.</p>
<p><img class="aligncenter" src="http://www.cmstatic1.com/33926/33926.214619.jpg" alt="" width="400" height="380" /></p>
<p>In my room I have a lot of blank wall space which I like to use like a reflective surface for lighting as previously mentioned. Additionally, my bed has no headboard, but has a 4&#8243; ledge the length of the wall about a foot above it, perfect for mounting my lamp. However I don&#8217;t want to mount directly to it since it has a nice finished surface, so I&#8217;ll need a base to my lamp that will sit on it.</p>
<p><a href="http://gonazar.x10.mx/wp-content/uploads/2014/11/001.jpg"><img class="aligncenter size-large wp-image-858" src="http://gonazar.x10.mx/wp-content/uploads/2014/11/001-1024x744.jpg" alt="001" width="640" height="465" /></a></p>
<p>This is my target design. The idea was to create 3D printed hinges and connectors and whatever raw materials I could easily pick up at home depot. In this case I planned to pick up a 2&#215;4, some sort of pipe and metal bars. The design of the reflector (not a shade) was the more complex aspect of this. I wanted the reflector to be capable of multiple orientations for different lighting dynamics. In the top left you can see in one mode it reflects upwards, directing the light toward the wall and ceiling for ambient lighting. In the next the reflector is straight and covers a larger area downwards. Below that the reflector is curved to focus light right below it.</p>
<p>To achieve these modes I designed a custom hinge (mid bottom). In the stationary half it connects to the pipe holding it up through which wires are fed for a clean wireless appearance. The LED strip itself is adhered to an aluminum bar slotted into bottom of the rotational part of the hinge.  At the top of the rotational part, there is a slot that splits into two directions. This is for the base of the reflector so that it can be changed to reflect forwards or backwards. At the very top of the rotational part there will be a hole to add a small telescoping pipe. This will attach to the top of the reflector so that the curvature can be adjusted.</p>
<p>The electronics enclosure will be set in the middle of the base with wires being fed under or behind it in channels. Since the the ATmega is part of the arduino development board, it&#8217;s easier to run everything with pin connectors than create a custom pcb. This also allows for different orientations of circuits so that the LCD can be perpendicular to the board and secondary boards for buttons, clock electronics can be mounted to the walls. The arduino will be at the bottom with a power splitting circuit to split off a 5v feed to run the microcontroller from the 12V supply.</p>
<p>The diagonal split between the top and bottom of the electronics box is to maximize access to the electronics while minimizing the number of pieces. There is a lip on the front edge so that the pieces will hinge and rotate around that edge. This is to minimize the length of the wires attaching the button array and LCD to the bottom half of the electronics and allowing access without having to disconnect them.</p>
]]></content:encoded>
			<wfw:commentRss>https://gonazar.x10.mx/?feed=rss2&#038;p=857</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
