Mineable Minecraft Block

At Hack A Day, we’re pretty big Minecraft fans so you can imagine our interest when we saw [Ben Purdy]’s real-life Minecraft block. The build uses a projector system to display a block onto a cardboard box and reacts to being ‘mined’ just like in the game.

Block animation is handled by a piezo sensor, an Arduino and a Processing sketch. From earlier posts on [Ben’s] blog, we’re going to guess that he used the keystone video projection library his own solution to map the Minecraft block onto the cardboard box. Animation is handled just as in Minecraft – overlaying the breaking animation onto the block and adding some particle effects.

We’ve seen a few Minecraft hacks before, like using it as a 3D design tool, and connecting your redstone CPU to the outside world. [Ben]’s build follows in the tradition of its forebears and is something we really want to try out. Check out the demos after the break.

Continue reading “Mineable Minecraft Block”

BASIC Programming On An Arduino

[Mike] sent in a project he’s been working on – a port of a BASIC interpreter that fits on an Arduino. The code is meant to be a faithful port of Tiny BASIC for the 68000, and true to Tiny BASIC form, it fits in the very limited RAM of the Arduino.

True to Tiny BASIC’s assembler roots, [Mike]’s C port makes extensive use of the “infinitely-abusable” goto statement. Kernighan and Ritchie said themselves, “code involving a goto can alway be written without one” but [Mike] found that using goto left a lot more room available for BASIC code. The BASIC interpreter eats up around 600 bytes in the Arduino RAM, leaving about 1.4 kB for BASIC code. Not much, but more than the lowest-end BASIC Stamp.

[Mike] says he started this project to see how ‘old bearded ones’ conjured up so many impressive programs with a few kB of RAM. Tiny BASIC was originally conceived for the Altair 8800 that shipped with 256 bytes of RAM stock, so it seemed like a perfect fit. Right now, all we know is we’ll be spending the weekend digging through our copies of Dr. Dobb’s Journal.

arduino_bootloader_burner

A Beginner’s Guide To Burning Arduino Bootloaders

When it comes to learning about microcontrollers, everyone has to start somewhere. [Lady Ada] recently posted a tutorial on burning the Arduino bootloader to standalone chips for those just getting started with the micro.

The tutorial cites a common situation, where someone is working on a project using an Arduino chip but they don’t want to sacrifice their dev board when just the micro and a few other components would do just fine. A short list of supplies is required, including an Arduino, a proto shield kit, a ZIF socket, and a blank ATmega chip.

The process is probably pretty straightforward and likely familiar to many of you out there. The ZIF socket is soldered to the board and handful of wires are added for powering and programming the new chip. The protoboard is installed on top of the Arduino like any other shield, and using a sketch that [Lady Ada] has made available, the bootloader burning process is a cinch.

It’s a useful tip for newcomers, and definitely a skill that seasoned Arduino users should have under their belts as well.

Wireless Fiber Optic Mood Lighting

ceiling_mounted_starfield

There’s something calming about looking up into the night sky and seeing an array of shining stars off in the distance. [Marou] is a big fan of stargazing, but sometimes conditions are not optimal, so he decided to bring the stars inside.

His idea was to build a ceiling lamp that didn’t bask the room with light, but rather one that reproduced the peaceful twinkle of the night sky. He covered a wooden table with dark fabric and drilled a ton of tiny holes into the surface. He fitted the holes in the table with two big bundles of optical fibers since one bundle couldn’t quite cover the entire thing.

To light the cables, he built a pair of 4-LED illuminators, which contain red, blue, green, and white LEDs. Each light source is controlled via an Arduino which takes its direction from [Marou’s] infrared remote.

While the idea isn’t new, the implementation is pretty cool. At first we were expecting a small lamp, but anchoring an entire table to the ceiling as a light panel is definitely something we hadn’t seen before.

If you want to build something similar in your own living room, [Marou’s] Arduino code is free for the taking.

Burning Man: Pirate Ship Sports Arduino Powered Flame Sails

The 2011 Burning Man festival starts in just a few short days, and with that we have an excellent mutant vehicle accessory that no insane desert dweller should be without. An Arduino powered fire cannon sequencer! [Paul] was asked by Lostmachine’s [Andy] to spice up the flame effects on their Priate Ship mutant vehicle and provide a cool looking fire show that represented the ship’s sails.

[Paul] tossed together a hand full of arcade buttons, switches, and an LCD display to control eight 12V Solenoid valves tasked with switching on various regulated propane sources that throw some brutal looking flame effects. The controller combines a Teensy 2.0 with a custom board that contains eight P-channel MOSFET circuits. Flyback from the coils is handled through zener diodes, and the IRFR5305s are sized quite above and beyond what is needed for the 12v solenoids. With the heat, dust, and chaos of the desert one can’t be too careful. [Paul] even tosses in RC snubber circuits just to prevent things from getting too out of hand. Of the twelve arcade buttons eight are used for manual over rides, and the remaining four arcade buttons, knobs, switches, and the LCD display are all connected to the Teensy to handle the sequencing. [Paul], sadly, will not be able to make it out to Burning Man to troubleshoot the sequencer, which is a cause for some concern throughout the build.

It just so happens that I leave for Burning Man this Friday, and have an 18″ by 18″ Hackaday QR Code that will mark my area, see if you can find me out there! Also check out a video of the sequencer controlling what is easily a 6 foot flame bar after the jump!

Continue reading “Burning Man: Pirate Ship Sports Arduino Powered Flame Sails”

All Your I/O Pins Belong To ArduinoDashboard

arduino_dashboard

So if you’re knee deep in an Arduino-based project and you want to constantly monitor all of the micro’s pins, what’s the best way to go about it? [Jonathan Clark] from LVL1 in Louisville was looking to keep a closer eye on his board and whipped up an application he calls ArduinoDashboard.

Programmed in Processing, the application gives you a look at all of your Arduino board’s analog and digital pins in a simple to use display. All that’s required to run the application is a bit of code inserted at the top of your sketch, which can be called anywhere in your program’s loop. Once the code snipped is called, all of the board’s pins are read and the data is sent to your PC.

ArduinoDashboard is still very much in beta at the moment, but it looks to be stable enough for everyday use. [Jonathan] has plenty of improvements and new features in mind, so be sure to check back often to see what’s changed.

[via Adafruit Blog]

Tree Climbing Bot Climbs Tree

To test his new skills with his Arduino, [Ben] decided that he would build a robot. With no particular need to fill other than the need to build something cool he chose to build himself a tree climbing robot. He designed the body of the robot in Google Sketchup before beginning the build. The body is made mainly from aluminium, with four motors for the gripping legs and one for the spine. [Ben] controlled the motors with the familiar L298 motor driver chip and measured their position and speed using some cleverly mounted potentiometers.  The robot can climb trees of varying diameter by using the speed of the motors driving the legs to determine when the tree has been gripped.

[Ben] was then kind enough to write up a full instructable describing the build, this project includes a bit of everything, from motor control and liner drives to tips on creating a robot frame; a good read for someone wanting to get into robotics. Also check out the video after the break to see the robot in action.

Continue reading “Tree Climbing Bot Climbs Tree”