Winning Video Games By Letting Arduino Push Your Buttons

[Lars] shows you how to get a perfect score on the first four levels of BIT.TRIP RUNNER by using an Arduino to time and send button presses. This is a pretty simple game that uses a couple of buttons to jump or slide past obstacles. The constant speed of the character makes it quite easy to time these movements without any input from the game. This means that the pixel sampling which some web-game bots use isn’t really necessary here. Just work out the timing and hard-code it into the sketch. As you’ll see after the break, it works perfectly

The real value of this hack is the guide he wrote to send key presses from the Arduino hardware. It’s not hard at all, but there are several steps and this will get you up and running in no time. Where might you go from here? It wouldn’t take much to turn this into a keyboard prank that misspells all your words.

Continue reading “Winning Video Games By Letting Arduino Push Your Buttons”

Autonomous Metal Detector Lets You Sit Back, Get Rich

thunderbird7-autonomous-metal-detector

As a kid, metal detectors seemed like great fun. Every commercial I saw beckoned with tales of buried treasure “right in my own back yard” – a bounty hard for any kid to pass up. In reality, the process was both time consuming and tedious, with little reward to be had. [Gareth] liked the idea of scouring the Earth with a metal detector, but he liked sitting and relaxing even more. He decided he could easily partake in both activities if he built himself an autonomous metal detecting robot.

He stripped down a hand held metal detector, and installed the important bits on to the front of an R/C chassis. An Arduino controls the entire rig via a motor shield, allowing it to drive and steer the vehicle while simultaneously sweeping the metal detector over the ground. He fitted the top of the rover with a camera for remotely watching the action from the comfort of his patio, along with a laser which lets him pinpoint the location of his new found goods.

Continue reading to see a short video of the robot in action, and be sure to check out his site for more build details.

Continue reading “Autonomous Metal Detector Lets You Sit Back, Get Rich”

Flash An Arduino From An SD Card

[Kevin] has been working on reverse engineering the protocol used by the Arduino IDE and porting it to the Arduino platform. Now that his BootDrive project is nearing completion, he’s ready to give every Arduino the ability to program another Arduino over an SD card.

BootDrive isn’t terribly different from using an Arduino as an ISP, only now AVRdude runs on the Arduino itself and no computer is required to put new firmware into the target Arduino.  [Kevin] attached a MicroSD breakout board to an Arduino-compatible clone. When the clone starts up, it searches the SD card for a file called ‘program.hex.’ This file is sent over to the target Arduino and the new firmware is installed.

While it may not be extremely practical if you’ve only got a few Arduinos that never leave your workbench, we’re thinking this would be an invaluable tool if you need to update the software on a board already ‘in the field,’ serving as a weather station or homemade game camera. [Kevin] put up a demo of his BootDrive project; you can check that out after the break.

Continue reading “Flash An Arduino From An SD Card”

Wire Loop Game Penalizes For Touches By Shrinking Your Wand

We really like this take on a conductive wire maze game. It’s the result of a 48-hour hackathon in Belgium which required that all projects stemming from the event use an Arduino. We think [Jan] and [Kristof] made perfect use of the prototyping device in the time allotted. The event organizers thought so too because this took top prize.

As you can see, the gaming area is two-sided, and consists of some copper wire bent into a maze. There’s a wand made out of a PVC pipe with a loop of braided cable running through it. The loop surrounds the copper track and each player needs to get from the beginning to the end, touching checkpoints along the way without coming in contact with the track.

Pretty standard, right? Well there’s a twist. At each checkpoint the Arduino signals a servo motor in the wand to make the loop smaller. Add to that a penalty/reward system: if you touch the track, your loop gets smaller and your opponent’s loop grows larger. Don’t miss the head-to-head action after the break.

This reminds us of that wire-based cave racer from a few years back. Continue reading “Wire Loop Game Penalizes For Touches By Shrinking Your Wand”

AltSoftSerial Looks To Speed Up Arduino Software UART

So let’s say your using an Arduino in your project. You already have the hardware-based serial interface working with one portion of the project and need a second serial port for unrelated hardware. The obvious solution is to write one in software. But this is a place where working in the Arduino environment gets really hairy. Since there’s a layer of abstraction between the code and the hardware interrupts, it can be difficult to know if you are going to have timing problems. But there’s a new library available which seeks to reduce the latency of software-based serial communications so that you don’t have to worry about it.

It’s named AltSoftSerial because it is a software-based serial library that is an alternative to the NewSoftSerial package. The former can function with just  2-3 microseconds of latency, while the latter has as much as a 174 microsecond hit. If it functions as advertised that’s quite an improvement. It’s not hard to put together a hardware test platform, and the example program is only about a dozen lines of code (which is the beauty of working in this environment) so give it a try if you have a free hour here or there.

Monitoring Software Builds With A Traffic Light

[JD] at isotope11 was looking for a way to get instant feedback whenever a developer broke a piece of software they were working on. After finding a 48 inch tall traffic light, he knew what he had to do. Now, the entire development team knows the status of their code from a traffic light hanging in the corner.

isotope11 runs a continuous integration server to do the quality assurance on their software projects. It’s a lot more flexible than the ‘compile and pray’ setup we’re used to, but then again C isn’t very well suited to test-driven development. When one of [JD]’s developers breaks a piece of code, the CI server will send a warning to an Arduino where all the electronic magic happens.

To light the traffic light, [JD] used a few relays to drive the 120 volt bulbs in the traffic light. The traffic light is very easy to read – red means something is broken, green means everything is alright, and yellow means a test suite is being run.

Check out the video of [JD]’s TDD visualization after the break.

Continue reading “Monitoring Software Builds With A Traffic Light”

MIDI Controlled Speak-and-Spell

We all love the Arduino, but does the Arduino love us back? There used to be a time when the Arduino couldn’t express it’s deepest emotions, but now that [Nick] hooked up a speech synthesis chip from a Speak & Spell, it can finally whisper sweet robotic nothings to us.

The original 1980s Speak & Spell contained a fabulously high-tech speech synthesizer from Texas Instruments. This innovative chip predated [Stephen Hawking]’s voice and went on to be featured in the numerous speech add-ons for 80s microcomputers like the Apple II, BBC Micro, and a number of Atari arcade games.

[Nick] has been working on his Speak & Spell project for several months now, and he’s getting around to testing the PCBs he made. By his own admission, connecting an Arduino to a Speak & Spell is a little difficult, but he’s got a few tricks up his sleeve to get around the limitations of the hardware. The final goal of [Nick]’s project is a MIDI-controllable Speak & Sound speech synth for the Arduino. This has been done before, but never from a reverse-engineered Speak & Spell.

You can check out [Nick]’s progress in interfacing the Speak & Spell speech chip after the break. There’s still work to do, but it’s still very impressive.

Continue reading “MIDI Controlled Speak-and-Spell”