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”

This 6502 Made From 74-Series Logic Can Run At 20 MHz

If you always wished you could get closer to the hardware with the 6502 in your classic microcomputer you’re in luck, because [Drass] has created a beautiful implementation of a 6502 using TTL logic chips. What makes it special is that it sits on a very neat set of PCBs, and due to its use of 74AC series logic it can run at much higher speeds than the original. A 20 MHz 6502 would have been revolutionary in the mid-1970s.

Neat reworking of what looks to be a reversed bus.
Neat reworking of what looks to be a reversed bus.

Through a flying ribbon cable, it can plug directly into the 6502 socket on classic microcomputers, and the website shows it running a variety of software on a Commodore VIC20. There is also a custom SBC as part of the suite, so no need for a classic micro if you want to put the CPU through its paces. The boards are not quite perfect, the website has a picture of some very neat reworking where it appears that a bus has been applied to a chip in reverse, but it certainly has the feel of a professional design about it.

This is a very tidy 6502, but it’s not the first we’ve seen and neither is it the most dis-integrated. There is a fascinating world of 74 logic CPUs to be explored, so it’s difficult to pick only one other to show you.

Thanks [Jeff] for the tip.

Reflex Trainer Puts Athletes To The Test

Being a top athlete in this modern age is a full-time job. No longer do athletes simply practice at their nominated sport of choice. They undergo strength training, full nutritional programs, cardio, and even reflex training.

Reflex training involves a series of nodes that an athlete must identify when lit up, and touch them to switch them off. By triggering them in a fast sequence, the athlete must work hard to both identify the lit node and then move to switch it off. TrainerLights is just such a system, built around the NodeMCU platform.

The system consists of a minimum of four lights – one acting as a server, the others as nodes. The lights each contain a nodeMCU board which communicates over WiFi, while the server has an additional board – acting as a WiFi hotspot that controls the system.

With the lights switched on, the coach connects to the server with a smartphone, and configures the lighting sequence and timings depending on the desired excercise regime. The server then communicates with the lighting nodes, which light their LEDs  at specified intervals. The athlete must clear the lights by swiping at the nodes, which detect the athlete’s hand via an ultrasonic proximity sensor. The sensitivity is configurable, to allow the system to trigger from a distant wave or a direct touch from the athlete. This allows a variety of training uses, from tennis to taekwondo.

With a 3D printed case and parts readily available from any good maker supplier, it’s a project you could tackle in a weekend to add to your own training regime.

We see plenty of athletic hacks in these parts – like this line-following robot for training sprinters. Video after the break.

[Thanks to Baldpower for the tip!]

Continue reading “Reflex Trainer Puts Athletes To The Test”

Turn Old Pinball Parts Into A Unique Digital Clock

It’s getting ever harder to build a truly unique digital clock. From electronic displays to the flip-dots and flip-cards, everything seems to have been done to death. But this pinball scoring reel clock manages to keep the unique clock ball in play, as it were.

It’s not entirely clear whom to credit with this build, but the article was written by [Lucky]. Nor do they mention which pinball machine gave up its electromechanical scoring display for the build. Our guess would be a machine from the ’60s, before the era of score inflation that required more than the four digits used. And indeed, the driver for the display is designed so that a scoring unit from any pinball machine from the electromechanical era can be used. An ESP8266 keeps the time with the help of an RTC and drives the coils of the scoring unit through a bunch of MOSFETs. The video below shows that it wouldn’t make a great clock for the nightstand; thankfully, it has a user-configured quiet time to limit the not inconsiderable noise to waking hours. It also flashes the date every half hour, rings solenoid operated chimes, and as a bonus, it can be used to keep score in a pinball game built right into the software.

We like the idea of honoring the old pinball machines with clock builds like this. We’ve seen a word clock built from the back-glass of an old machine, and one that uses a four-player back to display the date and alarm time too.

Continue reading “Turn Old Pinball Parts Into A Unique Digital Clock”

How To Make A Pilotron, The Forgotten Tube

The vacuum tube is largely ignored in modern electronic design, save for a few audio applications such as guitar and headphone amps. The transistor is smaller, cheaper, and inordinately easier to manufacture. By comparison, showing us just how much goes into the manufacture of a tube, [glasslinger] decided to make a wire-element pilotron – from scratch!

To say this is an involved build is an understatement. Simply creating the glass tube itself takes significant time and skill. [glasslinger] shows off the skills of a master, however – steadily working through the initial construction, before showing off advanced techniques necessary to seal in electrodes, produce the delicate wire grid, and finally pull vacuum and seal the tube completely.

The project video is an hour long, and no detail is skipped. From 2% thoriated tungsten wire to annealing torches and grades of glass, it’s all there. It’s enough that an amateur could reproduce the results, given enough attempts and a complete shop of glassworking equipment.

The pilotron may be a forgotten design, but in 2018 it once again gets its day in the sun. Overall, it’s a testament to [glasslinger]’s skill and ability to be able to produce such a device that not only looks the part, but is fully functional on an electronic level, as well.

There’s a few people out there still building valves the old fashioned way, and we’d love to see more – tip ’em if you got ’em. Video after the break.

[Thanks to Morris for the tip!]

Continue reading “How To Make A Pilotron, The Forgotten Tube”

Mini Van De Graaff Is A Shocking Desk Toy

The Van De Graff generator is a device capable of generating potentially millions of volts of electricity which you can build in an afternoon, probably from parts you’ve got in the junk bin. This is not a fact that’s escaped the notice of hackers for decades, and accordingly we’ve seen several Van De Graaff builds over the years. So has high voltage hacker [Jay Bowles], but he still thought he could bring something new to the table.

The focus of his latest build was to not only produce one of the most polished and professional versions of this venerable piece of high voltage equipment, but also make it accessible for others by keeping the design simple and affordable. The final result is a 40,000 volt Van De Graaff generator that’s powered by two AA batteries and can fit in the palm of your hand.

Put simply, a Van De Graaff generator creates static electricity from the friction of two metal combs rubbing against a moving belt, which is known as the triboelectric effect. The belt is stretched between the two combs and passes through an insulated tube, which serves to “pump” electrons from one side to the other. The end result is that a massive charge builds up on the positive side of the Van De Graaff generator, which is all too willing to send a spark firing off towards whatever negatively charged object gets close enough.

The video after the break guides viewers through the process of turning this principle into a practical device, illustrating how remarkably simple it really is. A common hobby motor is used to get the belt going, in this case just a wide rubber band, and the rest of the components are easily sourced or fabricated. Even for what’s arguably the most intricate element of the build, the combs themselves, [Jay] uses nothing more exotic than aluminum foil tape and a piece of stranded wire splayed out.

Combined with the acrylic base and the purpose-made metal sphere (rather than using a soda can or other upcycled object), the final result not only generates healthy sparks but looks good doing it. Though if the final fit and finish isn’t important, you could always build one out of stuff you found in the trash.

Continue reading “Mini Van De Graaff Is A Shocking Desk Toy”

NTP Morse Code Clock Powered By ESP8266

We’ve featured a great many unique clocks here on Hackaday, which have utilized nearly every imaginable way of conveying the current time. But of all these marvelous timepieces, the Morse code clock has the distinct honor of simultaneously being the easiest to construct and (arguably) the most difficult to read. As such, it’s little surprise we don’t see them very often. Which makes this latest entry into the field all the more interesting.

[WhisleyTangoHotel] has taken the basic concept of the Morse clock, which at its most simplistic could be done with a microcontroller and single LED, and expanded it into a (relatively) practical device. With both audio and visual signaling, and support for pulling the time from NTP, this is easily the most polished Morse code clock we’ve ever seen. Using it still requires you to have a decent grasp on Samuel Morse’s now nearly 200 year old encoding scheme of course, but on the bright side, this clock is sure to help keep your CW skills sharp.

For those following along at home, [WhisleyTangoHotel] provides a hand-drawn diagram to show how everything connects together in his Morse timepiece, but there’s nothing on the hardware side that’s likely to surprise the Hackaday reader. A single momentary push button represents the device’s sole user input, with the output being handled by a LED “tower” and speaker on their own respective pins on the microcontroller. Here a Adafruit Feather HUZZAH is used, but any ESP8266 would work in its place.

Of course, the advantage of using an ESP8266 board over your garden variety MCU is the Wi-Fi connectivity. This allows the clock to connect to an NTP server and get the current time before relaying it to the user. Some might think this overkill, but it’s really a critical feature; the lack of a proper RTC on the ESP means the clock would drift badly if not regularly synchronized. Assuming you’ve got a reliable Internet connection, this saves you the added cost and complexity of adding an external RTC.

[WhisleyTangoHotel] wraps up his blog post by providing his ESP8266 Arduino source code, which offers an interesting example in working not only with NTP and time zones on the ESP, but how to handle parsing strings and representing their principle characters in Morse code.

Interestingly enough, in the past we’ve seen a single LED clock that didn’t use Morse code to blink out the time, which might be a viable option as an alternate firmware for this device if you’re not in the Samuel Morse fan club.

Continue reading “NTP Morse Code Clock Powered By ESP8266”