Dual-boot Your Arduino

There was a time, not so long ago, when all the cool kids were dual-booting their computers: one side running Linux for hacking and another running Windows for gaming. We know, we were there. But why the heck would you ever want to dual-boot an Arduino? We’re still scratching our heads about the application, but we know a cool hack when we see one; [Vinod] soldered the tiny surface-mount EEPROM on top of the already small AVR chip! (Check the video below.)

aAside from tiny-soldering skills, [Vinod] wrote his own custom bootloader for the AVR-based Arduino. With just enough memory to back up the AVR’s flash, the bootloader can shuffle the existing program out to the EEPROM while flashing the new program in. For more details, read the source.

While you might think that writing a bootloader is deep juju (it can be), [Vinod]’s simple bootloader application is written in C, using a style that should be familiar to anyone who has done work with an Arduino. It could certainly be optimized for size, but probably not for readability (and tweakability).

Why would you ever want to dual boot an Arduino? Maybe to be able to run testing and stable code on the same device? You could do the same thing over WiFi with an ESP8266. But maybe you don’t have WiFi available? Whatever, we like the hack and ‘because you can’ is a good enough excuse for us. If you do have a use in mind, post up in the comments!

Continue reading “Dual-boot Your Arduino”

Sailing Ships, Slide Rules, And The Quality Of Engineering

We recently ran a post about engineers being worse, better, or the same than they “used to be” and it got me thinking. Of course “used to be” is in the eyes of the beholders. To me, that’s the 1950s and 1960s. To some of you, my generation is the “used to be” generation. To some of you, I’m past even that.

I’ve often said, there are two things that are simple: something really simple, and something really complex. For example, when a caveman grabbed a log floating down the river and hitched a ride a few miles downstream that was pretty simple. Today, you can go on a well-equipped boat, stab your finger at a map, click go, and the boat will do almost all the work. However, get onboard a sailing vessel from 1850 and you better know what you are doing. What’s more is, some sailors were better than others.

What’s Better or Best?

Were yesterday’s engineers better than today? That’s like asking who is the “best” driver. It depends a lot on what “best” means. Safer? Faster? Most efficient? I would suggest that yesterday’s engineers were better at doing yesterday’s jobs. I own several slide rules and I can use them, but I bet my mentor who finished college in the 1940s was faster. I don’t need to be faster. On the other hand, he might have some trouble doing a good Internet search.

But here’s the problem. Doing basic math is like the caveman on the log (and yes, that begs for a slide rule joke). Asking Wolfram Alpha to solve your set of simultaneous equations is like the modern computer-controlled ship with GPS. You can bet that the sailing master of a barque in 1850 knew a lot more about sailing and winds and ship construction than the average guy on a modern ship. He had to. That gave him extra reasoning tools when faced with a problem.

Slide Rules Do (Most) of the Math

By the same token, using a slide rule is very helpful but–paradoxically–you have to know a little math to be able to use it. In particular, you had to have a rough idea of the magnitude of the answer to get the right answer. If you couldn’t get that concept or do the simple estimate in your head, the slide rule was useless and you probably dropped out of engineering school. Today, you may or may not have that kind of math smarts, and it doesn’t matter.

I’ve known graybeards that keep up with the modern technology. I’ve also known plenty who are stuck in the past, talking about how horrible transistors, or ICs, or software is and how it has ruined everything. Of course, they haven’t.

Lesson Learned

As Gerrit pointed out, we tend to remember the brilliant engineers and projects and forget the bad ones (unless they are really bad). Even in “the golden age” there were good engineers and bad.

So how can you maximize your chances of being one of the good ones when this turns into some kid’s golden age? Two things, I think. Never stop learning the new technology. The hot-shot engineer with the slide rule wouldn’t function as well in today’s world unless he was willing to learn about the new things. But also, learn the fundamentals. You don’t have to know how an engine works to drive a car. But all the race car drivers do know. Having tools to do circuit analysis or solve thorny math equations is a great time saver. But you ought to know how to do it without those tools. The insights you’ll gain will give you more tools at your disposal when faced with a problem.

Engineering is a series of abstractions. Always try to drive down the abstraction layers. Know how to program? How does a CPU work at the logic gate level? Know how that works? Then how do the transistors form those gates? When you understand that, dig into why the transistors work at all. Sure, you probably aren’t going to build a transistor from raw materials. But you’ll gain new insights and those insights will help you solve future problems. Besides, if there’s ever a zombie apocalypse, it might be good to know how to use a slide rule or build a transistor.

Hacker’s Wishlist: What Must-Have Components Let You Build Anything?

We’re putting in a parts order at the end of the week, yet we don’t have a specific project in mind. Trying to wrap your noggin’ around a bill of materials to build anything is tough, but that’s the gist of stocking components for a hackathon.

So we put it to you: what components can’t you live without when you roll your sleeves up for some good old fashioned hardware hacking?

What Can You Build in Two Days?

multiplierThis parts order is for the badge hacking at this year’s SuperCon. What we saw last year was amazing considering the parts we had available. What you see above is the back of the conference badge with a lot of caps and diodes added to it. It’s a voltage multiplier that [Sprite_TM] built onto his badge to get the 9V input up to a 1000V output.

So diodes and caps, check. They’ll be on the order. But we want to know what you would add to a parts order where anything is possible? Let us know in the comments below.

Unlock Beast Mode

Part of the fun last year was starting from a badge that had no circuitry built onto it at all. [Brian Benchoff] joked in his coverage of the hacking that this year’s badge would just be a piece of copper clad FR4 — a great idea and challenge accepted. In addition to the normal badge, for those willing to test their mettle, we want you to go for Beast Mode. We’ll have copper clad (single and double-sided) and protoboard on hand.

We’re looking for Manhattan style, dead bug, and any other elegant, interesting, or hacky method of rapid prototyping. Bring along your own pre-spun or home-etched boards — if they’re not already populated you can do that in the badge hacking area. If you want to learn the awesome X-Acto knife method of carving up copper clad, Zach Fredin will be helping out in the badge hacking area. You’ll also find Voja Antonic, Paul Stoffregen, and others hanging out there too.

But What About the Badge?

2016-supercon-badge-circuitYes, there is a hardware badge and it’s a doozy this year. Voja Antonic designed it and published a great explanation last week. It’s based around a PIC18LF25K50 and features an LED Matrix and user inputs. This will be a lot of fun for the firmware hackers, but why not get in on the hardware hacking action while you’re at it?

The back of the badge has a 9-bin breakout header (2x 3V, 2x Gnd, 5x GPIO). This pin header is 0.1″ pitch so you can design in advance for any add-on circuits you might want to build. We’ll also have connectors on hand to use in your hacks.

Last year Paul Stoffregen’s Teensy audio workshop was hugely popular and one of the most interesting badge hacks added a Teensy, audio board, and LCD to the mix to create a spectrum analyzer with waterfall display. I’m sure we’ll see some hacks that reach that level this year. But it’s a welcoming and jovial environment; even if you never blinked an LED there will be throngs of people waiting to cheer your accomplishment in the name of getting everyone in the world excited about hardware.

Seriously Though, What Components Should We Order?

Tools are going to be no problem this year since we have the Supplyframe Design Lab at our disposal. But we really are putting in a parts order this week and need your advice. We’ll have the usual suspects: pin headers, shift registers, voltage regulators, level converters, 7400 series logic and 555 timers, extra battery holders, passives, etc.

Even if you’re not in on the hacking, let us know what you can’t live without. What’s your analog hacking wishlist? What type of sensor breakouts would you like to see people playing with? Sound off in the comments below.

Want To Make A PCB? The Pantum Knows…

We’ve done a lot of PCBs with the toner transfer method over the years. The idea is simple: print a pattern using toner (which is just ground up black plastic) and then use an iron or other heat and pressure device to transfer the toner to a copper-clad board. It works and it works well. But getting just the right combination of heat, pressure, release paper, and toner is sometimes tricky.

Some people hack their printers to turn off the fuser wire (to make the toner not stick to the paper) or to run a PCB directly through it. If you have a big expensive laser printer, though, you might not want to chop it up just to run PCBs. Have you looked at laser printer prices lately? We aren’t sure if it is cheap units flooding the market, or the overwhelming popularity of color printers, but you can pick up a Pantum P2500 for about $25 or $30–and probably get WiFi printing at that price. [Mlermen] picked one of these up and shows you how to convert it to a PCB printer.

Continue reading “Want To Make A PCB? The Pantum Knows…”

Death To The 3.5mm Audio Jack, Long Live Wireless

There’s been a lot of fuss over Apple’s move to ditch the traditional audio jack. As for me, I hope I never have to plug in another headphone cable. This may come off as gleeful dancing on the gravesite of my enemy before the hole has even been dug; it kind of is. The jack has always been a pain point in my devices. Maybe I’ve just been unlucky. Money was tight growing up. I would save up for a nice set of headphones or an mp3 player only to have the jack go out. It was a clear betrayal and ever since I’ve regarded them with suspicion. Is this the best we could do?

I can’t think of a single good reason not to immediately start dumping the headphone jack. Sure it’s one of the few global standards. Sure it’s simple, but I’m willing to take bets that very few people will miss the era of the 3.5mm audio jack once it’s over. It’s a global episode of the sunk cost fallacy.

In the usual way hindsight is 20/20, the 3.5mm audio jack can be looked at as a workaround, a stop over until we didn’t need it.  It appears to be an historic kludge of hack upon hack until something better comes along. When was the last time it was common to hook an Ethernet cable into a laptop? Who would do this when we can get all the bandwidth we want reliably over a wireless connection. Plus, it’s not like most Ethernet cables even meet a spec well enough to meet the speeds they promise. How could anyone reasonably expect the infinitely more subjective and variable headphone and amplifier set to do better?

But rather than just idly trash it, I’d like to make a case against it and paint a possible painless and aurally better future.

Continue reading “Death To The 3.5mm Audio Jack, Long Live Wireless”

Sometimes Square Is Square: Basic Machinist Skills

Is it possible to make an entertaining video about turning a cube of aluminum into a slightly cubier cube? As it turns out, yes it is, and you might even learn something along with the sight gags and inside jokes if you watch [This Old Tony] cover the basics of squaring up stock.

Whether you’re working in wood or metal, starting with faces that are flat, smooth and perpendicular is the key to quality results. [Tony] is primarily a machinist, so he works with a nice billet of aluminum and goes through some of the fundamental skills every metalworker needs to know. When you’re working down to the thousandths of an inch it’s easy to foul up, and tricks such as using a ball bearing between the vise jaws and the stock to prevent canting are critical skills. He covers tramming the mill, selecting which faces to cut and in which order, and ways to check your work on the surface plate and make any corrections if and when things go wrong. Look for cameos by fellow machinist [Abom79] and [Stefan Gotteswinter], including one with [Stefan] in a very compromising position. But a ball in a vise and no [AvE] reference? C’mon!

[Tony] makes a potentially tedious subject pretty entertaining by keeping things light, and we appreciate both the humor and attention to detail. He’s turned out some great videos that we’ve covered before, like making your own springs or a shop-built boring head, and his stuff is really worth checking out.

Continue reading “Sometimes Square Is Square: Basic Machinist Skills”

Building The Brightest Light Sabre In The World

If you are looking for a Star Wars light sabre, sometimes your choices can be a little disappointing. “Replica” sabres from toy and novelty vendors may superficially look the part, but with their tinny speakers and lacklustre show of LEDs they often have less of the Force about them and more of the Farce.

[Jeremy Lee] offers a solution; he’s built what he claims to be the brightest light sabre in the world. That’s a bold assertion, and one which we think might even throw down a gauntlet to other sabre builders and spark an arms race among Jedi wannabes.

The super-bright sabre uses a 144 LED double-sided strip of Neopixels in a polycarbonate tube, with a DC to DC converter powered by a 1000mAH LiPo battery. Sound effects come from a SparkFun Pro Micro powering a 2W speaker through a small audio amplifier. The handle meanwhile is constructed from PVC pipe fittings.

His first attempt at the sabre had the LEDs at full power, and promptly melted his tube. Thus the final version runs at 40% of its maximum rating, with a “burst” mode for those moments at which combat demands it.

His write-up is a series of posts, with plenty of video at all points. It might seem odd to show you the shortest of them here at only a few seconds long, but since the unique selling point is its brightness we think the best way to show that is at night.

Continue reading “Building The Brightest Light Sabre In The World”