Softly To Sleep, My Raspberry Pi

For all their capacity, shutting down a Raspberry Pi can be a bothersome routine depending on how you have it set up — historically and abrupt cut to the power risks corrupting the SD card. [madlab5] had to make a few changes to a Pi running in headless mode, requiring them to access it externally to shut it down to prevent any damage from pulling the plug. So, why not take the opportunity to whip up a soft shut-down switch?

This is a great beginner project to get one accustomed to working with a Pi. With this in mind, [madlab5] went through two revisions of this idea: the simple way, and the fun way. For the simple way just press the button and the Pi activates a script which shuts it down in thirty seconds. Job done. But, realizing there may be a few circumstances where they’d need more functionality, [madlab5] decided to take a second swing at this.

[madlab5]’s fun way involves a button with a built-in LED and a speaker to blare an announcement that the Pi will self destruct shut down after a short time. Setting the switch up this way takes a little more doing, but you get to add a little more character to your Pi with a custom shutdown report, as well as the option to cancel an accidental button-press.

For any newbies out there, [madlab5] is kind enough to provide their code and diagrams in their blog post. If remotes are more your thing, we have also featured a similar beginner project to shut down your Pi.

[via /r/Raspberry_Pi_Projects]

We Dig This LEGO Excavator Conversion

[Frank] was lucky enough to score a bucket wheel excavator LEGO set as a birthday present, and we won’t lie – we’re jealous. However, out of the box, the kit is somewhat limited; there is only one motor to animate the entire machine and it can’t be fully remote controlled. But don’t worry — [Frank] set out to change that (Google Translation).

The first part of the build was to add motors to control the different functions of the excavator. One motor was added for each of the two tracks to allow the machine to drive forwards, backwards, and turn. Two more motors were added to raise and lower the digging buckets, and spin the tower. Finally, the original motor was left in place to turn the conveyor.

With that done, [Frank] then used a Raspberry Pi 3 to control all the hardware, being sure to house the new electronics in LEGO for an original look. The Raspberry Pi might be a lot of muscle to simply control a few motors, but it made it quick and easy for [Frank] to implement a Wiimote as a controller over Bluetooth. You can check out a couple demo videos in his most recent update.

It’s a great project, and we’d love to see the Raspberry Pi put to good use by allowing control over the Internet so we can dig in the sand over lunch breaks. We’ve seen some great LEGO hacks before, like this method of modifying cheap gear motors to work with LEGO parts.

Daily Prophet Is A Magic Newspaper! (Kinda)

A few gadgets around the house make for excellent display and conversation pieces, but when an artifact from the wizarding world finds its way into a muggle household? Well, you frame it.

Okay so in reality this is really an animated picture frame with a Harry Potter theme — specifically the fabulous newspaper, The Daily Prophet, from the series of novels and movies. Conceived by [Piet Rullins Jr.] after a trip to ‘The Wizarding World of Harry Potter’ attraction at Orlando Studios, he wanted an inventive way to showcase the videos of his vacation.

The seven inch display is secured inside a poster frame, surrounded by a customized front page of the wizard paper — weaving the tale of his trip — and controlled by a Raspberry Pi 3. When someone approaches, an Adafruit infrared sensor detects the movement and activates the display, shutting it off after five minutes in order to preserve the screen and save power. A USB power cable hidden inside the cabinet it’s mounted on adds to the effect of a magical periodical. What, did you think it was powered by magic too?

Continue reading “Daily Prophet Is A Magic Newspaper! (Kinda)”

Australian Raspberry Pi Tutorials

There’s a new and very detailed video tutorial about the Raspberry Pi available from the Australian firm Core Electronics.  There are 30 videos and 5 chapters in total. A few of the introduction videos are short, but the detail videos range from 3 to 16 minutes.

The instructor [Michael] starts out at the very beginning — loading NOOBS on the Pi — and then moves on to Python, shell scripting, and building GUI applications with TkInter. It also covers using Particle Pi for IoT applications that integrate with IFTTT.

We do realize that most people reading Hackaday have probably used a Raspberry Pi at least once or twice. However, we also know that we all get asked to recommend material for beginners, or — in some cases — we are using material to teach classes in schools or hackerspaces.

Continue reading “Australian Raspberry Pi Tutorials”

Retro-Styled Raspberry Pi Radio

Ok, so you want a radio — but not just any radio. It has to be wireless, access a variety of music services, and must have a vintage aesthetic that belies its modern innards. Oh, and a tiny screen that displays album art, because that’s always awesome. This 1938 Emerson AX212-inspired radio delivers.

Building on the backbone of a Raspberry Pi Zero W and an Adafruit MAX 98357 mono amp chip, the crux of this single-speaker radio is the program Mopidy. Mopidy is a music player that enables streaming from multiple services, with the stipulation that you have a premium Spotify account. Once signed up, [Tinkernut] helpfully outlines how to set up Mopidy to run automatically once the Pi boots up. The addition of a screen to display album art adds flair to the design,  and Adafruit’s 1.8″ TFT LCD screen is small enough to fit the bill.

But wait — there’s more!

Continue reading “Retro-Styled Raspberry Pi Radio”

Building A K9 Toy

[James West] has a young Doctor Who fan in the house and wanted to build something that could be played with without worrying about it being bumped and scratched. So, instead of creating a replica, [James] built a simple remote controlled K9 toy for his young fan.

K9 was a companion of the fourth Doctor (played by Tom Baker) in the classic Doctor Who series. He also appeared in several spin-offs. A robotic dog with the infinite knowledge of the TARDIS at hand, as well as a laser, K9 became a favorite among Who fans, especially younger children. [James] wanted his version of K9 to be able to be controlled by a remote control and be able to play sounds from the TV show.

Using some hand-cut acrylic, [James] built K9’s body, then started on plans for the motion control and brains. [James] selected the Raspberry Pi Zero for the controller board, a Speaker pHat for the audio, a couple of motors to move K9 around, and a motor controller. K9 is controlled by a WiiMote and has a button on his back to start pairing with the WiiMote (K9 answers with “Affirmative” when the pairing is successful.) When it came to the head, [James] was a little overwhelmed by trying to make the head in acrylic, so he got some foam board and used that instead. A red LED in the head lights up through translucent red acrylic.

It’s a great little project and [James] has put the Python code up on Github for anyone interested. We’ve had a couple of robot dog projects on the site over the years, like this one and this one.

Continue reading “Building A K9 Toy”

Testing The Outernet Dreamcatcher SDR

What do you get when you cross an ARM-based Linux PC and an RTL-SDR? Sounds like the start of a joke, but the answer is Outernet’s Dreamcatcher. It is a single PCB with an RTL-SDR software defined radio, an L-band LNA, and an Allwinner A13 processor with 512MB of RAM and a 1 GHz clock speed. The rtl-sdr site recently posted a good review of the $99 board.

We’ll let you read the review for yourself, but the conclusion was that despite some bugs, the board was no more expensive than pulling the parts together separately. On the other hand, if you uses, for example, a Raspberry Pi 3, you might expect more support and more performance.

Despite the L-band hardware, there is a bypass antenna jack that allows you to receive other frequencies. There’s also two SD slots, one to boot from and another for storage. Several pieces of software had trouble running on the somewhat sluggish CPU, although some software that is optimized for the particular processor used fared better. You can read the details in the review.

The board is interesting, although unless you have a special packaging problem, you are probably as well off to combine a Pi and a dongle, as we have seen so many times before. If you have more horsepower you can even make the Pi transmit, although we’d suggest some filtering if you were going to do that for real.