Multibooting The Raspberry Pi

berryboot

Those of us have been dual booting Linux, Windows, and OS X operating systems for a while will be familiar with bootloaders such as GRUB and its ilk. Surprisingly, though, we haven’t seen a bootloader for the most popular computer of the last year – the Raspberry Pi. It makes sense to have a bootloader for the Raspberry Pi; with dozens of different distributions from Raspbian, Occidentalis, and a bunch of  more esoteric distros, we’re surprised we’re only just now seeing a proper bootloader for the Raspi.

Berryboot is extremely simple to install – just copy it onto a FAT formatted SD card and you can install multiple OSes on your Raspberry Pi. On booting, Berryboot shows a dialog box of all the installed operating systems, with new ones able to be installed over the internet from a Berryboot menu.

You can grab Berryboot over on the gits. Berryboot also works with those Allwinner A10 single board computers, but the Hackaday tip line hasn’t seen hide nor hair of those boards.

Retro Gaming Just In-case

retro-gaming-just-in-case

You can look and look, but you won’t find a Super Nintendo inside of this retro gaming rig. [Webrow] is giving his vintage hardware a rest, and taking this all-in-one game emulator suitcase wherever he goes.

The machine at the heart of his build is of course a Raspberry Pi. You really can’t beat the ubiquitous board for cost, power, and hardware extensibility. An LCD panel from a broken laptop comes along for the ride having been mounted in the lid. For a long time there was no hope for reusing these panels, but [Webrow] found an adapter board (for nearly the same price as the RPi) which converts the DVI from the Pi to the LVDS needed by the screen. The connections and mounting scheme for the screen were where most of the project work was done. Connecting the controllers simply involved soldering some SNES controller sockets to an RPi breakout connector. We do have to compliment him on the red bezel which hides all of the power cords and other unsightly bits. The case look sturdy and ready to play!

Playing With The Minecraft API And A Raspberry Pi

mine

It hasn’t been a week since Minecraft for the Raspberry Pi has been released, and already we’re seeing some cool builds that bridge our analog world with Minecraft voxel land. [Martin] got his hands on the Raspi version of Minecraft and decided to take advantage of the API Mojang threw into the build by making a huge analog block clock that keeps real world time in the Minecraft universe.

Basically, [Martin] created a small Python script that draws the face and hands of a clock in a Minecraft world. The Minecraft API comes with neat functions such as drawCircle, and drawLine, so making a real clock face is as simple as getting the system time and doing a bit of trig.

After the break you can check out [Martin]’s Minecraft clock in action. If you’re running the Pi version of Minecraft, you can also get this running on your machine with the code on [Martin]’s git.

Continue reading “Playing With The Minecraft API And A Raspberry Pi”

Raspberry Pi As A Plug-in Hash Harvester

plug-in-hash-harvesting

Plug in the power and Ethernet and this Raspberry Pi board will automatically collect Windows hashes from computers on the network. With a couple of RPi boards on hand [Travis] was searching for more hacks to try with them. This made a great little test to see how the board performs with the well established attack.

To start he booted into the standard Raspbian distribution. From there he loads the Metasploit framework which brings most of the necessary tools into play. It uses the Web Proxy Auto-Discovery Protocol (WPAD)  to request hashes from any Windows machines listening on the network. Some version of the OS respond with LM hashes, others don’t. The importance of this and the particulars of using rainbow tables to crack the hashes is explained in this article on the subject.

We wouldn’t mind having a little hardware hack that adds a couple of LEDs to the GPIO header so you know when the RPi is done collecting the data.

Hacking A Coffee Machine For A Better Brew

Senseo coffee makers are automated brewers that use coffee pods. [Ronald] had one, but wasn’t satisfied with the quality of the coffee it produced. His solution was to hack it apart and build his own automatic coffee machine with the innards.

The coffee brewing part of the system is controlled by an ATmega8. This reads the temperature using the NTC sensor from the original machine and actuates the various parts of the Senseo machine, and the added grinder. The timing was all done by trial and error, optimizing for the best cup of coffee.

Keeping with the trend of adding Raspberry Pis to everything, [Ronald] connected one to this build for remote control. He runs a very hacked version of LCD2USB which deals with communicating with the RPi. An Apache web server hosts a PHP script to provide a user interface, which runs a C program to tell the system to start brewing.

Unfortunately, [Ronald] didn’t give us a link to his web interface, so we can’t remotely brew him coffee. However he did provide all of the source for the project in his write up.

Minecraft For RPi Released

Minecraft for RPi

Mojang, the folks behind Minecraft, have officially released Minecraft: Pi Edition. This free version of the popular game is optimized to run on the Raspberry Pi hardware, and has an API that exposes the game’s internals to a variety of programming languages.

Mojang intends this release to be an educational tool for teaching and learning programming. Since the API provides instant feedback in the game, it could be an interesting way to make learning to code fun for people of all ages.

Having access to the API on a RPi also means that the game can be connected to the real world. For example, using Python and the RPi.GPIO, pins on the GPIO header can be used for output or input. This creates a slew of possible hacks that interface with the game.

Any ideas on what you’d like to do with Minecraft on a RPi? Let us know in the comments. Also, we coincidentally just printed a minecraft pick on our 3d printer. There’s a time lapse video of it after the break!

Continue reading “Minecraft For RPi Released”

Better PWM On The Raspberry Pi

pi

[Thomas] wanted to play around with a few high-power LEDs and a RaspberryPi. LED controllers usually require some form of PWM to change the brightness of a LED, and unfortunately the Pi only has one PWM pin. [Thomas] could have gotten around this with a custom chip or even an Arduino hanging off the Pi’s USB port. He opted to go with software-based PWM, and did so in a way that is far superior to bit banging a pin.

Conventional wisdom says PWM without a real-time operating system is dumb – right up there with starting a land war in Asia. Turning a pin on and off in a while loop will eat up all the processor power in the Pi, so [Thomas] looked for a better way to do things. He came across the ServoBlaster project by [Richard Hirst] that creates pulses of different lengths by playing with direct memory access; [Richard] created a circular buffer that is read every 10μs. With 2000 values in the buffer, he can control eight different pins with very little impact on CPU usage.

For [Thomas], though, [Richard]’s project wasn’t enough. It was originally written for servos and is only able to drive PWM pins up to about 12%. A quick rewrite of [Richard]’s code allowed [Thomas] to control eight pins with PWM varying from 0% to 100% – and be able to do other things with his Pi in the process.

[Thomas] now has a 40 Watt RGB LED powered by a Raspberry Pi burned into his retina, and the satisfaction of a really clever way of giving the Pi more PWM pins.