Arduino Asteroids

[nootropic] has a new game out for hackvision, “Asteroids”! We covered the hackvision back when it first started appearing in October of 2010, and hardware wise it has not changed. It is still an Arduino (software) compatible system sporting a atmega328, video and audio out connections (uses the TV-out library), all on a nice printed circuit board that, with the buttons, resembles a game controller.

While its impressive enough to run arcade inspired games like space invaders, pong, and tetris while using Arduino and a library, Asteroids takes the game up a notch.

Features that make Asteroids well, Asteroids include a mod of the TV-out library so that bitmaps can fly over each other without erasing the pixels under them to give that old time vector arcade feel, and “point in polygon” style collision detection, which is a fantastic / efficient way of collision detection against irregular shapes, limited platform or not.

Last but not least, [nootropic] used the set_vbi_hook() function of the tv out library in sound design, going from simple “beeps” and “boops”, to “beeps” and “boops” on a constant 60Hz refresh (in the case of NTSC) that allows him to build more complex sound effects that give a nice arcade sound of explosions and laser blasts.

Join us after the break for a quick video, and remember, this is Arduino based so if you already have an Arduino, you can add the supporting hardware (buttons, resistors, and RCA jacks) and run any of the games currently offered, or make your own.

Continue reading “Arduino Asteroids”

Composite Video With MSP430 Chip

[NatureTM] used part of the Thanksgiving holiday to get composite video output working with an MSP430 microcontroller. He’s using one of the chips that came with the TI Launchpad, which is a big hardware limitation because of the relatively small code memory and RAM. The chip displays one still image at a resolution of 192×40 pixels. Still, this is a great way to learn about composite video signals, as a lot of other projects use a TVout library to save you the headaches. All you’ll need is a TI Launchpad, a 16 MHz crystal oscillator, two resistors, and an RCA jack. Dig through the code and see what a great job [NatureTM] did of offloading as much work onto the chip’s peripherals as possible.