Minecraft Coming To Raspberry Pi

The folks over at the Raspberry Pi Foundation often gets asked “does it run Minecraft?” Mojang, the team behind the block building game, has announced that they will be releasing Minecraft: Pi Edition. This port will be based off the Pocket Edition of the game, but with a revised set of features.

So what does this have to do with hacking? Mojang has announced that the Pi Edition will have “support for multiple programming languages.” There aren’t too many details about what this support will entail, but it looks to be aimed at teaching programming by using the world of Minecraft.

Hopefully, it will be possible to interface with the RPi’s expansion header to allow external devices to get data and create objects in the Minecraft world. There’s a lot of potential for hacking and learning programming skills.

The best part? It will be a completely free download. We’re looking forward to the launch.

Abstracting Transistors Into High-level Design

Although it’s not the best way of understanding computers, most people tend to imagine electronic devices as black boxes filled with magic and blue smoke. Even microcontrollers, the most fundamental means of computation, are treated like little black plastic centipedes with metal legs. In a series of blog posts, [Andrew Gibiansky] is tearing down the walls of obfuscation and illuminating the world of transistors, gates, and FPGAs.

The first blog post goes over the idea of electronic circuits as a waterfall; a positive voltage is a reservoir on a mountain top and ground is sea level. This idea is extended to the lowly transistor acting as an electronic switch, able to turn a circuit on and off.

Continuing on to logic gates, [Andrew] covers the NOT, AND, and OR gates before moving on the flip-flops and SRAM. These can, of course, be modeled in Verilog and VHDL – programming languages that abstract the world of transistors and gates into a much more human-readable form.

[Andrew] is far from done with his series of blog posts, but judging from his work so far it seems to be a great resource for untangling the obtuse concepts of gates and memory into the coherent design of a computer.

USB Keyboard Becomes An AVR Programmer

[Steve] created an AVR programmer using an old USB keyboard. We feature a bunch of AVR programmers, but this one is made from parts that many people will have lying around. There are two components: the controller PCB from a USB keyboard, and an optocoupler for emulating key presses.

In order to send data to the AVR, [Steve] used the LED outputs on the keyboard. These LEDs can easily be toggled according to the HID device specification. They provide a 5 volt output with current limiting resistors, which means they can be connected directly to the target AVR.

Reading data is a bit more complex. The optocoupler tricks the keyboard into believing that a single key has been pressed, firing off a data transfer. The MISO pin on the AVR is connected to the row and column of the shift key, which is read by the driver.

On the software side [Steve] created an avrdude interface driver. This allows the programmer to be used with avrdude, just like any other programmer. [Steve] does point out that it isn’t the fastest programmer since the keyboard tries to debounce the MISO input, greatly limiting the speed. However, since it’s made from stuff you might have in your junk bin, it’s a neat hack.

Tiny MAME Cabinet Built From Raspberry Pi

It’s been a while since we’ve seen [Sprite_tm] pull a project from thin air, and we haven’t seen him do anything with a Raspberry Pi yet. All things must pass, and finally [Sprite] has unleashed his tiny, pocket-sized MAME machine to the world.

The build uses a Raspi for all the Linux-ey and MAME goodness, but [Sprite_tm] didn’t want to fiddle around with the HDMI or analog video output. Instead, he chose to use an SPI-controlled TFT display that is only 2.4 inches across. This isn’t a new hack for [Sprite] – he figured out how to connect this display over GPIO pins with a Carambola earlier this year.

To make his cabinet portable, [Sprite] opted for using old cell phone batteries with a cleverly designed charging circuit. When the power supply is connected to +5V, the batteries charge. When this power is removed, an ATtiny85 provides 5V of power to the Raspi and display.

No arcade cabinet is complete without a marquee of some sort, so [Sprite] used an extremely tiny 128×32 white OLED to display the logo of the game currently being played. Everything in the Raspi is set up to be completely seamless when switching between games, automatically configuring the controls and marquee for the currently selected game.

You  can check out [Sprite]’s mini MAME booting straight into Bubble Bobble after the break along with some gameplay footage and finally switching it over to Nemesis. A very awesome build from an exceedingly awesome maker.

Continue reading “Tiny MAME Cabinet Built From Raspberry Pi”

Flash Controller Works With Point And Shoot Cameras

Needless to say, there’s a world of difference between the expensive DSLR cameras professional photographers use and the point-and-shoot models carried by commoners. One such difference is the ability to use slave flashes – a second flash set off to the side of the subject for better illumination. Most of these slave flash units are triggered when they see a bright light, or when the on-camera flash goes off. Point and shoot models usually have a ‘pre-flash’ that cause a slave flash to trigger prematurely. [Kerry] built a really neat slave flash that is able to work with these point-and-shoot cameras, and is pretty easy to build as well.

There are two options when it comes to building a flash that can work with a point-and-shoot: First, measure the time between the pre-flash and real flash, and then simply delay the slave flash. This option has a few problems. Even when [Kerry] tested this technique on the same camera, the delay between the flashes were never consistant.

The second option is to simply ignore the pre flash and synchronize with the main flash. This is a little harder, but if done right this technique is nearly foolproof.

[Kerry] ended up building a small circuit out of a 556 timer chip and an LM339n comparator that turns itself ‘on’ just a little bit after it sees the pre flash. From there, the device looks for the main flash and triggers itself whenever it sees another bright source of light.

The finished product works beautifully, and is simple enough for just about anyone to build on a piece of perf board.

Making A Touchless Vibrator With Reverse Engineering

Here’s one for the ladies (and men, we guess) out there.

[Beth] recently bought a LELO Lyla vibrator for herself, but found operating this wireless vibrator to be an exercise in mood-killing awkwardness. Wanting a more natural interface, she decided to reverse engineer a remote control vibrator. Here’s a cache; [Beth]’s blog has been up and down all day.

The LELO Lyla comes with a wireless control in the form of a neon pink remote. [Beth] thought this remote was a little clunky and felt like programming a VCR – something she doesn’t like in a sex toy. With the goal of improving this remote and allowing for a better user experience, [Beth] tore down this remote and began to build her own.

The new vibrator remote would have to be touchless – there’s nothing that kills the mood faster than mashing buttons. By using ultrasonic sensors, [Beth] would be able to control the intensity of her vibrator by simply waving her hand; a much more natural interface. With the control interface out of the way, the only thing left to do was to figure out how to control the business end of the vibrator.

The remote for a stock LELO Lyla comes with a MSP430 microcontroller and a 2.4 GHz CC2500 radio controlled over an SPI interface. Instead of disassembling the microcontroller and figuring out the firmware from scratch, [Beth] decided to sniff the SPI bus and make her own controller.

After attaching some 0.1″ headers to the stock remote and soldering a few wires to the microcontroller, [Beth] captured the SPI data with a Propeller dev board. By streaming the SPI traffic to a terminal, she was able to figure out exactly how the remote works and set out on building her own.

The new remote was built out of an Arduino Pro Mini, ultrasonic sensor, CC2500 radio and a four digit 7-segment display. After printing an enclosure, [Beth] had a very easy to use, hands free vibrator.

In the video after the break you can see [Beth]’s vibrator in action. She’s still looking for a few more ways to improve it such as predicting the movements of her hand with a phase-locked loop, but for now we’ll just tip our hat to [Beth] for a very awesome hack.

Continue reading “Making A Touchless Vibrator With Reverse Engineering”

Beating A Plowshare Into An AK-47

[Boris] must have been a little bored over Thanksgiving. We’re guessing that’s the case; why else would he build an AK-47 out of a common garden shovel?

After buying an old shovel from an antique barn in Vermont, [Boris] cut off the handle an attached it to an old Bulgarian AK he had just lying around. The new stock proved to be very comfortable, and not wanting to waste the iron in the shovel head, decided to make an AK out of the remainder of his purchase.

After tossing the shovel head into the furnace and pounding it flat, [Boris] had a respectable piece of metal to construct an AK receiver from. A bit of plasma cutting, grinding, and drilling turned this former shovel into a future gun, and with the help of a blank barrel the shovel became an AK receiver that is twice as thick and twice as heavy as a ‘normal’ AK receiver. Yes, [Boris]’s new gun is even more indestructible than a stock AK – something that really shouldn’t be possible.

In the end, [Boris] spent $2 on a shovel, $30 on a barrel, and $200 on a Romanian AK kit. The result is an actual, working gun that is legal for him to own (but not sell – see the comments for that discussion).