Mmm… Obfuscated Shell Donuts

In case you grow tired of clear-written, understandable code, obfuscation contests provide a nice change of scenery, and trying to make sense of their entries can be a fun-time activity and an interesting alternative to the usual brainteasers. If we ever happen to see a Simpsons episode on the subject, [Andy Sloane] has the obvious candidate for a [Hackerman Homer] entry: a rotating ASCII art donut, formatted as donut-shaped C code.

The code itself actually dates back to 2006, but has recently resurfaced on Reddit after [Lex Fridman] posted a video about it on YouTube, so we figured we take that chance to give some further attention to this nifty piece of art. [Andy]’s blog article goes in all the details of the rotation math, and how he simply uses ASCII characters with different pixel amounts to emulate the illumination. For those who prefer C over mathematical notation, we added a reformatted version after the break.

Sure, the code’s donut shape is mainly owed to the added filler comments, but let’s face it, the donut shape is just a neat little addition, and the code wouldn’t be any less impressive squeezed all in one line — or multiple lines of appropriate lengths. However, for the actual 2006 IOCCC, [Andy] took it a serious step further with his entry, and you should definitely give that one a try. For some more obfuscated shell animations, check out the fluid dynamics simulator from a few years back, and for a more recent entry, have a look at the printf Tic Tac Toe we covered last month.

Continue reading “Mmm… Obfuscated Shell Donuts”

Live Map Of London Tube Created In PCB And Lights

If you’re a frequent traveler on a public transit system, it can be helpful to know when the trains or buses are arriving and if there are any delays. We might reach for a tablet to mount on the wall, but that relies on keeping the OS, the software, and its library dependancies up to date. For true reliability you’ll need to build directly in hardware, which is exactly what this map of the London tube system uses.

The base map is printed directly on PCB, with LEDs along each of the major routes to indicate the current location of the trains. A few small chips handle the WiFi connection — it appears to our eye to be an ESP8266 — and pulling the information about the trains from the London Underground API (it would be virtually impossible to build everything for this project in hardware). The hardware can be easily reprogrammed, and with the PCB layout this could be adapted for other public transit fairly easily.

Even apart from the philosophical differences on design between hardware and software approaches, we still appreciate the aesthetic of LEDs on PCB. In fact, we’ve seen a whole host of artwork on PCBs ever since the price came down dramatically in the past two decades.

Thanks to [Al] for the tip!

LED Art Hack Chat

Join us on Wednesday, July 1 at noon Pacific for the LED Art Hack Chat with Aaron Oppenheimer!

From the first time humans crawled into a cave with a bit of charcoal to sketch scenes from the world around them, artists have been searching for new media and new ways to express themselves. Natural products ruled for thousands of years, with pigments stolen or crafted from nature as well as wood, ivory, bone, and stone for carving. Time and experience guided our ancestors to new and better formulations and different materials, to the point that what qualifies as art and what we’d normally think of as technology have, in many cases, blended into one, with the artist often engineering projects of mammoth proportions and breathtaking beauty.

Aaron Oppenheimer co-founded color+light, a company that specializes in large-scale custom art installations for companies like Google, Nike, and Nissan. One of their projects, the “Oddwood Tree”, is displayed alongside other gigantic art pieces at Area15 on the Las Vegas strip. His most recent project, fluora, is a digital houseplant, with addressable LEDs in the leaves that can be controlled by a smartphone app or respond to stimuli in the environment.

Aaron will join us on the Hack Chat to discuss the LED as artistic medium. Join us as we learn what it takes to make enormous art that’s strong enough to interact with yet responsive enough to be engaging.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, July 1 at 12:00 PM Pacific time. If time zones have you down, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io. You don’t have to wait until Wednesday; join whenever you want and you can see what the community is talking about.

Continue reading “LED Art Hack Chat”

Recreating Paintings By Teaching An AI To Paint

The Timecraft project by [Amy Zhao] and team members uses machine learning to figure out a way how an existing painting may have been originally been painted, stroke by stroke. In their paper titled ‘Painting Many Pasts: Synthesizing Time Lapse Videos of Paintings’, they describe how they trained a ML algorithm using existing time lapse videos of new paintings being created, allowing it to probabilistically generate the steps needed to recreate an already finished painting.

The probabilistic model is implemented using a convolutional neural network (CNN), with as output a time lapse video, spanning many minutes. In the paper they reference how they were inspired by artistic style transfer, where neural networks are used to generate works of art in a specific artist’s style, or to create mix-ups of different artists.

A lot of the complexity comes from the large variety of techniques and materials that are used in the creation of a painting, such as the exact brush used, the type of paint. Some existing approaches have focused on the the fine details here, including physics-based simulation of the paints and brush strokes. These come with significant caveats that Timecraft tried to avoid by going for a more high-level approach.

The time lapse videos that were generated during the experiment were evaluated through a survey performed via Amazon Mechanical Turk, with the 158 people who participated asked to compare the realism of the Timecraft videos versus that of the real time lapse videos. The results were that participants preferred the real videos, but would confuse the Timecraft videos for the real time lapse videos half the time.

Although perhaps not perfect yet, it does show how ML can be used to deduce how a work of art was constructed, and figure out the individual steps with some degree of accuracy.

Continue reading “Recreating Paintings By Teaching An AI To Paint”

Flexible PCB Earrings Put The Art In Art Deco

Earrings have been a hackers’ target for electronic attachment for quite a while, but combining the needed components into a package small enough to wear in that finicky location is quite a challenge. If [Sawaiz Syed]’s Art Deco Earrings are anything to go by, ear computers have a bright future ahead of them!

This is a project unusually well described by its name. It is in fact an earring, with art deco styling. But that sells it way too short. This sliver of a flex circuit board is double sided to host an ATtiny, accelerometer, LDO, and eight 2020 formfactor controller-integrated LEDs. Of course it’s motion sensitive, reacting to the wearer’s movement via LED pattern. [Sawaiz] makes reference to wearing it while dancing, and we can’t help but imagine an entire ballroom all aglow with tiny points of LED light.

The Art Deco Earrings are also set apart by the thoroughness of their documentation (have we mentioned how much we love detailed documentation?). [Sawaiz] not only drops the source in your lap, but the README in the Github repo linked at the top walks the reader through each component of the design in detail. Plus the PCBA render is so complete it includes a model of the wire loop to fit through the wearer’s ear; how cool is that? The single piece that’s still in progress is the battery. The earring itself hosts an LDO, so all that is required is stashing a battery somewhere discrete, perhaps in the user’s hair? We’re looking forward to seeing what [Sawaiz] works out.

For the full effect, check out the gif of an assembled unit in action after the break.

Continue reading “Flexible PCB Earrings Put The Art In Art Deco”

A Twisted Tale Of Woven Wires

A little over a year ago, we ran a contest that challenged readers to leave the comfort of their PCBs and breadboards. We wanted to see circuits built in three dimensions, with extra points awarded for creativity and artistic flair. Truth be told there was initially some concern that the “Circuit Sculpture” contest was a bit too abstract for the Hackaday community, but the overwhelming number of absolutely gorgeous entries certainly put those doubts to rest.

In a recent video, [Michael Aichlmayr] walks viewers through the creation of his mesmerizing entry Wonderlandscape, which ended up taking honorable mention in the Circuit Sculpture contest for Best Metalworks. Though this is much more than just a simple walk-through of a project. Sure you’ll see how brass bar stock was artfully twisted and wrapped to create a metallic winterscape that looks like it could have come from Bob Ross’s hitherto unknown cyberpunk period, but that’s only half the story.

The brass bar was twisted by hand with pliers.

In the video, [Michael] recalls how he discovered the burgeoning electronic sculpture community, and points to a few exceptional examples that got him hooked on finding the beauty that’s usually hidden inside of a plastic enclosure. Eventually he heard about the Circuit Sculpture contest, and decided it was the perfect opportunity to build something of his own. That’s right, Wonderlandscape is his very first attempt at turning electronics into art.

But the best may be yet to come. [Michael] explains that, due to the time constraints of the contest, he had to use metal stock purchased from the crafts store. But his ultimate goal is actually to melt down salvaged brass and bronze components and make his own wire and rods. We can’t wait to see what he’ll be able to accomplish when he starts working with his own custom made metal, and are eagerly awaiting the future video that he says will go over the techniques he’s been working on.

This story is a great reminder of how stepping out of your comfort zone once and awhile can be a good thing. Entering the contest with no previous experience was a risk to be sure, but [Michael] came out the other side more experienced and with a few new friends in the community. So why not enter our latest contest and see where it takes you?

Continue reading “A Twisted Tale Of Woven Wires”

Making A Gorgeously-Twisty Sculpture, Using Only Flat Pieces

Closeup of unique pieces that make up the final scuplture.

The sculpture shown here is called Puzzle Cell Complex and was created by [Nervous System] as an art piece intended to be collaboratively constructed by conference attendees. The sculpture consists of sixty-nine unique flat panel pieces, each made from wood, which are then connected together without the need for tools by using plastic rivets. Everything fits into a suitcase and assembly documentation is a single page of simple instructions. The result is the wonderfully-curved gyroid pattern you see here.

The sculpture has numerous layers of design, not the least of which was determining how to make such an organically-curved shape using only flat panels. The five-foot assembled sculpture has a compelling shape, which results from the sixty-nine individual panels and how they fit together. These individual panel shapes have each been designed using a technique called variational surface cutting to minimize distortion, resulting in their meandering, puzzle-piece-like outlines. Each panel also has its own unique pattern of cutouts within itself, which makes the panels lighter and easier to bend without sacrificing strength. The short video embedded below shows the finished sculpture in all its glory.

Continue reading “Making A Gorgeously-Twisty Sculpture, Using Only Flat Pieces”