Hackaday Links: December 27th, 2015

PCBs can be art – we’ve known this for a while, but we’re still constantly impressed with what people can do with layers of copper, fiberglass, soldermask, and silkscreen. [Sandy Noble] is taking this idea one step further. He took C64, Spectrum, and Sinclair PCBs and turned them into art. The results are incredible. These PCBs were reverse engineered, traced, and eventually turned into massive screen prints. They look awesome, and they’re available on Etsy.

$100k to bring down drones. That’s the tagline of the MITRE Challenge, although it’s really being sold as, “safe interdiction of small UAS that pose a safety or security threat in urban areas”. You can buy a slingshot for $20…

[styropyro] mas made a name for himself on Youtube for playing with very dangerous lasers and not burning his parent’s house down. Star Wars is out, and that means it’s time to build a handheld 7W laser. It’s powered by two 18650 cells, and is responsible for more than a few scorch marks on the walls of [styropyro]’s garage.

Everybody is trying to figure out how to put Ethernet and a USB hub on the Pi Zero. This means a lot of people will be launching crowdfunding campaigns for Pi Zero add-on boards that add Ethernet and USB. The first one we’ve seen is the Cube Infinity. Here’s the thing, though: they’re using through-hole parts for their board, which means this won’t connect directly to the D+ and D- USB signals on the Pi Zero. They do have a power/battery board that may be a little more useful, but I can’t figure out how they’re doing the USB.

[Keith O] found a fascinating video on YouTube and sent it into the tips line. It’s a machine that uses a water jet on pastries. These cakes start out frozen, and come out with puzzle piece and hexagon-shaped slices. Even the solution for moving cakes around is ingenious; it uses a circular platform that rotates and translates by two toothed belts. Who would have thought the latest advancements in cutting cakes and pies would be so fascinating?

It’s time to start a tradition. In the last links post of last year, we took a look at the number of views from North Korea in 2014. Fifty-four views, and we deeply appreciate all our readers in Best Korea. This year? For 2015, we’ve logged a total of thirty-six views from the Democratic People’s Republic of Korea. That’s a precipitous drop that deserves an investigation. Pyongyang meetup anyone?

Christmas Bauble Is Neither Spherical Nor Runs Arduino

[Jordan Wills] was tasked by his company, Silicon Labs, to build some Christmas Baubles to give away to co-workers. While the commissioned units were designed to be simple battery and LED affairs, he decided to make one of his own with bells and whistles. His Mario themed Christmas Ornament uses a Silicon Labs FM972 micro controller, capacitive sensing, PWM controlled 8 bit audio, and blinky lights.

The interesting part is some of the construction techniques that he used. The finger-joint style cube is built from circuit boards. Electrical connections between panels were routed using solder wicking copper braid. That’s a interesting trick which we’ll keep in mind along with some of our favorite creative structural uses of PCB.

The top of the cube has four LED’s which light up the Mario “Question Mark” symbols on the four sides of the cube while the base contains all of the electronics. The outside of the base piece was a large copper plane to act as the capacitive sensing element. This meant all electronics needed to be surface mounted with tracks laid out on one side – which posed some layout challenges. Adding the Capacitive sense function was a cinch thanks to support from the in-house design team. PWM output from the micro controller takes care of audio, and the output is routed through a buffer to boost the signal. A bandpass filter then cleans up the PWM output before feeding it to the speaker.

Continue reading “Christmas Bauble Is Neither Spherical Nor Runs Arduino”

Code Craft – Embedding C++: Templates

The language C++ is big. There is no doubting that. One reason C++ is big is to allow flexibility in the technique used to solve a problem. If you have a really small system you can stick to procedural code encapsulated by classes. A project with a number of similar but slightly different entities might be best addressed through inheritance and polymorphism.

A third technique is using generics, which are implemented in C++ using templates. Templates have some similarities with #define macros but they are a great deal safer. The compiler does not see the code inserted by a macro until after it has been inserted into the source. If the code is bad the error messages can be very confusing since all the developer sees is the macro name. A template is checked for basic syntax errors by the compiler when it is first seen, and again later when the code is instantiated. That first step eliminates a lot of confusion since error messages appear at the location of the problem.

Continue reading “Code Craft – Embedding C++: Templates”

First Plasma In The World’s Largest Stellerator

If you’re looking for the future of humanity, look no further than the first plasma generated in the Wendelstein 7-X Stellerator at the Max Planck Institute for Plasma Physics. It turned on for the first time yesterday, and while this isn’t the first fusion power plant, nor will it ever be, it is a preview of what may become the invention that will save humanity.

A glimpse of plasma in side the Stellerator
A glimpse of plasma in side the Stellerator

For a very long time, it was believed the only way to turn isotopes of hydrogen into helium for the efficient recovery of power was the Tokamak. This device, basically a hollow torus lined with coils of wire, compresses plasma into a thin circular string. With the right pressures and temperatures, this plasma will transmute the elements and produce power.

Tokamaks have not seen much success, though, and this is a consequence of two key problems with the Tokamak design. First, we’ve been building them too small, although the ITER reactor currently being built in southern France may be an exception. ITER should be able to produce more energy than is used to initiate fusion after it comes online in the 2020s. Tokamaks also have another problem: they cannot operate continuously without a lot of extraneous equipment. While the Wendelstein 7-X Stellerator is too small to produce a net excess of power, it will demonstrate continuous operation of a fusion device. [Elliot Williams] wrote a great explanation of this Stellerator last month which is well worth a look.

While this Stellerator is just a testbed and will never be used to generate power, it is by no means the only other possible means of creating a sun on Earth. The Polywell – a device that fuses hydrogen inside a containment vessel made of electromagnets arranged like the faces of a cube – is getting funding from the US Navy. Additionally, Lockheed Martin’s Skunk Works claims they can put a 100 Megawatt fusion reactor on the back of a truck within a few years.

The creation of a fusion power plant will be the most important invention of all time, and will earn the researchers behind it the Nobel prize in physics and peace. While the Wendelstein 7-X Stellarator is not the first fusion power plant, it might be a step in the right direction.

The Filmomat Home Film Processing System

The death of film has been widely reported, but technologies are only perfected after they’ve been made obsolete. It may not be instant photography, but there is at least one machine that will take 35mm film and 5×7″ prints and develop them automatically. It’s called the Filmomat, and while it won’t end up in the studios of many photographers, it is an incredible example of automation.

The Filmomat is an incredible confabulation of valves, tubes, and pumps that will automatically process any reasonably sized film, from 35mm to 5×7 color slides. The main body of the machine is an acrylic cube subdivided into different sections containing photo processing chemicals, rinse water, and baths. With a microcontroller, an OLED display, and a rotary encoder, different developing processes can be programmed in, the chemicals heated, developer agitated, and film processed. The Filomat is capable of storing fifty different processes that use three chemicals and a maximum of ten steps.

The video for this device is what sells it, although not quite yet; if enough people are interested, the Filmomat might be sold one day. This is likely the easiest film developing will ever get, but then again a technology is only perfected after it has been made obsolete.

Thanks [WhiteRaven] for sending this one in.

Continue reading “The Filmomat Home Film Processing System”

Hacklet 86 – Time-lapse Projects

“If I could save time in a bottle…” it’s not just an old song, it’s a passion for many photography hackers. Time-lapse photography is a way to show the movement of time through still images. These images are animated into what essentially is a video recorded at a super low frame rate. We’re talking one frame per minute or slower in some cases! The camera doesn’t have to be still for all this, but any motion must be carefully controlled. This has led hackers, makers, and engineers to create a myriad of time-lapse rigs. This week’s Hacklet is all about some of the best time lapse projects on Hackaday.io!

rig-1We start with [Swisswilson] and the simply named Timelapse rig. To say this rig is beefy would be an understatement. All the aluminum parts, with the exception of the gears, were machined by [Swisswilson]. Two Nema-23 Nema-17 motors are controlled by Sparkfun Easy Stepper Drive boards, while an Arduino Micro serves as the controller. The electronics are all housed in a sturdy box which also serves as a remote control. A joystick allows pan and tilt to be manually controlled. The bombproof construction is definitely a help here, as [Swisswilson] is using this rig with DSLR cameras. Combined with a lens, these setups can reach a pound or two.

 

pilapseNext up is [minWi], who put their script-foo to work with raspilapse. Raspilapse automates the entire process of taking photos, assembling them into a movie, and uploading to YouTube. The hardware is a Raspberry Pi Model B, with a RasPi Camera. The Pi shoots images then uploads them to a Virtual Private Server (VPS). [minWi] used an external server to save wear and tear on the Pi’s SD storage card. At the end of the day, the VPS uses ffmpeg to assemble the images into a video, then uploads the whole thing to YouTube. We’re betting that with a few script mods, this entire process could be run on a Raspberry Pi 2. If you’re really worried about the SD card, a USB flash drive could be used.

 

SunriseSunsetRig[Andyhull] takes us down to one frame per day with Sunset and Sunrise camera controller. [Andy] wanted to get shots of the sunrise every day. Once converted to a video, these shots are great for documenting the passing of the seasons. He used a Canon point and shoot camera along with the Canon Hack Devleoper’s Kit (CHDK) for his camera. The camera has its own real-time clock, and with CHDK, it can be programmed to shoot images at sunrise. The problem is power. Leaving the camera on all the time would quickly drain the batteries. Arduino to the rescue! [Andy] programmed an Arduino Pro Mini to turn the camera on just before sunrise, then shut it back down. The standby power of a sleeping ATmega328 is much lower than the camera’s, leading to battery life measured in weeks.

 

podFinally, we have [caramellcube] who added data to their time-lapse photos with Portable Observation Device (POD). POD was conceived as a device to aid paranormal investigators. The idea was to have a device that could take images and record data at a set interval from within a locked room. Sounds like a job for a Raspberry Pi! [caramellcube] started with Adafruit’s Raspberry Pi-based touchscreen camera kit. From there they added a second board controlled by an Arduino Nano. The Nano reads just about every sensor [caramellcube] could fit, including humidity, air pressure, magnetic field strength, acceleration, light (4 bands), sound, and static charge. The Nano allows [caramellcube] to connect all those sensors with a single USB port on the Pi. We’re not sure if [caramellcube] has found any ghosts, but we’re sure our readers can think of plenty of uses for a device like this!

If you want to see more time-lapse projects, check out our new time-lapse projects list! If I missed 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!

The Nvidia Jetson TX1: It’s Not For Everybody, But It Is Very Cool

Last week, the Nvidia Jetson TX1 was released. This credit card-sized module is a ‘supercomputer’ advertised as having more processing power than the latest Intel Core i7s, while running at under 10 Watts. This is supposedly the device that will power the next generation of things, using technologies unheard of in the embedded world.

A modern day smartphone could have been built 10 or 15 years ago. There’s no question the processing power was there with laptop CPUs, and the tiny mechanical hard drives in the original iPod was more than spacious enough to hold a library of Napster’d MP3s and all your phone contacts. The battery for this sesquidecadal smartphone, on the other hand, was impossible. The future depends on batteries and consequently low power computing. Is the Jetson TX1 the board that will deliver us into the future? It took a hands-on look to find out.

Nvidia-2
The Nvidia Jetson TX1 and Carrier Board

What is the TX1

The Jetson TX1 is a tiny module – 50x87mm – encased in a heat sink that brings the volume to about the same size as a pack of cigarettes. Underneath a block of aluminum is an Nvidia Tegra X1, a module that combines a 64-bit quad-core ARM Cortex-A57 CPU with a 256-core Maxwell GPU. The module is equipped with 4GB of LPDDR4-3200, 16GB of eMMC Flash, 802.11ac WiFi, and Bluetooth.

This module connects to the outside world through a 400-pin connector (from Samtec, a company quite liberal with product samples, by the way) that provides six CSI outputs for a half-dozen Raspberry Pi-style cameras, two DSI outputs, 1 eDP 1.4, 1 eDP 1.2, and HDMI 2.0 for displays. Storage is provided through either SD cards or SATA. Other ports include three USB 3.0, three USB 2.0, Gigabit Ethernet, a PCIe x1 and PCIe x4, and a host of GPIOs, UARTs, SPI and I2C busses.

The only way of getting at all these extra ports is, at the moment, the Jetson TX1 carrier board, a board that is effectively a MiniITX motherboard. Mount this carrier board in a case, modify a power supply and figure out how to wire up the front panel buttons, and you’ll have a respectable desktop computer.

This is not a desktop computer, though, and it’s not a replacement for a Raspberry Pi or Beaglebone. This is an engineering tool – a device built to handle the advanced robotics work of the future.

Benchmarks

No tech review would be complete without benchmarks, and since this is an Nvidia board, that means a deep dive into the graphics performance.

The review unit Nvidia sent over came with an incredible amount of documentation, pointing me towards GFXBench 4.0 Manhattan 3.1 (and the T-rex one) to test the graphics performance.

Manhattan

In terms of graphics performance, the TX1 isn’t that much different from a run-of-the-mill mobile chipset from a few years ago. This is to be expected; it’s unreasonable to expect Nvidia to put a Titan in a 10 Watt module; the Titan itself sucks up about 250 Watts.

test suiteWhat about CPU performance? The ARM Cortex A57 isn’t seen very much in tiny credit-card sized dev boards, but there are a few actual products out there with it.  The TX1 isn’t a powerhouse by any means, but it does trounce the Raspberry Pi 2 Model B in testing by a factor of about three.

Compared to desktop/x86 performance, the best benchmarks again put the Nvidia TX1 in the same territory as a middling desktop from a few years ago. Still, that desktop probably draws about 300 W total, where the TX1 sips a meager 10 W.

This is not the board you want if you’re mining Bitcoins, and it’s not the board you should use if you need a powerful, portable device that can connect to anything. It’s for custom designs. The Nvidia TX1 is a module that’s meant to be integrated into products. It’s not a board for ‘makers’ and it’s not designed to be. It’s a board for engineers that need enough power in a reasonably small package that doesn’t drain batteries.

With an ARM Cortex A57 quad core running at almost 2 GHz, 4 GB of RAM, and a reasonably powerful graphics card for the power budget, the Nvidia TX1 is far beyond the usual tiny Linux boards. It’s far beyond the Raspi, the newest Beagleboard, and gives the Intel NUC boards a run for their money.

That huge and heavy heatsink is useful; while benchmarking the TX1, temperatures were only one or two degrees above ambient
That huge and heavy heatsink is useful; while benchmarking the TX1, temperatures were only one or two degrees above ambient

In terms of absolute power, the TX1 is about as powerful as a entry-level laptop from three or four years ago.

The Jetson TX1 is all about performance per Watt. That’s exceptional, new, and exciting; it’s something that simply hasn’t been done before. If you believe the reams of technical documents Nvidia granted me access to, it’s the first step to a world of truly smart embedded devices that have a grasp on computer vision, machine learning, and a bunch of other stuff that hasn’t really found its way into the embedded world yet.

Alexnex images processed per second per watt. No, Joules do not exist.
Alexnex images processed per second per Watt. No, Joules do not exist.

And here lies the problem with the Jetson TX1; because a platform like this hasn’t been available before, the development stack, examples, and community of users simply isn’t there yet. The number of people contributing to the Nvidia embedded systems forum is tiny – our Hackaday articles get more comments than a thread on the Nvidia forums. Like all new platforms, the only thing missing is the community, putting Nvidia in a chicken and egg scenario.

This a platform for engineers. Specifically, engineers who are building autonomous golf carts and cars, quadcopters that follow you around, and robots that could pass a Turing test for at least 30 seconds. It’s an incredible piece of hardware, but not one designed to be a computer that sits next to a TV. The TX1 is an engineering tool that’s meant to go into other devices.

Alternative Applications, Like Gamecube

With that said, there are a few very interesting applications I could see the TX1 being used for. My car needs a new head unit, and building one with the TX1 would future proof it for at least another 200,000 miles. For the very highly skilled amateur engineers, the TX1 module opens a lot of doors. Six webcams is something a lot of artists would probably like to experiment with, and two DSI outputs – and a graphics card – would allow for some very interesting user interfaces.

That said, the TX1 carrier board is not the breakout board for these applications. I’d like to see something like what Sparkfun put together for the Intel Edison – dozens of breakout boards for every imaginable use case. The PCB files for the TX1 carrier board are available through the Nvidia developer’s portal (hope you like OrCAD), and Samtec, the supplier for the 400-pin connector used for the module, is exceedingly easy to work with. It’s not unreasonable for someone with a reflow toaster oven to create a breakout for the TX1 that’s far more convenient than a Mini-ITX motherboard.

Right now there aren’t many computers with ARM processors and this amount of horsepower out now. Impressively powerful ARM boards, such as the new BeagleBoard X15 and those that follow the 96Boards specification exist, but these do not have a modern graphics card baked into the module.

Without someone out there doing the grunt work of making applications with mass appeal work with the TX1, it’s impossible to say how well this board performs at emulating a GameCube, or any other general purpose application. The hardware is probably there, but the reviewers for the TX1 have been given less than a week to StackOverflow their way through a compatible build for the most demanding applications this board wasn’t designed for.

It’s all about efficiency

Is the TX1 a ‘supercomputer on a module’? Yes, and no. While it does perform reasonably well at machine learning tasks compared to the latest core-i7 CPUs, the Alexnet machine learning tasks are a task best suited for GPUs. It’s like asking which flies better: a Cessna 172 or a Bugatti Veyron? The Cessna is by far the better flying machine, but if you’re looking for a ‘supercomputer’, you might want to look at a 747 or C-5 Galaxy.

On the other hand, there aren’t many boards or modules out there at the intersection of high-powered ARM boards with a GPU and on a 10 Watt power budget. It’s something that’s needed to build the machines, robots, and autonomous devices of the future. But even then it’s still a niche product.

I can’t wait to see a community pop up around the TX1. With a few phone calls to Samtec, a few hours in KiCad, and a group buy for the module itself ($299 USD in 1000 unit quantities), this could be the start of something very, very interesting.