Tuesday, June 14, 2016

My apologies...

I need to apologize for not yet publishing Part II of "DIY Hack: A Better Marquee." It's not that I haven't wanted to finish it and get it out there. It's not even that I don't have the content for it. The problem is that I've been struggling mightily with the tools.

Blogger's online tools are adequate, in my opinion, for posts that are either all or mostly text. Or for posts with a lot of pictures where the location of the pictures within the text isn't critical. But Part II is a "How-To" post where the pictures and text go hand-in-hand, and the tools just aren't cutting it; there's not enough control over text and picture placement. Blogger kinda pretends to have a WYSIWYG interface, but it really doesn't.

I've resigned myself to buying an application to do the job right. Initially, I hated the idea of paying for it, since the free, online tools should be better, but at this point, I've wasted so much time trying to bend them to my will that I don't even care anymore. I'll pay, I'll pay, just do what I want!!!

I've tried and discarded one app already. I've started learning another, and I hope it will finally let me pull Part II together and publish it soon(ish). In the meantime, I've got a couple of other small items I could throw together in a post. I just don't want to delay Part II much longer, especially since there's going to be a Part III to follow, and I don't want folks to forget how it all started...

Monday, June 13, 2016

Heartbreak in Orlando





One again we mourn the victims of another brutal attack, this time on our own soil. Once again the innocent suffer. Once again, I really, really want to climb up on a soapbox and scream about the senselessness of it all. But once again I remind myself that the people who need to hear it won't listen, and the people who'll listen don't need to hear it.

My thoughts and prayers are with the people of Orlando, Florida, USA.


If you read this blog with any regularity, then you know that I'm just a geeky engineer. But you should also know that I love this particular bit of poetry, which is as appropriate now as it was when I put it up after the Brussels attacks:

The Law of the Jungle
(From The Jungle Book)

by Rudyard Kipling

Now this is the Law of the Jungle --
as old and as true as the sky;
And the Wolf that shall keep it may prosper,
but the Wolf that shall break it must die.

As the creeper that girdles the tree-trunk
the Law runneth forward and back --
For the strength of the Pack is the Wolf,
and the strength of the Wolf is the Pack.

Stay strong. Stay united. Watch each others' backs. Remember, you don't have to agree with each other on every issue - or even like each other, for that matter - to live in peace together. People from one corner of the globe to the other have forgotten this simple truth. Americans, in particular, ought to remember this tidbit from the end of the Pledge of Allegiance:

With Liberty and Justice for All

Tuesday, April 19, 2016

DIY Hack: A Better Marquee (Part I)


Lighted marquee decorations are very popular at the moment. A stroll through the aisles of just about any craft store (locally, we have Hobby Lobby, Michael's, and A. C. Moore) will prove that out. You can get letters, symbols, words, snowmen, stars, and who knows what else. You can get them in chipboard, galvanized tin, wood, plastic, and more.

I'm not sure why they're so popular, but I like them, especially the galvanized tin. It has a well-used industrial feel to it, which isn't quite a cool as Steampunk, but cool just the same. There are two problems, though. The first is that they're ridiculously expensive, considering what they are. That 'C' at the top of this post? It's only about 10" high and costs about $25. Fortunately, Hobby Lobby is always running sales of that kind of stuff, and I got it for half that.

The second problem is that these decorations are very monochromatic. The lighted ones almost always have warm white LED illumination, which is great because they look more like incandescent bulbs that way; that suits the Industrial aesthetic well. But even if I could forgive the lack of color, there's no motion either. Give me a flicker. Give me a wave. Just don't put me to sleep!

My wife, Tammy, gave me a couple of letters last summer for my birthday, an 'M' and a 'D' (my initials). I decided to do something cool with them, but that project isn't quite ready for prime time just yet. That will be the subject of another post or two. Or three.

And my daughter, Anna, found herself a marquee snowman this past Christmas. It's very similar to this guy right here. It's cute, but boring. That's when I decided to hack a marquee piece, and spice it up a bit. I wouldn't dare take apart my daughter's snowman. That just wouldn't be nice.

As luck would have it, my friend Cole turned 50 in early March, and she had a party to celebrate. I hadn't seen her since we graduated from college waaaay back in 1988 (shame on me; she doesn't live that far away), and decided that I was going to her party. Keeping in touch on Facebook just isn't the same as seeing someone in real life!

And speaking of real life: Cole is a Social Worker by day, but by night, she's a wildly creative artistic type. She beads and makes jewelry and all kinds of cool stuff (see her Etsy shop here). Her tastes are very eclectic, always have been, and that makes getting her a gift a very daunting task. What's an engineer to do? Well, make her something, of course!

I would never presume decorate someone else's walls, but Cole provided the perfect inspiration for my Marquee Hack. My daughter's snowman is safe for now; I went out and bought the "Galvanized Tin Lighted Letter C" you saw at the top of this post, went down into the Man Cave, and started getting creative.


The Concept
My friend Cole is more than just colorful - she's a whirling, twirling, endless kaleidoscope of color. This project cried out for animated, colored lights. Simply tinting the globes of the existing lamps just wouldn't do - too static. No, this project required some simple high-tech to bring it to life. I didn't have time to re-invent the world, though, so I went to my bread-and-butter solution to this sort of problem: neoPixels and an Arduino. My plan was to strip out the lamps that came with the marquee and replace them with neoPixels, and I'd use glass marbles to give the appearance of bulbs. An Arduino would run the show. It would need a pushbutton to select among a variety of light patterns, and a potentiometer to control the brightness. Because neoPixels can be power-hungry (up to 60mA per pixel if each of the red, green, & blue elements is on at full brightness), I decided to also remove the battery holder and use a 5V wall-wart power supply instead. Easy enough.


I can't even count the number of projects I've done using neoPixels and Arduinos. Most often, I've used the 5V, 16MHz Pro Mini for the brains of the operation. I've also used the Uno and the Mega, but the Pro Mini is tiny, powerful, and so inexpensive as to be almost disposable. The name-brand version is about $10, but I've found good-quality clones domestically for $5 and overseas (from China, usually) for $2.50 or less. As usual, the more you buy, the lower the price. I usually keep a bunch handy for just these types of spontaneous occasions. The Pro Mini is also available in a 3.3V version, but I don't use it for neoPixel projects because neoPixels require 5V.

Be very careful when buying from places like ebay, especially from overseas vendors. Many times, the description of the item doesn't match the title, and you may end up with a 3.3V board instead of a 5V. There's a lot of cutting and pasting going on, and not enough reading and understanding. When in doubt, ask!

I've also found neoPixels available in many different forms both domestically and overseas. Adafruit has perhaps the best selection domestically. The prices are a bit steep, but the service is excellent and fast. When I need a neoPixel ring, Adafruit is the best (and perhaps only) game in town. For discrete pixels or for strips, though, there are many choices. Just search ebay for "WS2812" and you'll find thousands.

When I need a small, flat footprint, but don't want to make or assemble my own circuit boards, I especially like the pixels shown in these photos. It's a single neoPixel on a 10mm PCB (the pads are on the back). I buy these still panelized, making them even less expensive - about $17 per 100, the last time I ordered. That's WAY less expensive than Adafruit - but it might take 3 weeks for them to arrive from China!

The lamps that come with the marquee letter are LED versions of 3V flashlight bulbs. They have a threaded base and glass envelopes (approximately 16mm in diameter) around the warm white LEDs, and are reasonably high quality replacements for incandescent bulbs. I happened to have clear, glass marbles on hand (from an entirely different project) that were just about the perfect size to replace the bulbs.

Next Time...

Rather than try to cram details of the entire project into a single, huge post, I've decided to split it into multiple parts. The next installment will cover the Mechanical & Electrical parts of the project: removing the original guts of the marquee, and installing the replacement electrical components. Lastly, possibly in a separate post (I'll decide once I've written it), I'll cover the software that brings the project to life.


Stay Tuned!

Wednesday, April 13, 2016

Embedded Systems Conference, Boston 2016

From left to right, we have Tammy, Max, Mark, and Jack
Yes, we're all standing. Max is really that much taller than the rest of us!


Unfortunately, I'm not able to attend the Embedded Systems Conference in Boston this year, which is on April 13 & 14. Just too much going on at work right now, and I can't get away. You'd almost think I was important or something!

Now, I'm a big fan of Clive "Max" Maxfield, who happens to be the Editorial Director at Embedded.com. He's a wizard among engineers, and we have a bunch of similar interests and have both done some wicked cool projects. He's also a gifted writer (I have a couple of his books and read his columns regularly). Anyway, hero worship aside, we've corresponded numerous times, but had never met face-to-face. So when I read that he was going to be attending this year's conference, I sent him an email inviting him to dinner. He had already made plans for his evenings up here, catching up with colleagues and friends, so he, instead, invited us (my wife Tammy and me) to join him at City Bar Boston Harbor at the Westin Boston Waterfront Hotel. As it turned out, there was a private function going on there, so we instead went to M. J. O'Connor's Boston Pub, also located in the Westin. It's a very comfortable Irish Pub with a friendly, laid back atmosphere and excellent food. No one had any trouble at all finding their way, and before long we had maybe two dozen folks catching up, swapping stories, and generally having a good time.

My wife, Tammy, isn't an engineer, but she does speak geek. She's a Pediatric Physical Therapist, but we've been together long enough that we speak each other's language to a fair degree. She had no trouble conversing with my fellow geeks, and Max especially made a point of including her in the conversation.

Also in attendance was Jack Ganssle, who was one of the very first Embedded Systems gurus I ever ran across. I was reading his column in Embedded Systems Programming way back when it was actually printed on paper! These days, I follow him on Embedded.com. I've had the opportunity to meet him in person a bunch of times over the years, both at Embedded Systems Conferences and at training classes he's held. He's a very nice guy and super knowledgeable.

Max was diligent in introducing folks around, but I'm afraid I don't remember everyone. That's my bad, and a real pity because it was a great bunch of people. Among those I do remember:

Peter Anderson is an Embedded HW/SW Engineer whose first experience with microprocessors was the Intel 8008 in 1974. Mine was with the 8085 way back in 1985.

Duane Benson is another luminary I'd hoped to meet, and I did, shortly before Tammy & I left for the evening. I first ran across his work when Max mentioned a project they were collaborating on. He's a veritable font of information on things like PCB layout and DFM.

David Gerber is a writer and editor who has also handled legal, technical, and business responsibilities for Gerber Scientific. Yes, that Gerber - his dad, H. Joseph Gerber, is the man behind the Gerber file format. If you've ever made a printed circuit board, you ought to know the name. David is presenting "The Incredible Story Behind the Gerber PCB File Format" at ESC, but was kind enough to tell us the story last night.

I also found out that David's time at RPI overlapped with mine for about a year; he graduated the year I started. Definitely a small world! He also spoke with Tammy for a while about her work with kids (she works in a school system providing physical therapy to students with a wide range of medical, cognitive, and physical issues). He asked some very insightful and probing questions, the kind you don't normally get in a casual conversation, like, "What have you learned from your patients?" and, "How do you handle working with patients that have progressive (or terminal) conditions?" Tammy was very impressed that he took such an interest in her work.

Well, there you have it. I think I can safely say that a great time was had by all - and before the Embedded Systems Conference even started! I once again lamented that I wouldn't be attending this year, but I promised Max that I'd do my best to attend ESC Minneapolis in September. During our walk back to the car, Tammy even told me that I ought to go! Well, geez, now that I have her blessing, there's really no excuse not to, is there?

Wednesday, March 30, 2016

DIY Toys: Charlie I




A little while back, I wrote a post about a toy my Uncle Steve made for me when I was little (DIY Toys: Uncle Steve's Gift). Well, I never actually told my Uncle how much that little gadget meant to me until a few years ago, when I wrote him a letter explaining it all, and also included my own, slightly updated version of the toy.
 
The picture at the top of this post is just a graphic representation of it, made in Microsoft Word, using surprisingly versatile drawing tools. If only it had been as easy to export the picture as it was to draw it, I might actually come to like Microsoft. But I digress.
 
You might ask why I didn't just post a picture of it. Well, if I had known that I'd be blogging about it years later, I would have done exactly that. But, alas, I wasn't looking that far into the future!
 
Anyway, my updated version of the gadget was largely identical to the original: switch-controlled lamps, with a few small differences:
  • there are now three switches and lamps instead of one.
  • the enclosure is plastic; the cover is removable.
  • the batteries are replaceable (2 ‘C’ cells).
  • the lamps are LEDs (red, yellow, and green).
  • the LEDs are still controlled by toggle switches, but I added red, yellow, and green safety covers to indicate which switch controlled which LED (and to increase the ‘cool’ factor, of course!).
As you might expect, there's really nothing to it, electrically - just batteries, switches, LEDs, and current-limiting resistors.
 

The LEDs are T-1 3/4, diffused, and nothing special - they came out of my spare parts bin. The resistors are 1/4W and appropriately sized for the LEDs I used. You may want a different value depending on the types you use, and possibly even different values for each color, since an LED's forward voltage if often color-dependent. I opted for simplicity, using the same value for all of the LEDs, while making sure the current through each LED was below 20mA.

The switches are all standard-size toggles that mount in a 1/2" hole. I got the toggle safety covers from Marlin P. Jones & Associates (www.mpja.com). Until recently, the covers were available in a rainbow of colors: red, yellow, green, blue, purple, clear, black, and chrome. As of this writing, it looks like they've cut it down to red, yellow, clear, and black. That makes me sad. I haven't found an alternate source, but I'll pass it on if I do!

When I showed the finished product to my wife, Tammy, she thought it was cool (she’s nice like that) and asked what it did. Well, it doesn’t do anything; that’s not the point. My son Nick, ever the button-pusher, understood immediately. As soon as I handed it to him, he just started flipping switches. I don’t know the rated number of operations for those toggles, but he probably reduced the useful lifetime of the gadget long before my Uncle ever got it!
 
I had no idea what my Uncle might actually do with it. It was a solid paperweight, for sure. Maybe he could leave it on the counter in his shop, and see if the customers played with it. Never trust anyone who doesn’t know how to play! Or maybe it would keep their kids amused while the adults did business. As it turned out, there was a much better use for it.
 
My Uncle Steve and Aunt Joyce have two kids, my cousins, Andy and Libby. Both are married; Libby and her husband Dean have two kids, Charlotte and Grace, but at the time I made it, there was only Charlotte. Well, as I understand it, Charlotte was over visiting one day, and my Uncle gave her the gadget to play with. She loved it! Charlotte "adopted" the toy I made, and she and her little friends have put a lot of miles on it since.


Libby sent me this picture of Charlotte playing with it. I've started calling the gadget Charlie I for three reasons:
  • Charlotte turned out to be the ultimate end-user, not my Uncle Steve.
  • I hardly ever call her Charlotte; she's Charlie to me.
  • There's a Charlie II in the works - actually almost complete - and I hope to be writing about it soon. If she likes it half as much as the original, I'll consider it a success!
Who knows? Maybe someday I'll get a letter from Charlotte telling me how much she loved her toy. And maybe she'll even make her own version of it for me in return. But if not, that's ok - just seeing her play is plenty good enough for me!


Tuesday, March 22, 2016

Peace for Brussels


One again we mourn the victims of yet another brutal attack. Once again the innocent suffer. And once again, I must restrain myself from going on a rant about senseless violence and the cowards that perpetrate it.

I offer my deepest condolences to the people of Brussels, Belgium, for your pain and suffering and loss.

I'm no poet; I'm just a geeky engineer. But I love this particular piece of poetry, which is supremely appropriate right now:

The Law of the Jungle
(From The Jungle Book)

by Rudyard Kipling

Now this is the Law of the Jungle --
as old and as true as the sky;
And the Wolf that shall keep it may prosper,
but the Wolf that shall break it must die.

As the creeper that girdles the tree-trunk
the Law runneth forward and back --
For the strength of the Pack is the Wolf,
and the strength of the Wolf is the Pack.

 There's much more to the poem, but these first two verses I've committed to memory. The emphasis on the last two lines is my own. Most folks think that "The Law of the Jungle" means "survival of the fittest" or "every man for himself." Maybe that's true in the jungle, but not here. Maybe it's true of solitary creatures, but humans aren't solitary- well, we're not meant to be, anyway. No, for (most) humans, "The Law of the Jungle" was phrased more succinctly by Alexandre Dumas in "The Three Musketeers":

All for One, and One for All

Wednesday, February 24, 2016

Two Indispensable & Inexpensive Tools

Tools can be expensive, but here's no getting around the fact that you've really got to have the right tool for the right job. The trick, sometimes, is knowing where to look, because sometimes you can find the right tools in unexpected places.

There are a couple of tools that I use all the time, and I didn't find them in an electronics shop. I found both of them in my wife's stash of scrapbooking tools & supplies (this stash being approximately the size of our dining room...and three-season porch...and a bit of the basement). You can find them in any half decent hobby or craft store, or in any of a thousand places online. Locally, our craft stores include Michael's, A.C. Moore, and Hobby Lobby and all of them carry these items.

Before I start talking about these tools, let me first tell you a little story...

Way back in the day (1988, if you must know), my first job after graduating from RPI with an Electrical Engineering degree was at the Alcohol and Drug Abuse Research Center at McLean Hospital, in Belmont, MA. I was the sole engineer in the department, and, truth be told, they didn't really know they wanted an engineer at the time - they just wanted to replace a departed technician. But Dr. Scott Lukas saw the potential of having an imaginative engineer on staff in an environment where you frequently had to invent the gadgets needed to do the work, so he took a chance on me. And being fresh out of school, I was working for peanuts - at least at first.

So I got to do it all - hardware, software, mechanical design & fabrication. It really was a dream job, and the perfect vehicle for me to try my hand at a variety of disciplines. Embedded systems as we know them now were in their infancy. We had banks of Apple IIgs computers in one room controlling experiments in another, connected by bundles of 30 conductor cables and a series of connectors, all of which I had to wire up by hand.

 During my years there, I advanced the level of technology considerably, but there was infrastructure in place (like the cables and connectors) that I just had to deal with. So my work also included a fair bit of troubleshooting and repair, especially at the beginning. So when it came time to design upgrades and replacements, I tried to roll in all the lessons I learned up to that point.

 One of the first things I learned was that heat-shrink tubing is worth its weight in gold. My predecessor didn't believe in strain-relieving cables or insulating connections, and so much of my early troubleshooting led me to find short circuits and broken connector pins - and inside of a 30-pin connector housing, not only was that annoying, it also did damage to other, more expensive equipment.

Heat Gun
One of my first purchases, once I got sick of fixing short circuits, was a heat gun, like this one but actually a bit simpler:
    It worked great, and - relatively speaking - didn't cost too much. I say "relatively speaking" because, at the time, it cost about $75. That's really not horrible, even today. I checked out Digikey as I was working on this post, and found heat guns in the range of about $50 - $900, with my needs well-addressed at the low end of that scale. Still, I hate to part with that much money for something that's, let's face it, just a glorified hair dryer. At this point, my wife reminds me that, having little hair remaining myself, I have no clue how much hair dryers can cost these days. Fair point.

            I love heat shrink tubing, for a variety of tasks. There's the obvious one, insulating connections and wire splices and such. I also use it to color code cables & connections, and lately I've even been using it when framing photos - I cover the twisted ends of the hanging wire with it, to make it more secure. The search was on for an affordable heat gun, but to no avail, at least not in the usual places.

            And then I found the solution right under my nose. Well, sitting at the dining room table anyway. As I've explained before, my wife is an avid scrapbooker, card maker, and a talented, creative, crafty person in general. She uses a lot of rubber stamps, and let me tell you, there's a lot more to that than I'd have ever expected!

            One cool thing you can do with rubber stamps is create an embossed effect. You do this with embossing powder, which comes in about a million different colors. You stamp a design on paper (or whatever) and, while the ink is still wet, sprinkle embossing powder over it. You then shake off the excess powder and heat what remains to melt the powder into a raised design. Pretty cool! And guess what? The heat gun works great on heat shrink tubing and is pretty inexpensive. My wife's cost a whopping $20, and I've seen them as low as $15. Perfect!

            I wish I could claim this as a unique flash of brilliance, but the last time I was at You-Do-It Electronics (Needham, MA - check 'em out here), they had an assortment of these very same inexpensive tools alongside the expensive ones in their heat-shrink department (I'm not kidding, they have a huge selection of heat shrink everything).

            This craft heat gun has done everything I've needed it to do, and it's so inexpensive as to be almost disposable. And that's good, because I had to get my wife a new one, since hers found its way into my toolbox!

            Heated knife kit
            One thing I'm especially bad at is cutting holes that aren't round. I'm not a machinist, I'm not a whiz with a router, so if you can't do it with a drill, I struggle a bit with it. For that very reason, I avoid  slide switches, rockers, or any panel-mount component that requires a rectangular cutout.

            One tool I've found that at least helps with this dilemma is the hot knife. I found this tool in my wife's hands one day, using it to cut foam core for a project. Basically, it's the perfect union of an X-Acto knife with a soldering iron.


            She has a hot knife kit that came with an assortment of tips for a different projects:
            • Letters
            • Symbols
            • Chisel / stylus
            • Pointed (like a soldering tip)
            This tool is great for foam core and styrofoam, but also works very well on thermoplastics, like the stuff of which many project boxes are made. I've never tried soldering with it, but it does come with a couple of tips that look right for the job.
            It takes a while for the hot knife to heat up enough to cut plastic, so don't be impatient. It's worth the wait! And also, you obviously need to hold this like you'd hold a soldering iron, not as you'd hold an X-Acto knife, at least if you value your fingertips. In that sense, it's a little awkward to use for cutting plastic, but you get used to it quickly enough.

            Get into the habit of cleaning the plastic off the blade as soon as you're done using it. I don't know if it hurts the blade at all, but it gums up the works and you'll have to clean it next time you use it anyway.

            There you have it, a couple of useful tools from unlikely places. If you have anything to add, either about these tools or others that you've found, please leave a comment!

              Friday, February 19, 2016

              DIY Toys: Uncle Steve's Gift


              A long time ago, my Uncle Steve made me a birthday present. When I say a long time, I mean maybe 40 years ago. I was little, maybe 5, maybe 8, I’m not sure. And I assume it was a birthday present because I remember playing with it outside in warm weather, and my birthday is in the middle of July.


              The present was handmade, and simple enough: a pair of ‘D’ batteries, soldered together; a toggle switch; and an incandescent lamp with a cylindrical amber lens. These three items were wired together so the switch turned the lamp on and off. The whole thing was enclosed in a small cardboard box wrapped in black electrical tape. It couldn't have been simpler.

              Today, I suppose you’d call such a thing a "Busy Box" or a “Do Nothing” box. That’s no insult; it's a class of gadgets whose primary purpose it to entertain and stimulate the imagination.


              That it did.

              That little box was anything I wanted it to be. It was a communicator from Star Trek, a walkie-talkie, a remote control for a rocket or a robot or whatever else I could imagine – and I could imagine a lot. It was a homing device, and a treasure detector, and a night light, too. Quite honestly, it was one of my favorite toys of all time. I was heartbroken when the batteries finally died, but I (clearly) never forgot it.

              I have no idea where that most wonderful of toys ended up - probably in a landfill somewhere. What you see in the pictures is a replica I made just for this blog. There are a couple of differences:
              • Though still wrapped in electrical tape, the enclosure is a plastic project box, not cardboard.
              • The batteries are in a battery holder, not soldered together.
              • The incandescent lamp has been replaced by a warm white LED (but I still managed to find an amber lamp holder, thanks to You-Do-It Electronics in Needham, MA!).
              I decided to make a slightly updated version of the same toy, as a gift for Uncle Steve, but that's a whole different post. Stay tuned! In the meantime,

              Beam me up, Scotty!!

              About Uncle Steve
              For as long as I can remember, my Uncle Steve has operated an Office Machine shop. When I was little, that meant typewriters and cash registers and a never-ending supply of gears and levers and other little mechanical bits and pieces. Then word processors began to move in, sometime in the 80s, I think, and not long thereafter, computers and printers.

              My Uncle has had to stay abreast of technology as it pertained to office machines, just so he could stay in business and support his family. He's the guy that turned me on to Nuts & Volts magazine, for example. He also let me borrow his Heathkit Electronics Training Course materials & hardware way back before I could ever afford such a thing on my own.

              As one of the only technically-inclined members of the family, he always encouraged me in my own geeky interests, and is one of the only adults I could talk to about such things that actually understood what I was talking about. For that, Uncle, I am eternally grateful!