Hacklet 79 – USB Projects

Universal Serial Bus was created to simplify interconnecting computers and peripherals. First released in 1996, hackers and makers were slow to accept this strange new protocol. Parallel and serial ports were simpler, worked great, and had decades of hacking with thousands of projects behind them. As the new standard caught on in the mainstream, RS-232 and parallel ports started disappearing. “Legacy free” PC’s became the norm. Hackers, Makers, and Engineers had no choice but to jump on the bandwagon, which they did with great gusto. Today everything has a USB port. From 8 bit microcontrollers to cell phones to children’s toys. This week’s Hacklet is about some of the best USB projects on Hackaday.io!

two partsWe start with [Michael Mogenson] and Two Component USB Temperature Data Logger, which may be the simplest USB device ever made. [Michael] isn’t kidding. This data logger consists of just a Microchip PIC16F1455 microcontroller and a USB connector. Microchip’s datasheet calls for a capacitor to smooth out power, but [Michael] made it work without the extra part. He used M-Stack by Signal 11 to implement the USB stack. Once connected to a PC, the PIC enumerates as a serial port device. It then sends its die temperature of the PIC once per second. It could do more, but that would probably require adding a few more components!

tester1Next up is [davedarko] with USB cable tester. Dave recently spent some time installing USB RFID readers. These devices were only a few meters away from the computer controlling them. Even so, the power and USB data cables had to run through pipes and in some cases under water. It wasn’t fun troubleshooting a device to find that it was a shorted USB cable causing the problem. [Dave’s] solution is a tiny coin cell powered board that tests each of the 4 wires in a standard USB 2.0 cable. The board runs on an ATtiny45 microcontroller. [Dave’s] current iteration has footprints for mini and micro USB connectors, along with the standard USB-A.

 

tester2[MobileWill] has a USB Tester of his own. This USB tester checks current consumption and rail voltage. It does this by connecting in-line with the device under test. It’s perfect for troubleshooting why your PC’s USB port goes into over-current protection every time you plug in your device. The tester is modular – you can use the base board with your own multimeter, or grab [Will’s] tester backpack and see the results right on the built-in OLED display. USB Tester is [Will’s] entry in the 2015 Hackaday Prize.

 

tbdFinally, we have [ajlitt] with Tiny Bit Dingus (TBD). TBD is a USB interface to 6 wires. Think of it as a tiny version of the bus pirate. This lilliputian board holds a Freescale KL27Z ARM processor, which has more than enough power to handle things like I2C, SPI, PWM, or just about any other way to send data or wiggle wires. [Ajlitt] started this project as an excuse to learn KiCAD and gain some experience with surface mount solder stencils. The result is an absolutely tiny board that is all but lost in a USB socket. Programming is handled with the mbed library, though you can always use Freescale’s native tools. Flashing code on the TBD is easy with kut, a chrome browser plugin.

If you want to see more USB projects, check out our new USB projects list. Did I miss your project? Don’t be shy, just drop me a message on Hackaday.io. That’s it for this week’s Hacklet, As always, see you next week. Same hack time, same hack channel, bringing you the best of Hackaday.io!

Makerbot Has Now Cut 36% Of Staff In Last 6 Months

The CEO of Makerbot, [Jonathan Jaglom] announced this week a massive reorganization. Twenty percent of the staff will be laid off, management will be changed, an office will be closed, and perhaps most interestingly, the production of 4th generation of Makerbots will be outsourced to contract manufacturers.

This news comes just months after Makerbot announced its first 20% reduction in staff, and follows on the heels of a class action suit from investors. These are troubling times for Makerbot.

So Goes Makerbot, So Goes The Industry

In the last six months, Makerbot has closed all three of its retail locations in Manhattan, Boston, and Greenwich, CT. It has moved out of one of its office buildings in Industry City, Brooklyn as the company faces a class action suit from investors for possible securities violations. These are by any measure troubling times for anyone at Makerbot.

The 3D printing industry has been forced through the rollercoaster of the hype cycle in the last few years, and where Makerbot goes, media coverage and public perception of 3D printing goes with it. According to pundits, we are now deep in the doldrums of the trough of disillusionment. No one wants to make their own parts for their washing machine, it is said, and 3D printers are finicky devices with limited utility.

Despite these pundits’ projections, the 3D printing industry doubled in 2015. Multiple manufacturers of sub $5000 machines are going gangbusters, and seeing the biggest revenues in the history of their respective companies. By any measure except the one provided by Makerbot, we are still in an era of a vast proliferation of 3D printing.

Makerbot, for better or worse, is a bellweather, and public perception and media attention is highly dependant on the success of Makerbot. The Verge writes – incorrectly – “…The consumer 3D-printing market’s rise has slowed”, and Business Insider writes ‘consumers are beginning to lose interest.’ These are not statements backed up by facts or statistics or even hearsay; they are merely a reflection of the consumer’s disinterest in Makerbot and not of the 3D printing industry of the whole.

Unfortunately, we will not know the extent of how bad it is at Makerbot until Stratasys releases its 2015 financial report sometime in early March next year. Wohlers Report 2016, the definitive guide to the 3D printing industry, will be released sometime around May of next year. Keep one thing in mind: Makerbot did not build the 3D printing industry, and the public perception of Makerbot does not necessarily translate to the public perception of 3D printing.

FRDM-K22F ARM Board Doesn’t Have An SD Card Socket? Not So Fast!

The Freescale Freedom development boards come in several different flavors and at several different price points. It is pretty clear that Freescale counts up pennies to hit their desired target price. For example, the costlier boards with bigger processors (like the K64F which costs about $35) has sockets to fit an Arduino shield or other external connections. Many of the cheaper boards (like the KL25Z for $13) just has PCB holes. If you want to add sockets, that’s on you.

The $30 K22F board has the sockets, but it also omits a few components that are on the PCB. [Erich Styger] noted that there was a micro SD card socket footprint on the board and wondered if he could add an SD card to the board by just soldering on the socket. The answer: yes!

Continue reading “FRDM-K22F ARM Board Doesn’t Have An SD Card Socket? Not So Fast!”

Code Craft: Subtle Interrupt Problems Stack Up

[Elliot Williams’] column, Embed with Elliot, just did a great series on interrupts. It came in three parts, illustrating the Good, the Bad, and the Ugly of using interrupts on embedded systems. More than a few memories floated by while reading it. Some pretty painful because debugging interrupt problems can be a nightmare.

One of the things I’ve learned to watch out for over the years is the subtlety of stack based languages, like C/C++, which can ensnare the unwary. This problem has to do with the corruption of arrays of values on a stack during interrupt handling. The fix for this problem points up another one often used by black hats to gain access to systems.

Continue reading “Code Craft: Subtle Interrupt Problems Stack Up”

Optical Rectenna Converts Light To DC

Using multiwall carbon nanotubes, researchers at Georgia Institute of Technology have created what they say are the first optical rectennas–antennas with rectifiers that produce DC current. The work could lead to new technology for advanced photodetectors, new ways to convert waste heat to electricity and, possibly, more efficient ways to capture solar energy.

A paper in Nature Nanotechnology describes how light striking the nanotube antennas create a charge that moves through attached rectifiers. Challenges included making the antennas small enough for optical wavelengths, and creating  diodes small enough and fast enough to work at the extremely short wavelengths. The rectifiers switch on and off at petahertz speeds (something the Institute says is a record).  Continue reading “Optical Rectenna Converts Light To DC”

ARMing A Breadboard — Everyone Should Program An ARM

I’m always a little surprised that we don’t see more ARM-based projects. Of course, we do see some, but the volume isn’t what I’d expect given that low-level ARM chips are cheap, capable, low power, and readily available. Having a 32-bit processor with lots of memory running at 40 or 50 MIPS is a game changer compared to, say, a traditional Arduino (and, yes, the Arduino Due and Zero are ARM-based, so you can still stay with Arduino, if that’s what you want).

A few things might inhibit an Arduino, AVR, or PIC user from making the leap. For one thing, most ARM chips use 3.3V I/O instead of the traditional 5V levels (there are exceptions, like the Kinetis E). There was a time when the toolchain was difficult to set up, although this is largely not a problem anymore. But perhaps the largest hurdle is that most of the chips are surface mount devices.

Of course, builders today are getting pretty used to surface mount devices and you can also get evaluation boards pretty cheaply, too. But in some situations–for example, in classrooms–it is very attractive to have a chip that is directly mountable on a common breadboard. Even if you don’t mind using a development board, you may want to use the IC directly in a final version of a project and some people still prefer working with through hole components.

The 28 Pin Solution

One solution that addresses most, if not all, of these concerns is the LPC1114FN28 processor. Unlike most other ARM processors, this one comes in a 28 pin DIP package and works great on a breadboard. It does require 3.3V, but it is 5V tolerant on digital inputs (and, of course, a 3.3V output is usually fine for driving a 5V input). The chip will work with mbed or other ARM tools and after prototyping, you can always move to a surface mount device for production, if you like. Even if you are buying just one, you should be able to find the device for under $6.

Continue reading “ARMing A Breadboard — Everyone Should Program An ARM”

Vintage Computer Fest: Berlin 2015

Berlin was a good city to be a geek in last weekend. Alongside the Berlin Maker Faire, there was the 2015 meeting of the Vintage Computing Festival: Berlin (VCFB). Each VCFB has a special theme, and this year it was analogue computers, but there was no lack of old computers large and small, teletext machines, vintage video game consoles, and general nerdy nostalgia.

Continue reading “Vintage Computer Fest: Berlin 2015”