Clustering A Lot Of Raspberry Pi Zeros

It became something of a cliché a few years ago in online discussions, whenever a new single board computer was mentioned someone would pop up and say something like “Imagine a Beowulf cluster…“. Back then it was said largely in jest, but with the current generation of boards it’s a distinct possibility. Who hasn’t looked at a Raspberry Pi and idly thought about a cluster of them, or even created one!

[Electronoob] did just that, creating a variety of Raspberry Pi cluster configurations, the most impressive of which is a stack of 32 Pi Zeros mounted together with stand-offs. The plan was to network it via USB, for which he initially considered building a backplane, but was put off by the cost of vertical USB connectors and instead went for a wired approach. If there is a lesson to be learned from his experiences it is that buying very cheap USB cables is a minefield: his pile of eBay specials turned out to have significant numbers of faults. He’s now faced with a stark choice, solder  32 sets of USB pads on the base of each Zero or buy better cables.

The stack of Zeros is pretty impressive, but so what, you think. It’s still not working properly. But the Zero cluster isn’t his only work. He’s also created a set of very nicely executed Ethernet clusters using the larger Pi boards, and the way he’s mounted them on top of compact Ethernet switches sets them apart from some of the more spaghetti-like Pi clusters.

It’s true a Pi cluster won’t cut it in the world of supercomputers, you could almost certainly buy more bang for your buck without too much effort. But it does represent a very accessible way to learn about cluster computing, and you have to admit it a stack of Zeros does look rather impressive.

We’ve seen quite a few Pi clusters here since 2012, the biggest of which is probably this 120 node behemoth, complete with screens.

Hackaday Prize Entry: AutoFan Saves Tired Drivers With Face Recognition

Long distance driving can be tedious at times. The glare of the sun and the greenhouse effect of all your car’s windows make it hot and dry. You turn on the fan, or air conditioning if you have it, and that brings relief. Soon enough you’ve got another problem, the cold dry air is uncomfortable on your eyes. Eventually as you become more tired, you find yourself needing the air on your face more and more as you stay alert. You thus spend most of the journey fiddling with your vents or adjusting the climate controls. Wouldn’t it be great if the car could do all that for you?

AutoFan is a project from [hanno] that aims to automate this process intelligently. It has a fan with steerable louvres, driven by a Raspberry Pi 2 with attached webcam. The Pi computes the position of the driver’s face, and ensures the air from the fan is directed to one side of it. If it sees the driver’s blink rate increasing it directs the air to their face, having detected that they are becoming tired.

The build logs go into detail on the mathematics of calculating servo angles and correcting for camera lens distortion in OpenCV. They also discuss the Python code used to take advantage of the multicore architecture, and to control the servos. The prototype fan housing can be seen in the video below the break, complete with an unimpressed-looking cat. For those of you interested in the code, he has made it available in a GitHub repository.

Continue reading “Hackaday Prize Entry: AutoFan Saves Tired Drivers With Face Recognition”

Chair Dances Like No One Is Watching

Although it might be more accurate to say that this chair dances because no one is watching, the result is still a clever project that [Igor], a maker-in-residence at the National Museum of Decorative Arts and Design in Norway, created recently. Blurring the lines between art, hack, and the ghosts from Super Mario, this chair uses an impressive array of features to “dance”, but only if no one is looking at it.

In order to get the chair to appear to dance, [Igor] added servo motors in all four legs to allow them to bend. A small non-moving dowel was placed on the inside of the leg to keep the chair from falling over during all of the action. It’s small enough that it’s not immediately noticeable from a distance, which helps maintain the illusion of a dancing chair.

From there, a Raspberry Pi 3 serves as the control center for the chair. It’s programmed in Python and runs OpenCV for face detection and uses pigpio for controlling the leg servos. There’s also a web interface for watching the camera’s output and viewing its facial recognition abilities. The web interface also allows a user to debug the program. [Igor]’s chair can process up to 3 frames per second at 800×600 pixels.

Be sure to check out the video after the break to see the chair in action. It’s an interesting piece of art, and if those dowels can support the weight of a person it would be a great addition to any home as well. If it’s not enough chair for you, though, there are some other more dangerous options out there.

Continue reading “Chair Dances Like No One Is Watching”

Hacklet 125 – DIY Laptops

In the old days of the 1970’s, the only way to get your own computer was to build one from scratch. Thanks to an army of hackers like [Woz], PC’s are no commodity objects that can be bought for a couple of hundred dollars. The magic of building your own still is there though – especially when we’re talking about portable machines. Laptops, notebooks, netbooks take quite a bit of skill to assemble. Stuffing a keyboard, screen, and battery into a small clamshell case takes a bit of planning. Our last look at DIY laptops was exactly 100 Hacklets ago, so it’s time for a refresh. This week we’re checking out some of the best DIY laptops and portable computers on Hackaday.io!

piberryWe start with [Sahas Dinesh Chitlange] and Pi-Berry Laptop. [Sahas] found just the right mix of simple and elegant with this build. A Raspberry Pi 2 is the brains of the operation. The Pi sits in a case built from a mix of MDF and regular wood. The display is a 10.1″ HDMI LCD. The keyboard was pulled from a tablet case. Power was easy — a USB power bank provides enough for 4-5 hours of runtime. [Sahas] covered his laptop in Italian leather for a polished look. He planned out his parts layout well enough that the power-hungry Pi stays cool without a fan.

pivenaNext up is [Tim] with PIvena. [Tim] took his inspriation from [Bunnie Huang’s] Novena open laptop. Rather than roll his own ARM board, [Tim] went with a Raspberry Pi. His original design was for the Raspberry Pi model B. Last time we looked at PIvena, the model B+ was still pretty new. As we hoped, [Tim] modified his design to accept the new Pi layouts. This means it will physically work with the B+, Pi 2, and Pi 3 boards. [Tim] didn’t stop there though. He also upgraded from an 800 x 480 LCD to an 1200 x 800 LCD. He managed to do that while keeping the same bolt pattern on the travel cover. Nice work [Tim]!

elloNext we have [KnivD] with ELLO 2M. The most striking thing about ELLO 2M is the construction. The entire laptop is made from 6 PCBs which sandwich all the other parts. The keyboard is PCB material with keys routed out. The processor is a Microchip PIC32MX470-120. Software is loaded from one of 3 microSD cards. The 7 inch touchscreen LCD and 4500 mAh LiPo battery are nestled in between PCB layers. A true hacker, [KnivD] included a generous pin grid for debugging add-on circuits. The whole setup looks great with white silkscreen. As [Mark Sherman] mentioned in the comments, this machine reminds us of a modern-day TRS-80 Model 100.

pipdaFinally we have [pdrift86] with Mini rpi2 laptop. Palmtop might be a better name for this. [pdrift86] took his inspiration (and his keyboard) from the old HP Jornada Personal Digital Assistant (PDA). The housing is Masonite, cut from a clipboard. A Raspberry Pi 2 hides inside, along with a 4 cell 18650 Li-Ion battery. The screen is a 5″ LCD with a composite input. The display isn’t a touchscreen, so a Playstation Portable analog stick is on-board, and will eventually be connected for mouse control. [pdrift86] even managed to sneak the Pi camera on the back of his machine, so it can take pictures cellphone style.

If you want to see more DIY laptop projects, check out our new DIY Laptops notebooks, and portables list. Notice a project I might have missed? 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!

Raspberry Pi Plays All That Jazz

[James Bellafaire] wanted a good looking old radio with a modern sound. Granted, you could hollow the case out and replace it with an iPod. Or you could convert the thing to an Internet radio. But where’s the fun in that?

[James] took a different approach. Part woodworking project, part Raspberry Pi project, and part microcontroller project, he wound up with a hard drive-based music player in a 1930’s case with knobs that control the playback.

Continue reading “Raspberry Pi Plays All That Jazz”

Landscape Lighting That Also Texts

Your local hardware store or garden supply center probably has everything you need to install landscape lighting all around your property. What’s a little less likely is coming out of that situation with fewer holes in your wallet than in your yard. And even then, it’s pretty much guaranteed that any off-the-shelf equipment won’t send you a text message when your landscape lighting isn’t working properly. [Mark]’s landscape lighting system does, though!

Powered by a Raspberry Pi, this landscape lighting system has every feature imaginable. It can turn the lighting on at sunset and turn it off at a set or random time later in the evening. There’s a web interface served from the Pi that allows further user control. The Raspberry Pi also monitors the lighting and can sense when one of the lights burns out. When one does, the Pi uses Twillo to send a text message notification.

There’s not many more features we can imagine packing into a setup like this. Of course, if you don’t have a spare Pi around you can probably manage to get the job done with an ESP8266, or even an old-fashioned Arduino.

Raspberry Pi Radio Streaming Service Guts Yamaha Shelf System

There are dozens — dozens! — of options to meet your music and streaming needs these days.  Looking to make something of his own that retains that 90’s vibe of having a dedicated stereo system but with modern wireless integration, [thk4711] turned an old Yamaha hifi into a Raspberry Pi streaming client.

As far as the case goes, a few modifications allowed [thk4711] to use all of the existing buttons, and a quick-swap of the back-plate and screen gave him a better enclosure than one he could fabricate himself. The power supply proved to be the most difficult part of the project due in part to some “digital noise” interference between the digital and analog components while they were wired to a common ground. This was solved by implementing two transformers, a LM2596 voltage regulator and a LT1084 low-noise power supply to smooth things out.

The Raspberry Pi 2-centered device supports internet radio, Spotify connect, Airplay, USB and auxiliary inputs.

Continue reading “Raspberry Pi Radio Streaming Service Guts Yamaha Shelf System”