Two Player Space Invaders Via FPGAs

Last semester, [Peter], [Jared], and [Jeremy] took a course on embedded systems. They managed to turn out a very accurate copy of the classic Space Invaders in their class. Not wanting good code to go to waste, they decided to develop two player Space Invaders, and we wouldn’t mind testing it out.

The guys built their Space Invaders clone on a Virtex II dev board. Wanting a little more hardware development, they picked up a pair of RF trancievers so the two boards could communicate with each other. The rules of two-player Space Invaders is fairly simple; if you destroy an alien, there’s a 30% chance it will appear on your opponent’s screen. Hit the space ship that flies along the top of the screen, and 1 to 7 aliens will appear on the opponent’s screen. It’s a bit like two player Tetris where your victories bring about your friend’s downfall.

The guys put a really neat spin on an old game, and we’d love to try it out. Check out the guy on the left losing a game of Space Invaders to his lab partner after the break.

Continue reading “Two Player Space Invaders Via FPGAs”

Calculating Pi To 10 Trillion Digits; The Last Number Is 5

In August, 2010, [Alexander Yee] and [Shigeru Kondo] won a respectable amount of praise for calculating pi to more digits than anyone else. They’re back again, this time doubling the number of digits to 10 Trillion.

The previous calculation of 5 Trillion digits of Pi took 90 days to calculate on a beast of a workstation. The calculations were performed on 2x Xeon processors running at 3.33 GHz, 96 Gigabytes of RAM, and 32 Terabytes worth of hard drives. The 10 Trillion digit attempt used the same hardware, but needed 48 Terabytes of disk to store everything.

Unfortunately, the time needed to calculate 10 Trillion digits didn’t scale linearly. [Alex] and [Shigeru] waited three hundred and seventy-one days for the computer to finish the calculations. The guys used y-cruncher, a multithreaded pi benchmarking tool written by [Alex]. y-cruncher calculates hexadecimal digits of pi; conveniently, it’s fairly easy to find the nth hex digit of pi for verification.

If  you’re wondering if it would be faster to calculate pi on a top 500 supercomputer, you’d be right. Those boxes are a little busy predicting climate change, nuclear weapons yields, and curing cancer, though. Doing something nobody else has ever done is still an admirable goal, especially if it means building an awesome computer.

The International Obfuscated C Code Contest Is Back

The International Obfuscated C Code Contest is back. The stated goals of the IOCCC are to, “Write the most obscure C program, show the importance of programming style (by doing the opposite), stress the preprocessor to the breaking point, and illustrate some subtleties of the C language.” If you think you’re up to the task of abusing your compiler, check out the rules and guidelines for the contest.

There’s nothing quite like having the code for a flight simulator look like a plane, or calculating pi by measuring the area of C code. The submissions to the IOCCC are classic hacks; very clever things that shouldn’t work, but do despite themselves.

There hasn’t been an IOCCC competition since 2006, and no one knows if it will be around next year. We’ve already seen a few potential entries for this year, like piping chars into /dev/audio to generate a song and hyperlinks all the way down. If you’ve got something you’re working on, feel free to send it in.

via /.

Minibloq Arduino IDE Is In Beta And In Need Of Testers

minibloq_beta

If you have been chomping at the bit to give drag and drop Arduino programming a try, Minibloq is finally in Beta and ready for you to test!

We mentioned the application back in April of this year, when [Julián da Silva] was still in the early stages of developing the software. His graphical programming environment is meant to put the power of the Arduino and its derivatives into the hands of children in an easy fashion, with a gentle learning curve.

A lot has transpired since we first wrote about Minibloq, including a very successful Kickstarter campaign, along with many hours of programming and testing. The current Beta release includes a ton of features and programming “blocks” beyond what we saw earlier this year, so be sure to check out the video below for a quick tour of what’s new.

[Julián] says that the application’s source code will be released after they add a few key features, so keep an eye out for that if you’re interested in taking a peek under the hood.

Continue reading “Minibloq Arduino IDE Is In Beta And In Need Of Testers”

Laser Cut 3D Sculptures Remind Us Of An Old Playstation

[Paul] a.k.a. [VoidFraction] put up the source and documentation for his sculptures made with laser cut polygons.

For computing his triangles, [Paul] developed LcAgl, an algorithm that transforms a 3D model into the AutoCAD file needed to cut a whole bunch of triangles and connectors. This file was shot over to a laser cutter and after a confusing assembly, [Paul] can make just about any low polygon count model he wants.

For his sculptures, [Paul] uses Coroplast, a type of corrugated plastic commonly used in political campaign signs. Coroplast is lightweight and flexible, a bonus when [Paul] is fitting his triangles together. The connecting tabs are made from acrylic – a very rigid material, so the triangles are held tightly in place.

Since the models in most 3D games are just a bunch of polygons anyway, this technique reminds us of the first 3D console games. [Paul]’s rhino looks like it walked off the set of a low polygon game like Virtua Fighter or Jumping Flash!.

Video: Learning To Program For The ATmega328p Part I

Many of you are familiar with the Arduino. Many of you hate it…* This post isn’t about the Arduino. It is about the processor that is at the heart of many Arduino boards. If you are in the camp of people who can’t understand why others dislike the Arduino so much, this series is for you. In this series of videos, [Jack] will explore how to program for the ATmega328p processor using C. If you have been programming for the Arduino, you may have had some issues with the speed of your code at points. Programming in C will allow you to wring out nearly the last ounce of processing power that the ATmega processors can provide. It will also let you access the peripherals on the processor directly and to switch between different processors when you need more (or less) capabilities.

In this first video, [Jack] shows you all of the features of the 3pi robot, which he will be using as a fancy development board for the ATmega328p. He then shows you how to get your development environment set up and then walks you through one of the sample programs provided for the 3pi robot.

*Here at Hackaday, we are officially neutral in the ongoing Arduino love/hate war. We don’t care what microcontroller is used in the hacks that we show, only that they are cool.

Video is after the break!
Continue reading “Video: Learning To Program For The ATmega328p Part I”

Controlling Samplers And Sequencers With Multitouch

When we see artists like Daft Punk or Madeon working their magic in a live setting, we’re always impressed with their controllers. Sample-based artist use controllers like the Monome and Kaoss Pad a lot, but these devices are fairly expensive. Thankfully, we live in an age of multitouch displays, so [Graham Comerford] came up with his own multitouch controller that does just about anything.

The build is based on the Kivy framework and includes a Monome emulator, MIDI drum pads, mixer, and a whole bunch of other sliders and buttons. There’s no word on how [Graham]’s multitouch display was constructed, but if you’re looking to build your own gigantic audio control setup there’s a lot of info on building Microsoft Surface clones, adapting computer monitors, and spherical multitouch rigs.

We’re not sure if [Graham]’s virtual drum kit is velocity sensitive but even if it’s not, it’s an interesting bit of kit. Check out an earlier version of his setup after the break.

Continue reading “Controlling Samplers And Sequencers With Multitouch”