Writing And Running Atari 2600 Games In Your Browser

Here in 2024, writing new games for the venerable Atari 2600 game console is easier than ever, with plenty of emulators and toolchains to convert your code into ready-to-load ROMs. Yet what is easier than diving straight into 6502 assembly code without even having to download or set up a toolchain? That’s where [Henry Schmale]’s fully in-browser Atari IDE and associated emulator (using the Javatari project) comes into play.

As [Henry] explains in a blog post, the main goal was to get a project working in Emscripten, the LLVM-based toolchain to create WebAssembly binaries with. The target of this became DASM, the macro assembler for a range of 8-bit MPUs, including the 6502. In the blog post [Henry] describes the general procedure for how he compiled and integrated DASM, as part of creating the earlier linked Atari 2600.

In this IDE a number of example programs are provided, which can be selected, assembled and run in the integrated Javatari instance. Beyond this you can write your own custom 6502 ASM, of course, but at this point you may be interested in taking things further with the versatile Stella emulator that can even run on platforms which you’d be hard-pressed to get a browser running on, never mind Chromium.

Kites Fill Electricity Generation Gaps

Looking at a wind turbine from first principles, it’s essentially a set of wings that generate lift in much the same way an airplane wing does. Putting the wings on a rotor and calling them “blades” is not a huge step away from that. But there’s no reason the wing has to rotate, or for that matter be attached to a fixed platform, in order to generate electricity. Anything that generates lift can be used, and this company is demonstrating that with their kite-powered wind generators.

Like other wind energy producers that have used kites to generate electricity, this one is similar in that the kite is flown in a figure-8 pattern downwind where it can harness energy the most efficiently, pulling out a tether which is tied to a generator. When fully extended, it is flown to a position where the wind doesn’t strike the kite as strongly and the tether is reeled in. Unlike other kite generators we’ve seen, though, this one is offered as a turnkey system complete with battery backup and housed in a self-contained shipping unit, allowing it to be deployed quickly to be used in situations where something like a diesel generator would be impossible to get or where the fuel can’t be obtained.

The company, called Kitepower, does note that these aren’t replacements for traditional wind turbines and would be used more for supporting microgrids. There are still some advantages to using kites over fixed turbine blades though: kites can reach higher altitude where the wind is stronger, and they require less materials for a given amount of energy production, often making them even more environmentally friendly and possibly more economical as well. Surprisingly enough, kites can also be used to generate energy even in places where there’s no wind at all.

X-Ray CT Scanners From EBay, Brought Back To Life

If you have ever wondered what goes into repairing and refurbishing an X-ray Computed Tomography (CT) scanner, then don’t miss [Ahron Wayne]’s comprehensive project page on doing exactly that. He has two small GE Explore Locus SP machines, and it’s a fantastic look into just what goes into these machines.

CT scan of papyrus roll in a bamboo sheath.

These devices use a combination of X-rays and computer software to reconstruct an internal view of an object. To bring these machines back into service means not only getting the hardware to work correctly, but the software end (including calibration and error correcting) is just as important.

That means a lot of research, testing, and making do. For example, instead of an expensive calibration grid made from an array of tiny tungsten carbide beads, [Ahron] made do with a PCB laden with a grid of copper pads. The fab house might have scratched their heads a little on that one, but it worked just fine for his purposes and price was certainly right.

Scan of a foil Pokémon card from inside a sealed package.

Tools like these enable all kinds of weird and wonderful projects of their own. So what can one do with such a machine? CT scanning can spot fake AirPods or enable deeper reverse engineering than a regular workshop is normally able to do.

What else? Shown here is an old foil Pokémon card, from an unopened package! [Ahron] coyly denies having a pet project of building a large enough dataset to try to identify cards without opening the packs. (Incidentally, if you just happen to have experience with supervised convolutional neural networks for pix2pix, he asks that you please reach out to him.)

The real power of CT scanning becomes more apparent if you take a look at the videos embedded below the page break. One is a scan of an acorn, [Ahron]’s first successful scan. Another is an interesting scan of a papyrus roll in a bamboo sheath. Both of the videos are embedded below.

Continue reading “X-Ray CT Scanners From EBay, Brought Back To Life”

Read QR Codes Without A Computer

Did you ever watch Star Wars and wondered how people understood what R2D2 was saying? Maybe [Luke Skywalker] would enjoy learning to decode QR Codes by hand, too. While it might not be very practical, it would be a good party trick — assuming, like us, you party with nerds.

You can start by scanning a code, or the site will create one according to your specifications or generate one randomly. It then takes the selected code and shows you how it is put together. Fun fact: 21×21 “modules” (QR-speak for pixels) is the size of a version 1 QR code. Each version increases the size by four modules.

Continue reading “Read QR Codes Without A Computer”

Inside A Fake LM358

[IMSAI Guy] got some fake LM358 op-amps. Uncharacteristically, these chips actually performed well even though they didn’t act like LM358s. [IMSAI Guy] did a video about the fake chips and someone who saw it offered to analyze the part compared to a real LM358 to see what was going on. You can see it too in the video below.

A visual inspection made it obvious that the chip was probably a fake. X-ray analysis was a little less obvious but still showed poor quality and different internals. But the fun was when they actually decapsulated the part.

Continue reading “Inside A Fake LM358”

Switching Regulators For Dummies

We often use linear regulators in our designs. They are cheap and simple – you put the regulator chip itself on the board, add two capacitors, and get a voltage. Linear regulators are imperfect, of course – they can’t help but waste the voltage difference as heat, for a start, which straight up excludes them for high-current purposes, or significant voltage difference conversions, unless you have a hefty heatsink handy. They also can’t boost voltage, which means you can only go from high to low – a bit of a disappointment.

Of course, we haven’t been just throwing our hands up in the air if a linear regulator doesn’t fit our purpose. Switching regulators have none of these disadvantages, which is why your mobile phone alone has a few dozen of these. They are way more efficient and hi-tec, able to convert one voltage into another while losing hardly any power into heat. All that you need to do is switch an inductor at a somewhat high frequency!

However, for some, switching regulators might look a bit intimidating. They tend to have higher standards for board layout compared to linear regulators, and, they do need an inductor – sometimes, a few more components too. Inductors alone are somewhat intimidating components, with a fair few more parameters than we’d expect, and you might get confused when looking into adding a switching regulator to your circuit.

No more! In this article, I shall give you the switching regulator basics, remove any fog of war that might be clouding your vision, and show you just how easily you can get a good few amps at your favourite voltage whenever you need it. Continue reading “Switching Regulators For Dummies”

X-Ray Investigations Hack Chat

Join us on Wednesday, January 24 at noon Pacific for the X-Ray Investigation Hack Chat with Ahron Wayne!

It’s hard to imagine a world where we didn’t figure out how to use X-rays to peer inside things. Before Röntgen’s discovery that X-rays could penetrate living tissue, doctors had only limited (and often unpleasant) ways to get a look at what was going on inside the human body, and few of us would want to return to those days.

As fantastically useful as X-rays and later computed tomography (CT) became in medicine, it didn’t take too long for other uses for the technology to come along. Non-clinical applications for X-ray and CT abound, including their use in non-invasively exploring relics of immense archaeological value. One recent effort in this space that gained a lot of coverage in the press was the combination of CT imaging and machine learning to read the ink inside carbonized papyrus scrolls from the ruins of Pompeii.

join-hack-chatThe result was the “Vesuvius Challenge,” where different teams looked for techniques to virtually unwrap the roasted relics. Ahron’s contribution to the project was a little unusual — he bought a used desktop CT scanner, fixed it up, and started experimenting with reading ink from the carbonized remains of simulated papyrus scrolls. In other words, he made some scrolls, cooked them to beyond well-done in the oven, and tried to understand what happens to ink on papyrus that gets blasted by a volcano. If that’s not enough to get you to stop by the Hack Chat when Ahron joins us, we’re not sure what else would be! Suffice it to say we’re pretty excited about what Ahron has to say about DIY CT,  X-rays, collaborative open-source citizen science, and unwrapping the mysteries of Pompeii.

Our Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, January 24 at 12:00 PM Pacific time. If time zones have you tied up, we have a handy time zone converter.

Featured image: Daderot, CC0, via Wikimedia Commons