Achieving Zen The Arduino Way

The purpose of a Zen garden, those stylized landscapes created by painstakingly placing rocks and raking gravel into perfect patterns, is the doing of the thing. Making sure every line is perfectly formed is no mean feat, and the concentration required to master it is the point of the whole thing. But who has time for that? Why not just build a robot to create the perfect Zen garden in miniature?

That was what [Tim Callinan] and his classmates did for a semester project, and the “ZenXY” sand plotter was the result. There isn’t a build log for the device per se, although the video below makes it plain how they went about this. The sand table itself is a plywood box whose bottom is layered with fine white sand and contains a single steel ball. Below the table is an X-Y gantry carrying a powerful magnet. A gShield riding on top of an Uno turns G code into slow, stately movement of the ball through the sand. The patterns are remarkably intricate, and while it might not be the same as mastering the body control needed to rake gravel with precision, watching the ball push the sand around is pretty Zen all by itself

This isn’t the first time we’ve seen someone try to automate a traditional Japanese practice. This tea ceremony robot comes to mind, and this nicely crafted sand table is very similar to the ZenXY.

Continue reading “Achieving Zen The Arduino Way”

How A Microcontroller Hiding In A USB Port Became An FPGA Hiding In The Same

When you think of microcontroller development, you probably picture either a breadboard with a chip or a USB-connected circuit board. But Tim Ansell pictured an ARM dev board that is almost completely hidden inside of a USB port. His talk at the 2018 Hackaday Superconference tells that story and then some. Check out the newly published video, along with more details of the talk, after the break.

Continue reading “How A Microcontroller Hiding In A USB Port Became An FPGA Hiding In The Same”

Automatic Soap Dispenser Hides Arduino Board

If you’ve been hanging out here at Hackaday for awhile, you’ve certainly seen projects that were based around the concept of putting a miniature computer inside the carcass of some other piece of electronics. In fact at this point it’s something of a running joke, certainly we must have seen an Arduino or Raspberry Pi shoehorned into every type of consumer gadget ever built by this point. But if you thought this would be another example of that common trope by the headline, you might be in for something of a surprise.

[zapta] didn’t put an Arduino inside this GOJO LTX-7 soap dispenser, it was already in there to begin with. That’s right, apparently we’ve hit the point that even cheap soap dispensers are now running on programmable microcontrollers. While we can’t blame those of you who are no doubt groaning and/or rolling their eyes thanks to this particular case of computational gluttony, it does mean we’re able to report with a straight face something which frankly would have passed as an April Fool’s joke in previous years: the development of an open source soap dispensing firmware.

So how does one upload a new Arduino sketch to their GOJO soap dispenser? It’s not like the thing has a USB port on the side for convenient hacking. As explained by [zapta], it involves stripping the dispenser all the way down until the electronics board is free, and then adding in a programming header to make subsequent firmware fiddling a bit easier. Writing a new firmware to the ATTiny48 powered board will require an external ISP (the Atmel AVRISP MKII was used for this hack, though any should work), but it’s otherwise pretty painless.

[zapta] has done an excellent job documenting the different components on the board, and reverse engineered enough of the critical aspects (such as the motor controller and proximity sensor) to write a new open source firmware which can be flashed to the GOJO LTX-7. Beyond allowing you to “Open Source All the Things”, using this new firmware does have some practical advantage in that you can configure how much soap is dispensed per activation. Going further, we’d be exceptionally interested in hearing about anyone who manages to come up with a firmware that enables some hitherto impossible soap dispensing trickery.

We’ve seen hacks involving dispensers of all types, from Halloween games that spit out candy to gadgets which let dogs get their own treats, but a soap dispenser hack is something truly new for us. More proof that there’s still plenty of hardware out there just waiting to be hacked!

Machine Learning On Tiny Platforms Like Raspberry Pi And Arduino

Machine learning is starting to come online in all kinds of arenas lately, and the trend is likely to continue for the forseeable future. What was once only available for operators of supercomputers has found use among anyone with a reasonably powerful desktop computer. The downsizing isn’t stopping there, though, as Microsoft is pushing development of machine learning for embedded systems now.

The Embedded Learning Library (ELL) is a set of tools for allowing Arduinos, Raspberry Pis, and the like to take advantage of machine learning algorithms despite their small size and reduced capability. Microsoft intended this library to be useful for anyone, and has examples available for things like computer vision, audio keyword recognition, and a small handful of other implementations. The library should be expandable to any application where machine learning would be beneficial for a small embedded system, though, so it’s not limited to these example applications.

There is one small speed bump to running a machine learning algorithm on your Raspberry Pi, though. The high processor load tends to cause small SoCs to overheat. But adding a heatsink and fan is something we’ve certainly seen before. Don’t let your lack of a supercomputer keep you from exploring machine learning if you see a benefit to it, and if you need more power than just one Raspberry Pi you can always build a cluster to get your task done just a little bit faster, too.

Thanks to [Baldpower] for the tip!

Lenses For DIY Augmented Reality Will Get A Bit Less Unobtainable

You may remember that earlier this year Leap Motion revealed Project North Star, a kind of open-source reference design for an Augmented Reality (AR) headset. While it’s not destined to make high scores in the fashion department, it aims to be hacker-friendly and boasts a large field of view. There’s also an attractive element of “what you see is what you get” when it comes to the displays and optical design, which is a good thing for hackability. Instead of everything residing in a black box, the system uses two forward-facing displays (one for each eye) whose images are bounced off curved reflective lenses. These are essentially semitransparent mirrors which focus the images properly while also allowing the wearer to see both the displays and the outside world at the same time. This co-existence of both virtual and real-world visuals are a hallmark of Augmented Reality.

A serious setback to the aspiring AR hacker has been the fact that while the design is open, the lenses absolutely are not off the shelf components. [Smart Prototyping] aims to change that, and recently announced in a blog post that they will be offering Project North Star-compatible reflective lenses. They’re in the final stages of approving manufacture, and listed pre-orders for the lenses in their store along with downloadable 3D models for frames.

When Leap Motion first announced their open-source AR headset, we examined the intruiguing specifications and the design has since been published to GitHub.  At the time, we did note that the only option for the special lenses seemed to be to CNC them and then spring for a custom reflective coating.

If the lenses become affordable and mass-produced, that would make the design much more accessible. In addition, anyone wanting to do their own experiments with near-eye displays or HUDs would be able to use the frame and lenses as a basis for their own work, and that’s wonderful.

Have Yourself A Recursive Little Christmas: Ornament That Prints Ornaments

Sure there are the occasional functional Christmas tree ornaments; we had one that plugged into the lights and was supposed to sound like a bird gently trilling its song, but was in fact so eardrum-piercing that we were forbidden from using it. But in general, ornaments are just supposed to be for looks, right? Not so fast — this 3D-printed ornament has a 3D-printer inside that prints other ornaments. One day it might just be the must-have in functional Christmas decor.

Given that [Sean Hodgins] had only a few days to work on this tree-dwelling 3D-printer, the questionable print quality and tiny print volume can be overlooked. But the fact that he got this working at all is quite a feat. We were initially surprised that he chose to build a stereolithography (SLA) printer rather than the more common fused deposition modeling (FDM) printer, but it makes sense. SLA only requires movement in the Z-axis, provided in this case by the guts of an old DVD drive. The build platform moves in and out of a tiny resin tank, the base of which has a small LCD screen whose backlight has been replaced by a bunch of UV LEDs. A Feather M0 controls the build stage height and displays pre-sliced bitmaps on the LCD, curing the resin in the tank a slice at a time.

Results were mixed, with the tiny snowflake being the best of the bunch. For a rush job, though, and one that competed with collaborating on a package-theft deterring glitter-bomb, it’s pretty impressive. Here’s hoping that this turns into a full-sized SLA build like [Sean] promises.

Continue reading “Have Yourself A Recursive Little Christmas: Ornament That Prints Ornaments”

Arduino And Pi Share Boardspace

A Raspberry Pi Zero (W) and Arduino are very different animals, the prior has processing power and connectivity while the latter has some analog to digital converters (ADCs) and nearly real-time reactions. You can connect them to one another with a USB cable and for many projects that will happily wed the two. Beyond that, we can interface this odd couple entirely through serial, SPI, I2C, and logic-level signaling. How? Through a device by [cburgess] that is being called an Arduino shield that supports a Pi0 (W). Maybe it is a cape which interfaces with Arduino. The distinction may be moot since each board has a familiar footprint and both of them are found here.

Depending on how they are set up and programmed, one can take control over the other, or they could happily do their own thing and just exchange a little information. This board is like a marriage counselor between a Raspberry Pi and an Arduino. It provides the level-shifting so they don’t blow each other up and libraries so they can speak nicely to one another. If you want to dig a bit deeper into this one, design files and code examples are on available.

Perhaps we’ll report on this board at the heart of a pinball machine retrofit, a vintage vending machine restoration, or maybe a working prop replica from the retro bar in Back to the Future II.