AI Bot Plays Castlevania So You Don’t Have To

We’re not allowed to have TV here in the Hackaday Wonder Bunker, but occasionally we’ll pool together the bandwidth credits they pay us in and gather ’round the old 3.5 inch TFT LCD to watch whatever Netflix assures us is 93% to our liking. That’s how we found out they’ve made a show based on, of all things, one of the Castlevania games for the NES. We wanted to play the game to understand the backstory, but since it hails from the era of gaming where primitive graphics had to be supplemented with soul-crushing difficulty, we didn’t get very far.

But thanks to a very impressive project developed by [Michael Birken] maybe we’ll have it all figured out by the time we’ve saved enough credits to watch Season 2 (no spoilers, please). The software, which he’s quick to point out is not an example of machine learning, is an attempt to condense his personal knowledge of how to play Castlevania into a plugin for the Nintaco NES emulator. The end result is CastlevaniaBot, which is capable of playing through the original Castlevania from start to finish without human intervention. You can even stop and start it at will, so it can play through the parts you don’t want to do yourself.

[Michael] started this project with a simple premise: if he could make a bot successfully navigate the many levels of Dracula’s castle, then getting it to kill a few monsters along the way should be easy enough. Accordingly, he spent a lot of time perfecting the path-finding for CastlevaniaBot, which included manually playing through the entire game in order to get an accurate map of the background images. These images were then analyzed to identify things like walls and stairs, so the bot would know where it could and couldn’t move protagonist Simon Belmont. No matter what the bot is doing during the game it always considers where it is and where it needs to be going, as there’s a time limit for each stage to contend with. Continue reading “AI Bot Plays Castlevania So You Don’t Have To”

Friday Hack Chat: Everything About The ESP

When the ESP-8266 first arrived, it was a marvel. For two dollars, you could buy a simple module that could serve as a bridge between WiFi networks and microcontroller projects. It understood the Hayes command set, it didn’t use much power, and, as noted before, it only cost two dollars. The idea of cheap and accessible Internet of Things things was right there for the taking.

Then hackers figured out what was actually going on inside the ESP-8266. It was a full-blown microcontroller. There was Lua stuff you could put on it. You could program it with the Arduino IDE. It had WiFi. This was the greatest microcontroller release in the last decade, and it came from a company no one had ever heard of.

Since then, the ESP ecosystem has bloomed, and there’s a new ESP on the block. The ESP-32 is an even more powerful WiFi and Bluetooth-enabled chip that’s just as easy to program, and it costs three dollars. Microcontrollers have never been cooler.

For this week’s Hack Chat, we’re going to be talking all about the ESP. Our guest for this Hack Chat should need no introduction, but if you’re unfamiliar, [Sprite_tm] plays video games on his keyboard and has installed Linux on a hard drive. He also works at Espressif, the company behind the ESP-8266 and ESP-32, where he’s applied his skills towards tiny Game Boys and miniature Macs.

During this week’s Hack Chat, we’re going to be covering everything about the ESP, including peripherals, ultra-low power consumption, SIP packages, and what’s coming up for the ESP family. You are, as always, welcome to submit your questions for [Sprite]; just add those as a comment on the Hack Chat page.

join-hack-chat

Our Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. [Sprite]’s in China, so we’re not doing this one at the usual time: This week, the Hack Chat will happen at 7:00 am, Pacific, Friday, March 9th. Want to know what time this is happening in your neck of the woods? Have a countdown timer!

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

Jeroen Domburg Miniaturizes A Mac

His name may not ring a bell, but his handle will — Sprite_tm, a regular to these pages and to Hackaday events around the world. Hailing from The Netherlands by way of Shanghai, Jeroen Domburg dropped by the Hackaday Superconference 2017 to give a talk on a pet project of his: turning a Macintosh into, well, a pet.

You could say this is Jeroen’s second minification of vintage hardware. At last year’s Hackaday Superconference, he brought out the tiniest Game Boy ever made. This incredible hardware and software hack stuffs a complete Game Boy into something you can lose in your pocket. How do you top a miniature version of the most iconic video game system ever made? By creating a miniature version of the most iconic computer ever made, of course.

The tiny object in front of Jeroen in the title image is, in fact, a working Macintosh Plus that he built. Recreating mid-80’s technology using 2017 parts seems like it would be easy, and while it’s obviously easier than breaking the laws of physics to go the other direction, Jeroen faced some serious challenges along the way, which he goes into some detail about in his talk.

Continue reading “Jeroen Domburg Miniaturizes A Mac”

Credit Card Sized Spacecraft Poised To Sail To Alpha Centauri

As a space-faring species, we’ve done a fair job of exploring and exploiting our local neighborhood. We’re pretty good at putting people and machines into orbit, but our galactic-scale signature is pretty tiny. Our radio signals are no more than 100 light-years away, and our farthest physical artifact isn’t even a light-day away from us 40 years after it launched.

Clearly we need to do a better job of getting out there, and that’s the goal of Breakthrough Initiatives’ Starshot program, which aims to launch a nano-spacecraft to Alpha Centauri and get it there fast. The program aims to build solar-powered credit card-sized spacecraft with sensors, cameras, communications, and even MEMS thrusters for attitude control. Motive power will come from solar sails catching laser light shined onto it from Earth, eventually accelerating the craft to 20% of the speed of light and reaching its destination within a generation.

The thought that we could start spreading ourselves out into the galaxy within the lifespan of most of the people on Earth is intoxicating. Sure, a wafer of silicon is a far cry from a sleek starship with powerful warp engines and all the finest appointments, or a gritty star freighter that can make the Kessel Run in less than 12 parsecs. But the laws of physics and the limits of engineering conspire to keep us mostly stuck at the bottom of a deep gravity well, and if this means sending fleets of nanobots across the galaxy in our stead, so be it.

And no matter what form our first galactic spacecraft take, you can bet that the Deep Space Network will be supporting the mission. For now, you can listen in on the program’s test satellites currently in orbit if you tune to 437.240 MHz.

Continue reading “Credit Card Sized Spacecraft Poised To Sail To Alpha Centauri”

Two Words That Don’t Mean What You Think They Do

sprites_enhanced_stripWhen you hear “gravity waves” or “sprites”, you’d think you would know what is being discussed. After all, those ripples in space-time that Einstein predicted would emanate from twin, colliding, black holes were recently observed to much fanfare. And who doesn’t love early 8-bit computer animations? So when we were browsing over at SpaceWeather we were shocked to find that we were wrong twice, in one photo (on the right). Continue reading “Two Words That Don’t Mean What You Think They Do”

Building The Infinite Matrix Of Tamagotchis

Tamagotchi is a digital pet, living in and cared for through a key-chain size piece of hardware. The mid-90’s toy lives in pop culture, but now it lives well beyond. A limitless network of Tamagachi has been created using some amazing tricks to feed, socialize, and monitor the beast now known as the Tamagachi Singularity.

Last weekend at the Hackaday SuperConference we were graced with a talk by [Jeroen Domburg], a.k.a. [Sprite_tm]. [Sprite] is a favorite of ours and over the years his hacker cred includes everything from reverse engineering hard drive controller chips to putting video games in his keyboard.

[Sprite] is also something of an Architect, and like all Architects he only wants what is best for the system he created. In this case, it’s a Matrix of Tamagotchis. [Sprite] created a hive of Tamagotchis that are able to interact with each other in their own separate world. The best part about this Matrix? There’s no allusions to violating the laws of thermodynamics in the exposition.

xkcd.com/1546
xkcd.com/1546

Like all good hacks, a Tamagotchi Matrix wasn’t created in a vacuum. A few years ago at 29C3, [Natalie Silvanovich] dumped the ROM in the current generation of Tamagotchis. This is an incredible feat of reverse engineering, that allows anyone to use the full capabilities of the 6502-based microcontroller that controls these digital pets

After [Sprite] figured out how to read and run the code in the Tamagotchi, the next obvious step towards a world of egg-shaped pods containing an entire population of Tamagotchis is virtual Tamagotchis. [Sprite] used a hard-coded state machine that takes care of pooping, flushing, training, feeding, and turning the lights off at bedtime.

With a single Tamagotchi described as a state machine, it’s a simple matter to build another. This is where things get interesting and Matrix-ey. Tamagotchis don’t live alone; they have an IR LED and receiver that allows them to interact with each other, eat, play, marry, and have kids. Emulating a single Tamagotchi is one thing, but controlling multiples is another thing entirely; some sort of protocol was needed to breed Tamagotchis and keep them happy and well-fed.

Continue reading “Building The Infinite Matrix Of Tamagotchis”

Building A Steam Punk Style Time And Weather Display

This is [Pierre Cauchois’] digital weather display. Since weather displays are ubiquitous in this day of smart phones in every pocket he went out of his way to give it a unique look. He started with a wooden voltmeter case, swapping the ancient display for a modern LCD screen.

He used Gadgeteer components for the retrofit. The images for the LCD are stored on an SD card and displayed on demand. Since the digital bezel will be the same no matter what the time or environmental conditions [Pierre] used the power of the .NET framework that drives the system. He made up an image using magenta for all of the dial openings. This way a sprite can be used just for the changing numbers, weather icon, and graphing area.

Looking at all that went into coding the project we think the Gadgeteer components are perfect for those that are well-versed in upper-level languages and don’t really want to deal with low-level microcontroller issues.

[Thanks George]