<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Fusion Digital - Medium]]></title>
        <description><![CDATA[The Fusion Digital Journal, est. 2015 - Medium]]></description>
        <link>https://medium.com/fusion-digital?source=rss----ce8ff9c33e1c---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Fusion Digital - Medium</title>
            <link>https://medium.com/fusion-digital?source=rss----ce8ff9c33e1c---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 06:45:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/fusion-digital" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Conductive Paint to Create a Different Kind of Augmented Reality]]></title>
            <link>https://medium.com/fusion-digital/using-conductive-paint-to-create-a-different-kind-of-augmented-reality-7a6709e0b8df?source=rss----ce8ff9c33e1c---4</link>
            <guid isPermaLink="false">https://medium.com/p/7a6709e0b8df</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[prototyping]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Keith Chester]]></dc:creator>
            <pubDate>Tue, 02 Feb 2016 21:42:44 GMT</pubDate>
            <atom:updated>2016-02-02T21:46:01.224Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently at <a href="http://www.thisisfusion.com/">Fusion</a> we were approached by a client wishing to create an art display that would catch people’s attention and interact with them. We set out to create an interactive wall, but wanted to avoid using touch screens. Marketing displays are too often just tablets surrounded by decorated cardboard, and we wanted to avoid falling victim to consumers’ growing tablet fatigue. Consumers are no longer wowed by just having a tablet or touchscreen kiosk put in front of them. Instead we would try to do something new — conductive materials — with short-throw projectors to have digital animations pop up in real life. If done right, it would seem like the wall is coming to life.</p><p>We decided to do a prototype to test the concept and show the client our approach. We purchased and experimented with a number of conductive materials — conductive fabric, <a href="https://en.wikipedia.org/wiki/Velostat">velostat</a> (it’s a really cool material that changes its voltage as you change its form/compress it), conductive paint, copper tape, conductive thread, and more. We decided to focus on conductive paint for this prototype, with a simple demonstration of physical touch triggering digital animations. We created the Anatomy of Type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aJpp4Mkvbu5uB5loWhqd4w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*fOJnMlCIzervPH3drgO0Ag.jpeg" /></figure><p>An artist here at Fusion, <a href="https://www.behance.net/vtutka">Vanessa Tutka</a>, handled the painting and preparation of our plywood canvas.</p><p>Vanessa first taped the board in its entirety to create a mask. she projected the artwork onto the board and slowly removed the tape with an exacto knife to expose the letters.</p><p>A generous amount of conductive paint was applied to each of the desired touch zones — 4 separate coats of it. The paint was sealed by using an acrylic based silver spray paint, making it look as a single continuous painting.</p><p>Our creative team used Adobe Flash to create the animations — we exported them to HTML5/Javascript so we could use them in our setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jd0kaGW9NEzc-M5K9_IJYw.jpeg" /><figcaption>The wall lit up (some slight adjustment needed)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O-OT_v5vnV7sIFIodpcPpw.jpeg" /><figcaption>The conductive touch board</figcaption></figure><p>To detect the touch on the conductive paint, Vanessa fed a very thin bit of conductive thread, painted flat on the front of the wall, to the back. These were attached to thicker copper tape (easier to work with) and then finally fed into the <a href="https://www.adafruit.com/products/1982">MPR121 conductive touch board</a>. The board would measure the variation in voltage (and timing in these changes) across the painting. When it changes, it would report back to an Arduino microcontroller which, in turn, would report over a serial port that a particular touch point was triggered.</p><p>To package the software together neatly, we created an <a href="http://electron.atom.io/">Electron</a> app. This allows us to get the ease and flexibility of an HTML web view, the power of node connecting to our hardware, and a portable package we can dump onto any computer once we were done writing the app.</p><p>The Electron app would launch, asking the user to select which COM port the wall was broadcasting on. As soon as it was selected, the Anatomy of Type would be launched and ready to go — sort of. In a more extensive build, we would probably include built-in tools to re-position and re-size the animations. Even slight movement of the board or the projector results in a large offset of where the animation should be. For now, I just adjusted some CSS via the built-in web console to get it looking good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Gtq1URCnyK4AEVXEiG6rvg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*lh5OffpvuVEsY19WAOJ9Ug.gif" /><figcaption>The wall in action. Up close, it really does look like the animation is magically painted onto the board</figcaption></figure><p>Everything came together for a smooth experience. When fullscreened, the projector wasn’t noticeable until after the animations started playing. A higher angled short-throw projector would make blocking the animations a rarity. The animations pop out on the board as if a cartoon came to life or as if they were magically painted before you. It provides the flexibility of a digital encounter with the tactile response of a physical experience. We look forward to doing more of these in the future!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a6709e0b8df" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fusion-digital/using-conductive-paint-to-create-a-different-kind-of-augmented-reality-7a6709e0b8df">Using Conductive Paint to Create a Different Kind of Augmented Reality</a> was originally published in <a href="https://medium.com/fusion-digital">Fusion Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tapped In]]></title>
            <link>https://medium.com/fusion-digital/tapped-in-aee992d31730?source=rss----ce8ff9c33e1c---4</link>
            <guid isPermaLink="false">https://medium.com/p/aee992d31730</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Keith Chester]]></dc:creator>
            <pubDate>Fri, 30 Oct 2015 16:07:38 GMT</pubDate>
            <atom:updated>2015-10-30T16:07:38.016Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3TYIndNBOBzChW3nVX2JyQ.jpeg" /></figure><p><strong><em>How</em></strong><em> you interact with someone can set the tone for the entire encounter</em></p><p><a href="http://thisisfusion.com/">Fusion</a> has a client with a brand new system for beer, where the unique pouring style and tap itself creates a better end-product. This is not an easy sentiment to convey — doubly so since consumers can’t legally pour beer at an event or bar. Tasked with trying get customers to understand this, we found a way around the “can’t let them pour” rule — virtually.</p><p>No, not virtual or even augmented reality — <a href="http://www.eventmarketer.com/article/oculus-rift-automotive-professionals-receive-lesson-bosch/">though we’ve done that too</a>. We decided to make a beer pouring game on a table that sat in front of a beer tap — identical to our client’s in every way except our internal modifications. Pulling that tap handle here didn’t pour beer — it controlled the tablet, which showed the virtual beer being poured.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Y4eLTA5jPN8VovBbm_Qng.jpeg" /><figcaption>Moments before its hex-wrench delivered fate.</figcaption></figure><p>So how did we do it? Like any good nerd, I took the thing apart. I took my caliper and started measuring, drawing everything I could into a free CAD program, <a href="http://www.autodesk.com/products/fusion-360/overview">Fusion360 by Autodesk</a>. The CAD program allowed me to understand the spaces within the tap I had to work with, and how the whole system worked together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*Y0nQSELgkpw2vvTGjvSlIA.jpeg" /><figcaption>Turns out, there’s a lot of parts inside a beer tap. Coincidentally, on my desk as well.</figcaption></figure><h2>From Real to Virtual</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/663/1*8hjI7r4YPUz9cikxfC0bgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*uvMvLarrMYNJR3VrIYGjhA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*e94vIdvth05rJH7EOcQEgg.png" /><figcaption>The virtual tap (1), the casing removed (2), and the key innards piece (faucet shaft) that would control beer flow (3). Most of my focus fell onto the this piece.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Y2xOUijaXyNHLHlIcCuVw.jpeg" /><figcaption>Our hackerspace’s Printrbot Plus — a 10&quot;x10&quot;x10&quot; printer we use for prototyping and a large amount of “that’s cool let’s print it” models that are totally important for work, like space marines and <a href="https://www.nasa.gov/mission_pages/station/research/news/3Dratchet_wrench/">NASA wrenches</a>.</figcaption></figure><p>I knew that I needed to detect the movement of the faucet shaft (3). A plan emerged — use our 3D printer to create a duplicate of the shaft (and maybe another piece or two), and mount electronics inside the valve to detect its movement.</p><p>Detecting a linear movement like that narrowed my sensor choices down to sensors called potentiometers. A potentiometer is a variable resistor — a potentiometer in turn changes its resistance when a lever or wheel is moved (some can even be <a href="http://www.digikey.com/product-detail/en/0/905-1071-ND">squeezed for different voltages</a>). I can measure this change in resistance by measure the voltage across the resistor, and thus know its position.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*X41nI1bTP80ZPUlJcsn2Pg.jpeg" /><figcaption>Thumbwheel potentiometers</figcaption></figure><p>In the first design I thought about doing a lever turning the wheel of a <a href="http://www.digikey.com/product-detail/en/0/3352H-503LF-ND">thumbwheel potentiometer</a>. They’re the little dials that used to be in stereos for volume control a decade or two ago. I drew up our purchased potentiometer and tried fitting it into the valve with a small crank that would turn the wheel. The design didn’t work out though — most thumbwheels didn’t have room inside the valve to operate, and the tiniest thumbwheels were below the resolution of what our 3D printer could print and work with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*YWbz600vF8kAoQhanDL8WA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*KnTNsduO3OiRLDQjxQdF2Q.png" /><figcaption>The thumbwheel would slot into the valve — a level connected to the thumbwheel would rotate the thumbhweel to known positions.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*B_8HnjFbYUVWZYNJuDUyXQ.jpeg" /><figcaption>A linear potentiometer with a threaded end — the whole thing is maybe 1.5&quot; long, so this is actually quite tiny.</figcaption></figure><p>With the thumbwheel out, we looked at a <a href="http://www.digikey.com/product-detail/en/0/3046L-3-502-ND">linear potentiometer</a>. It didn’t require the “headroom” of the thumbwheel. I drew up the potentiometer in the CAD program to plan out the next step of the design process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*sZMFe3fwDQ3qTFmySgbmGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*dnJFcT2NdV-hWqaMCzJ9CQ.png" /><figcaption>The potentiometer quickly drawn up, and a size comparison of it just outside the valve, fully pushed forward.</figcaption></figure><p>I wanted the potentiometer to be attached to the faucet shaft, but the original metal one didn’t have a way to easily connect the potentiometer to it, nor did it provide enough room. I went through about twenty or so iterations on the original faucet shaft model to modify it until I could reliably connect the potentiometer to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*e94vIdvth05rJH7EOcQEgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SkvvIECow6ENHjS7v0s15A.png" /><figcaption>On the left, the original CAD of the faucet shaft — on the right, a version 20+ something with planned connection to the potentiometer.</figcaption></figure><h2>…And Back to Real Again</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1kZe-vWBcufmOKlSW9pUA.jpeg" /><figcaption>Just a few of my iterated designs, starting with the original faucet shaft. The taller cylindrical ones had a tap of the same threading on the potentiometer used on them — the hope was to create a threaded hole I could screw the potentiometer into. The plastic was too soft for the tap to be effective, however. The lever hole also saw movement and re-sizing based on re-positioning of the internals.</figcaption></figure><p>It took at least twenty variations — likely many more — of designing, measuring, printing, and testing fit to see how it worked. Eventually I settled on a design which had extra room for a brass nut. I selected the infinitesimally small nut by finding the threading of the potentiometer’s shaft by reading its datasheet. I would push the nut into the 3D printed faucet shaft with our soldering iron on a low setting, melting the plastic around the soldering iron and securing it into the print. The potentiometer could then easily screw right in and stay connected.</p><p>Next I had to ensure that the potentiometer’s base (the blue boxy part) could float secure in the valve, only allowing its faucet shaft-connected arm to move. I called this part the “casing”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*JhPibDjEs2jcNKds9wjkaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*UKp7V994hxjpoH7-DaBYHg.png" /><figcaption>The pot casings — the lines/separations are the results of a few iterations in design. The click-together approach was abandoned due to the need for a resolution of printing that was far too high for our printer, and a solid design was chosen.</figcaption></figure><p>The casing’s job was to keep the potentiometer secure in both the X and Y planes as the innards of the tap would move, pushing on the potentiometer’s bar. I iterated over a few casing designs, hoping to create a click-together version, but ultimately the sizing was too small. Our printer’s resolution couldn’t reliably produce a the mechanisms at that size. A solid casing was chosen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A5dcDSc_GOUByVVcCgiwJA.jpeg" /><figcaption>Some of our iterations</figcaption></figure><p>After dozens of designs, prints, and attempts (about a week’s worth of work) we had a system that fit securely into the tap. Our demo software worked and we showed we could control a virtual beer pour on a web page with out tap.</p><p>The software was a simple node server utilizing <a href="https://github.com/voodootikigod/node-serialport">node-serialport</a> to listen to an Arduino constantly sending via its UART the current read value of the potentiometer. Later models would utilize just a straight Atmega168 to shrink both size and final costs. Those values are broadcasted to a web page where some Javascript smooths out the values a nd controls the beer pour. Unfortunately, we can’t show the software here due to branding.</p><p>Unfortunately, when you’re prototyping things that people aren’t quite sure can be done, sometimes the end result is all your prototyping is for naught. This is one of those cases — the project was killed before it began. It still stands as an excellent example of the power of 3D printing iterative prototyping.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aee992d31730" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fusion-digital/tapped-in-aee992d31730">Tapped In</a> was originally published in <a href="https://medium.com/fusion-digital">Fusion Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Internet of Things — a Look at Embedded WiFi Development Boards]]></title>
            <link>https://medium.com/fusion-digital/the-internet-of-things-a-look-at-embedded-wifi-development-boards-7abee1311711?source=rss----ce8ff9c33e1c---4</link>
            <guid isPermaLink="false">https://medium.com/p/7abee1311711</guid>
            <category><![CDATA[arduino]]></category>
            <category><![CDATA[wireless]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Keith Chester]]></dc:creator>
            <pubDate>Wed, 12 Aug 2015 07:40:53 GMT</pubDate>
            <atom:updated>2015-08-12T00:30:53.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0d3XVDI_7RURmBV21uS-ew.jpeg" /></figure><p>The Internet of Things (IoTs) has been a buzzword for years, but ultimately has been either <em>just that</em> or a series of overpriced normal things now with WiFi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*5i-dTMii33U-ipTnA74Gow.jpeg" /><figcaption>A $50 light bulb that requires a $60 base station, proving my point entirely.</figcaption></figure><p><a href="https://medium.com/@mccannatron/internet-of-things-iot-market-ecosystem-map-28a73d1393f">IoTs, home automation, and a plethora of connected-device ideas are an exploding industry</a>. Right now I suspect adoption is stifled by two core issues. The first is just poor interoperability between systems and modules due to closed-source systems and too many standards. The other is <strong>price</strong>. The first will solve itself as the dozens of IoTs and home automation companies fail. The second is being solved in no small part of a few startups and open source fanatics.</p><p>If you asked me, five years ago, to incorporate WiFi into a project, it would mean adding a full laptop to the project. Three years ago the Raspberry Pi came out, ushering in a new era of cheap DIY-oriented embedded Linux computers. Now we’re seeing a similar drop in price due to very low cost microcontroller units (MCUs) with WiFi capability. In fact — WiFi can be added to your project for a <em>bit under $3.</em> That’s right — your Jamba Juice / Starbucks / Chipotle order will likely add WiFi to three projects.</p><p>This new-found freedom in internet/network connectivity can lead to ambitious ideas and designs not thought possible before. Wireless light displays, useful sensors deployed everywhere, hundreds of interactive scanners — the list goes on.</p><p>Let me introduce you to three MCUs I’ve been in using in projects lately — I’ll be briefly talking about their history, their setup, and my thoughts on them.</p><h2>The Particle Photon — Easy Mode In Theory</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZFBYzNi6QaGpzxR86oq6w.jpeg" /></figure><p><a href="http://particle.io/">Particle</a>’s (formerly Spark) <a href="https://www.kickstarter.com/projects/sparkdevices/spark-core-wi-fi-for-everything-arduino-compatible">Core MCU launched on Kickstarter</a>. <a href="https://store.particle.io/?product=particle-photon">Photon</a> is the Core’s newer and more refined brother. Both are WiFi development platforms being sold for just $19. Coming soon is their <a href="https://store.particle.io/?product=particle-electron">Electron</a> MCU, providing 2g and 3g connectivity for $39 and $49 respectively. In this article it is by far the most expensive solution, but claims to provide an unsurpassed ease-of-use.</p><p>Particle is aiming to not just be a provider of a cool development kit, but a full ecosystem to enable projects to become industry-scale consumer products. They’ll provide scalable server-solutions in case you need to sell and manage a million Photon-powered WiFi products. DIYers, meanwhile, will never utilize the cloud systems enough to pass the free-tier threshold and never need to worry about costs. Setting up simple programs to check for sensor values from a Photon, or activate a function on it, or react when the Photon trigger’s something, is child’s play. With the built in over the air (OTA) updating, you can remotely expand project’s capabilities too.</p><p>My first project with it? Why, there’s no better application of technology at Fusion than using it to prank our dear leader here at Fusion Digital. I created a small breadboard circuit with the Photon, adding on the <a href="http://www.adafruit.com/products/1535">Adafruit Bluefruit EZ-Key</a>, a <a href="https://www.sparkfun.com/products/13626">battery shield</a>, and a <a href="https://www.sparkfun.com/products/8483">battery pack</a>. The EZ-Key emulates a bluetooth mouse and keyboard through a serial port. The Photon would take commands from the internet (aka my coworker’s and my computers) and produce mouse and keyboard output on the boss’s computer. Also, this article is how we’re going to tell him about it. Hi Brad!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TtXJy5k-6EDr_6Yj0NdxQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8MZtuChOLtorSHb1R9mHsw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjL5IrDL77g77z4hIlZXPQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxHv_qOQReatNjKvQxKhYw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcAdY69M60s7FA5Q8AuOaQ.jpeg" /><figcaption>I hid it right behind his desk in his prized beer brewing stand. The battery provided about 12 hours of juice. I could check the battery voltage and estimated charge percentage remotely so I knew when I had to grab it and charge it.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*lsX9Hyz3Fq7VQlFgivtXCQ.jpeg" /></figure><p>My thoughts on the platform so far? It’s a good start, but needs some refinement. Documentation was suffering heavily until a <em>very</em> recent (while I was writing this post, actually) overhaul. Even after the overhaul I find the documentation a bit lacking. I do come from the land of <a href="http://www.atmel.com/images/doc2545.pdf">impossibly clear overly informative datasheets</a> so perhaps I’m expecting a bit much. The Photon is primarily programmed (for now) in a web-browser based IDE — this sounds like a cool idea, but integrating with your favorite IDE would be more ideal for a developer. It’s further muddled by a lack of auto-complete, a troublesome interface for larger projects or juggling multiple files, lack of version control, and — the biggest sin of all — plagued by terribly unhelpful obscure compilation errors when something goes wrong.</p><p>What I thought would be a significant win for cloud IDE is the ability to search for and one-click add libraries to extend capabilities of your Photon, allowing very simple integration to common sensors/parts. Or, at least, in theory. At first I was overjoyed to see a number of Arduino libraries for my ICs and sensors were already on the cloud IDE. The downside is most of them wouldn’t compile, requiring me to either open a Github issue or fork and fix the library. I have a sneaking suspicion most of these were uploaded with no attention paid to whether or not they compiled or worked for the Photon.</p><p>The Photon’s cloud features are easy to work with. You can declare “cloud” variables and functions — these become values or triggers you can read/fire off when hitting Particle’s REST API. It becomes a cinch to check the value of a sensor in your web browser, or to hook a function moving a servo motor’s position into a web page app. The Photon doesn’t always have to be connected either — they provide numerous sleep options and WiFi control options so you can maximize your battery life.</p><p>For a WiFi development board, I’m miffed that the biggest issue is the connectivity. I had few issues at my home, but my office it routinely dropped connection. I thought that, since my office is proliferated with dozens of devices and multiple WiFi networks, this would be the cause and thus an exception. Friends who also bought Photons, however, are reporting the same experience. The Photon is entirely unreliable in its connection too often. This is unfortunate, and I hope that the Particle team addresses it soon. The only fix I’ve found is to routinely reset the board in code — a duct-taped hack of a fix.</p><p>I’d also love a deploy manager, where I can group together Photon’s so I can deploy the same code to a fleet of Photons. This would be very useful for us at <a href="http://thisisfusion.com/">Fusion</a> for our smaller production scale deploys. I suspect the tool exists since Particle already powers multiple consumer products with their platform, but I don’t see it on their current IDE.</p><h2>Along came the ESP8266</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bqZwRtNCC6NX7c6M3csZcA.jpeg" /></figure><p>The ESP8266 was a largely ignored piece of hardware until some DIYers realized that it could be completely controlled and reconfigured through its serial port, allowing dead simple WiFi capability. This miscommunication — and the problem of figuring out how to actually work the chip — was primarily because all the documentation was only in Chinese. In a few short months the open source community reverse engineered and translated documentation making their own comprehensive English ones. Since then it’s quickly become a mainstay of DIY WiFi connected projects. I can understand why — I was quite ecstatic the first time I had one of the little chips serving up web pages and reacting to HTTP requests.</p><p>The Arduino holds a special place in my heart — it did, after all, jump start a large portion of the DIY electronic community (or, at the very least, made it <em>way</em> more accessible). Despite being trained in college on numerous MCU platforms I still find myself coming back to Arduino for the sheer simplicity it provides. With Arduino-clones dropping in price — with some boards costing a mere $3 — I’d be remiss if I didn’t talk about using the ESP8266 interfaced with an Arduino.</p><p>The Arduino interfaces with the ESP8266 via its serial ports, but requires a 3.3V logic levels. If you don’t have a 3.3V Arduino (like the <a href="https://www.adafruit.com/products/2010">Trinket Pro</a>) then you need to worry about logic-level shifting. I found mixed success with <a href="https://github.com/sleemanj/ESP8266_Simple">ESP8266_Simple</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bOPoM4ILEEuzuZuHoAxgiA.jpeg" /><figcaption>You’ll want to buy or make a breadboard adapter for working with the ESP8266.</figcaption></figure><p>It turns out, however, that the Arduino isn’t even necessary. A team <a href="https://github.com/esp8266/Arduino">has brought the ESP8266 to the Arduino platform</a>. You’ll be able to program the chip in the familiar Arduino IDE and still maintain internal WiFi capabilities. There’s even examples of building an HTTP server right on the board. Integrating many popular sensors and integrated circuits becomes a breeze as you gain the full support of Arduino’s vast collection of libraries.</p><h2>NodeMCU</h2><p>An open source project called NodeMCU created a flashable firmware for the ESP8266. The firmware allows the chip to be controlled from a NodeJS-styled Lua language (confusing, I know). The language allows for simple HTTP and socket connections, WiFi station and host control, and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Od3cAD9La9H4FeDeVVhicg.jpeg" /></figure><p>While controlling the ESP8266 is great, the raw chip itself lacks an analog to digical converter (ADC), has only 1 PWM (pulse width modulation — useful for a lot of applications), and only a few I/O pins. The NodeMCU team created an open source development board to mitigate this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Im0k8_FFyGJFxZDPJOI1hg.jpeg" /><figcaption>The common hookup for communicating with the ESP8266 via a 3.3v FTDI cable/board. Take note that the CH_PD needs to be pulled to ground on chip bootup to flash firmware.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PMJLJ-VZ0cMJ8ZoreZSkHQ.jpeg" /><figcaption>The bigger brother — the NodeMCU Dev Kit</figcaption></figure><p>The board runs for about $7 from most retailers I found online, is completely open source, and adds a much needed boost in functionality to the ESP8266, all at the price of size. The added USB to serial converter also means wiring up and programming this board is dead simple, as you don’t need to wire up any special circuits like you would on the straight ESP8266 board.</p><p>Unlike the Photon, the NodeMCU firmware and devkit certainly does not hold your hand. There are numerous pitfalls and sharp edges in usability. When first starting out I locked my chips into a boot-loop, requiring me to flash the firmware from scratch on them. Drivers for the serial port connection to the board was another problem I had. Since the devkit is open source, there are plenty of sellers who tweak the design to cut costs. Mine happened to use an older and cheaper USB to serial chip, requiring me to read extremely tiny print and find an older set of drivers off a Chinese website (thanks, Google Translate!).</p><p>The capabilities, however — acting as a WiFi host/access point rather than a client (imagine a project you can connect your cell phone to via WiFi and modify settings for via a web browser, for instance), finer-grained off-line capabilities, socket connections, built in <a href="http://mqtt.org/">MQTT</a> support — means the NodeMCU is going to make it into projects I need more robust control over. I can picture deploying dozens of small wireless RFID readers around an event, or a swarm of dynamically reactive displays.</p><h2>Going Forward</h2><p>The Photon is an interesting platform — one that I suspect that will improve with time. While it’s a joy to work with when <a href="https://www.youtube.com/watch?v=M67E9mpwBpM">everything’s coming up Milhouse</a>, I’m worried about connectivity issues and a lack of key IDE features. Until I’m confident in the Photon’s reliability, I will probably be sticking with going the extra mile in setting up NodeMCU/ESP8266 boards simply for the deeper control I have over them.</p><p><em>While writing this post I found overwhelming amounts of information. If you’re interested, </em><a href="https://twitter.com/thekeithchester"><em>reach out to me on Twitter</em></a><em> if you want to hear about some more cool stuff I’ve found but couldn’t fit in here!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7abee1311711" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fusion-digital/the-internet-of-things-a-look-at-embedded-wifi-development-boards-7abee1311711">The Internet of Things — a Look at Embedded WiFi Development Boards</a> was originally published in <a href="https://medium.com/fusion-digital">Fusion Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Complex Data in Static Site Generators]]></title>
            <link>https://medium.com/fusion-digital/complex-data-structures-in-static-site-generators-274e4595f518?source=rss----ce8ff9c33e1c---4</link>
            <guid isPermaLink="false">https://medium.com/p/274e4595f518</guid>
            <category><![CDATA[gulp]]></category>
            <category><![CDATA[cms]]></category>
            <category><![CDATA[static-site-generator]]></category>
            <dc:creator><![CDATA[paul e. graham]]></dc:creator>
            <pubDate>Mon, 03 Aug 2015 22:15:59 GMT</pubDate>
            <atom:updated>2015-08-03T22:15:59.638Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<p>When presented with a website problem involving complex data, most of the recent time developers have reached for CMS solutions. It seems far easier, even if our editing needs are infrequent, to build data structures and forms in an admin to solve complex data entry. With the robustness of newer static site generators, complex data needs should probably no longer be in the equation when deciding to choose a CMS.</p><p>The basic fact is that far fewer sites need to be using a CMS. When you’re building a page that doesn’t have actual complex publishing needs, installing a huge piece of software that’s constantly running is a security and speed hit you don’t really need or want. That not only goes for programs like Drupal and WordPress but also stuff like Ghost.</p><p>I will also give you some tooling examples to help you along the decision process with what you might want to use to build this functionality. This is not a tool sermon, however, and I will try to mention other options and pathways you can take.</p><h4>Dealing with Data</h4><p>The first thing you need to decide is if your data is simple enough to be edited by hand using something like <a href="http://yaml.org/">YAML</a> or <a href="https://github.com/toml-lang/toml">TOML</a>. If it is, then use that. An example of data simple enough to be managed by YAML might be a résumé or CV. If you instead have many things that need a single model, you’ll want to build an admin and instead put that data in JSON format.</p><p>The easiest way to do this is probably to build a simple Express app to drive a form. You can then write these forms to JSON using <a href="https://github.com/typicode/lowdb">lowdb</a>. lowdb is a simple interface for writing and manipulating JSON files using <a href="https://lodash.com/">lodash</a>. If you’re writing to flat files that will be stored in your repo, you have no need for anything like authentication or data security as someone could simply overwrite the files manually if they had access to your repo. Simply make a form and write your data using one of the hundreds of UI frameworks out there.</p><p>The following is an example Express router that I’m currently using on the company site for Fusion Marketing to write employees to JSON. It is presented without context, but it’s fairly obvious what it’s doing just by reading the code. There are only three routes: /employee/all which displays all employees, /employee/new which creates a new employee with a random unique ID, /employee/ID which controls display, editing, and deletion of existing employees. There are only two templates: edit and showAll. The templates are not really worth showing as edit is simply a form with the fields.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32ccc89794a1fb0ad14ea3b9917eb50c/href">https://medium.com/media/32ccc89794a1fb0ad14ea3b9917eb50c/href</a></iframe><p>You’ll notice there’s no multipart handling for photos. In this case, since the content is managed by an advanced user, I’m using human power for this by only asking for the filename and for the images to be stored in a specific directory. You can manage the data by using HTML5 input types and patterns, but one could also use a form sanitization plugin for a more robust user interface.</p><p>Now all you have to do to create or edit data is to run your little admin app. Save your data sets in your repo. Moving beyond this in terms of functionality is pretty obvious; get it online and instead of lowdb, you’ll be using something like MongoDB or RethinkDB. It requires quite a bit of extra work — setting up authentication, preventing simultaneous edits, and writing a routine to dump the database to JSON — so don’t bother if you don’t need this.</p><h4>Setting Up Your Generator</h4><p>Now that you have a way to edit this data, you can pick a site generator. I personally use <a href="http://gohugo.io/">Hugo</a> because it’s extremely fast, full-featured, has native support for data structures, only transforms content, and is easy to install on a server. I don’t need my site generator to process other things like JavaScript or Sass because I want to control that myself. In fact, with <a href="http://gulpjs.com/">Gulp</a> or <a href="http://webpack.github.io/">Webpack</a>, you don’t really even need to use a different site generator and could send your JSON file to your template using <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys">Object.keys()</a> instead. An easy-to-use site generator is still probably a better solution for most.</p><p>Next, look up the documentation for your site generator (check out Hugo’s instructions <a href="http://gohugo.io/extras/datafiles/">here</a>, Jekyll’s are <a href="http://jekyllrb.com/docs/datafiles/">over here</a>, yours probably has the same functionality or a plugin) for instructions on how to display JSON in the template system. Now you can consume all the data you created earlier! It’s easy! Now you no longer need a CMS simply to display modelled data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=274e4595f518" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fusion-digital/complex-data-structures-in-static-site-generators-274e4595f518">Handling Complex Data in Static Site Generators</a> was originally published in <a href="https://medium.com/fusion-digital">Fusion Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Office-Wide RFID Powered Nerf War]]></title>
            <link>https://medium.com/fusion-digital/office-wide-rfid-powered-nerf-war-274813506796?source=rss----ce8ff9c33e1c---4</link>
            <guid isPermaLink="false">https://medium.com/p/274813506796</guid>
            <dc:creator><![CDATA[Keith Chester]]></dc:creator>
            <pubDate>Fri, 31 Jul 2015 19:17:27 GMT</pubDate>
            <atom:updated>2015-08-12T00:12:55.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ayslo2dSmXogdIuMSrX6OA.jpeg" /></figure><p><em>…because </em><strong><em>“Why not?”</em></strong><em> is the best possible reason</em></p><p>When you get an opportunity to build something awesome, you should. One such opportunity arose recently when a few members of our creative team decided to host an office wide after-work nerf battle and party.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNfMkXgHQmCF5F6FBOJWpg.jpeg" /><figcaption>Our office was *really* excited about this and may have gone a *bit* overboard…</figcaption></figure><p>Around the same time a client was asking us for examples of our usage of RFID and NFC technology at events. We’ve used the tech before at a few events, but nothing home brewed or terribly unique. The digital team here prides itself on doing what’s weird and awesome (take a gander at what we did on a short timeline for our <a href="https://medium.com/@thekeithchester/so-we-had-an-8-bit-party-974044cb1a16">8-bit themed party</a>) so we jumped at the chance to build an RFID-powered king of the hill game for our nerf war.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lAheAqcJBlCVhCyXnDSkJA.jpeg" /><figcaption>My surface acting as a then inactive capture point.</figcaption></figure><p>The idea was simple enough. In a ten minute game, four capture points would exist throughout the building. Only one point would be “active” at a time. Each capture point had an <a href="https://www.sparkfun.com/products/13198">RFID reader</a> on it. A team could capture an active point and, for every 5 seconds of point control, earn their team a point. Every minute the point would move to another random control point in the office.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JOMp3RVMLvAdc7A-b9dczw.jpeg" /><figcaption>Death from above — each capture point was chosen because it was impossible to defend, and three of them had the high ground shooting down at them.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2dvMMGfd2eUTjHJ11lHUQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60emRO7nY8Q65uXi_ytErQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFBUL7fZD9W-YHf-IDOWKg.jpeg" /><figcaption>First 30 seconds of a game usually led to a foamy death brawl.</figcaption></figure><p>We have about a half dozen and change TVs located around the office with Chromecasts plugged into them. Using <a href="http://www.googletvforum.org/threads/is-this-possible-one-computer-multiple-tvs-chromecasts.8432/">an oddball trick in Chrome</a> we would display a map of the building with “capture points” denoted (and who controls them), the time left in the game, and current scores of the game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfaq5ro8qgYsli9N07eIig.jpeg" /><figcaption>The map would show the score, where active control points were, what team controlled them, and how much time was left. We Chromecasted the map to TVs throughout the building.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LhkegebiUQiPCtHoxHG2Mw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsKZ2qLqSLj_BCLVvuSprg.jpeg" /></figure><p>The whole application was written in node, built for node-webkit. To access the RFID readers, I wrote a module called <a href="https://github.com/hlfshell/serial-rfid-reader">serial-rfid-reader</a> which would make it dead-simple to react to the RFID tokens. The capture points, admin control app, and display maps were all linked together by <a href="https://www.firebase.com/">Firebase</a> — it allowed us to make a reactive real-time app with no effort at all. We used <a href="https://angularjs.org/">AngularJS</a> to tie the page’s logic together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d2q3JviWJvv5RVWXbmwJyA.jpeg" /><figcaption>Yes, the admin app was hideously ugly, but it did exactly what it needed to do — assign RFID tokens to specific teams, reset the score, start and stop the game, and adjust time limits for game logic. It would take 5 seconds to setup the next game, and a whopping 90 seconds to assign everyone’s RFID token to their appropriate team.</figcaption></figure><p>When building the application, we had a lot of issues with the serial port module getting wrapped in node-webkit. This is not an uncommon issue, so I documented what I did to finally get it working in a helpful <a href="https://gist.github.com/hlfshell/3526882d232f7eee214e">gist</a>.</p><p>All in all, three days of effort resulted in a pretty fun end result. People loved the game and the office was filled with flying darts and yelling. We’re already plotting version 2 features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KfN975Uh0dy0GoRP2D4LsQ.jpeg" /><figcaption>Blue team plotting their next move (and catching a breather — this game was exhausting!)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=274813506796" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fusion-digital/office-wide-rfid-powered-nerf-war-274813506796">Office-Wide RFID Powered Nerf War</a> was originally published in <a href="https://medium.com/fusion-digital">Fusion Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[So we had an 8 bit party]]></title>
            <link>https://medium.com/fusion-digital/so-we-had-an-8-bit-party-974044cb1a16?source=rss----ce8ff9c33e1c---4</link>
            <guid isPermaLink="false">https://medium.com/p/974044cb1a16</guid>
            <dc:creator><![CDATA[Keith Chester]]></dc:creator>
            <pubDate>Fri, 31 Jul 2015 19:16:47 GMT</pubDate>
            <atom:updated>2015-07-31T19:12:55.130Z</atom:updated>
            <content:encoded><![CDATA[<p>I work for a marketing firm, which, for those of you who haven’t had such a pleasure, means that weird stuff happens all the time. One of those things is a sudden all-hands on deck throwing of an 8-bit themed happy hour for all the other local marketing agencies. With a free day to code what we wanted, I and another developer (<a href="https://twitter.com/tripolet333">Ben Loos</a>) started cracking.</p><p>Some time ago I had built in under 48 hours a green screen gif booth in Chrome. It would take a series of shots of your group in front of a green screen, drop in a cool background and overlay, and give you a gif to share on Facebook or Twitter. People loved it and we used it at a few events. We were debating bringing that out again for the party but decided to up our game by putting people IN a game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*luBZSRTood5mv9EmPk4CVA.jpeg" /></figure><p>That’s right — we were going to build a kiosk that would put you into Mario Bros (we called it <a href="http://www.superfusionbros.com/">Super Fusion Bros</a>), and then let the user go home and play it whenever they wanted.</p><p>We found an open sourced randomly generated infinite Mario Bros clone written in javascript. We modified the game sprites, putting in beer instead of mushrooms and Fusion Marketing branded fire flowers.</p><h4>The Tech</h4><p>To prevent having to reinstall node, imagemagick, and every single dependency onto every computer we settled to use <a href="http://www.vagrantup.com/">Vagrant</a>. Vagrant isn’t typically used to power production apps but since this is used locally on a kiosk we figured there wouldn’t be any issue. We defined a VagrantFile to grab the Hashicorp provided default Ubuntu 64-bit Precise Pangolin image, install nodejs, imagemagick, and any other pre-requisites the kiosk would need. While this means that we did have to install Vagrant onto the Windows 8 kiosk (Win 8 all-in-ones make <em>great </em>kiosks, btw), it would handle installing and running all of our other code. Likewise, we knew with certainty how the code would react on our dev and final kiosk machines. I think we’ll be using Vagrant on kiosks moving forward to provide a consisten platform to build on.</p><p>We built a local node server that would serve up a small AngularJS app that handled the webcam, individual screen shots, and organization/user interface. Each shot was passed to the local node server where it performed a number of imagemagick conversions — pulling out the green screen, resizing the image, cropping out the user, shrinking them to mini mario, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shJFYs7Q-OFUvqQpfoR26Q.jpeg" /></figure><p>Once the user took each pose (Mario needed something close to 16–18 unique poses, but we cheated and had the users only record 5) the local node server would bundle all the images together into a spritesheets for large and small Mario, and tint the large Mario sheet red for fire-powered Mario. Then it would upload to a remote node server hosted on Heroku.</p><p>The remote node server performed two functions. The first was actually hosting and serving up superfusionbros.com. The next was accepting those sprite sheet uploads and pushing them right to S3.</p><p>No database was needed — as soon as you enter a code on the superfusionbros.com site, we check in javascript if a spritesheet exists with that code on S3. If so, we bring you to the game and S3 sends out the hosted user-created assets. Otherwise we warn the user.</p><p>There’s plenty I would change or improve about the process, but not bad for a single day’s work.</p><p>Working at a marketing firm creates some truly unique experiences for developers.</p><p><a href="http://www.superfusionbros.com/">Try it out</a> — use code 85wsm to play as Rosie, our company’s current <a href="https://www.launchcode.org/">LaunchCoder</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=974044cb1a16" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fusion-digital/so-we-had-an-8-bit-party-974044cb1a16">So we had an 8 bit party</a> was originally published in <a href="https://medium.com/fusion-digital">Fusion Digital</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>