A PCB with an Arduino Micro Pro, RCA connectors and a sub-D connector

Odd Inputs And Peculiar Peripherals: Using A Commodore Light Pen On A Modern(ish) Computer

If you worked with computers back in the 1970s, there’s a good chance you used a light pen at some point: a simple input device that you’d point at the CRT screen to highlight text, choose menu options or manipulate graphic objects. Although ubiquitous in those days, the light pen lost the battle for ergonomics to the humble mouse and was all but extinct by the late 1980s. Touchscreen styluses implement a similar function today, but touching the screen somehow doesn’t feel the same as simply pointing at it.

We therefore applaud [Maciej Witkowiak]’s efforts to bring the light pen into the 21st century by building a USB interface for a Commodore 64/128 light pen. At its heart is an Arduino Micro Pro that implements the USB HID protocol to communicate with any modern computer. It connects to the classic light pen as well as to the computer’s analog display signal and uses those to calculate the delay between the video synchronization pulses and the light pen’s output. The sync pulses are extracted from the video signal by an LM1881, a sync separator chip that will be familiar to anyone who’s worked with analog video signals.

The Arduino calculates the light pen’s position based on the measured timing intervals and reports it to the computer, using the absolute positioning mode that’s also used by things like drawing pads. [Maciej] demonstrates his system in the video embedded below, in which he uses it to operate the menus on an X window system. A great success then, although there’s one catch: light pens only work on CRT displays, so you’ll need to drag one of those big glass beasts out of storage if you want to try this yourself.

We’ve featured the Commodore light pen before in this odd gaming input device. A similar device built with a discrete LED matrix is a good illustration of the light pen’s working principle.

Continue reading “Odd Inputs And Peculiar Peripherals: Using A Commodore Light Pen On A Modern(ish) Computer”

The Origin Of The Fresnel Lens

If you are a Hackaday reader, you probably know what a Fresnel lens is. You find them in everything from overhead projectors to VR headsets. While it seems commonplace now, the Fresnel lens was an important invention for its day because it revolutionized maritime navigation and, according to a post over at IEEE Spectrum, that was the driving force behind its invention. In fact, the lens has been called “the invention that saved a million ships“.

The problem stems from issues in navigation. Navigating by the sun and the stars is fine, but not workable when you have heavy cloud cover, or other reasons you can’t see them. A lighthouse often marked an important point that you either wanted to navigate towards or, sometimes, away from.  Sure, today, we have GPS, but for a long time, a lighthouse was your best bet.

Continue reading “The Origin Of The Fresnel Lens”

Surprisingly Stomp-able Soft Switches

Competition sure brings out the brute in people, doesn’t it? So what do you do when you need a bunch of switches you can let people fist-pound or stomp on repeatedly without them taking damage? You could look to the guitar pedal industry and their tough latching switches, or you could simply build your own smash-resistant buttons as [wannabemadsci] has done.

The main thing about these switches is that they aren’t easily destroyed by shoes or angry fists. That’s because the shiny red push-me part of the button is made by cutting a foam ball in half.

Not easily crush-able Styrofoam, mind you — squishy, coated foam like an indoor football. This is mounted to the top of a sandwich made of hardboard and a couple pieces of easily-compressible foam from craft paintbrushes.

A brass washer is mounted to the middle of both pieces of hardboard, and these have wires soldered to them to read button presses. Then it’s just a matter of hooking it to a microcontroller like any other momentary.

There are all kinds of things you could cut in half for the top, like maybe tennis balls. Or, do what [Sprite_TM] did and use inverted plastic bowls.

The LackRack Enterprise Edition in Revspace, Netherlands

Rackmount Hardware Placement Issues? IKEA LACK To The Rescue!

[hackbyte] reminds us about a classic hack that, even though we’ve seen floating around for over a decade, has somehow never quite graced our pages before. Many of us keep small home labs and even, at times, collections of servers that we’d be comfortable be calling mini-datacenters. However, if you use the ever-abundant 19″ switches, servers and other hardware, keeping these mounted and out of the way can be a thorny experience. Which leads us to, undoubtedly, unintentional – but exceptionally handy – compatibility between IKEA LACK table series and 19″ rackmount hardware.

The half-humorous half-informative wiki page on Eth0Wiki talks about this idea in depth, providing a myriad of examples and linking to pages of other hackerspaces and entities who implemented this idea and improved upon it. These tables look nice and fit anywhere, stack neatly when not in use, and you can put a bottle of Club-Mate on top. Aka, they’re the exact opposite of cheap clunky cabinets actually designed for rackmount you can buy, and cost a fraction of the price. What’s not to love?

You can buy a whole lot of cheap hardware in 19″, and arguably, that’s where you can get the best hardware for your dollar. Many a hackerspace has used these tables for makeshift infrastructure, permanent in all but intent. So, in case some of us missed the memo, now you are aware of yet another, underappreciated solution for mounting all these servers we get for cheap when yet another company replaces its equipment – or undergoes a liquidation. If LackRack hasn’t been on your radar – what have you been using for housing your rackmount hardware collection?

Wondering what to do with an old server? Building a powerful workstation is definitely on the list. Alternatively, you could discard the internals and stuff it full of Raspberry Pi!

A purple PCB with many DIP chips including a 6502

Hackaday Prize 2022: Reuse Those DIP Chips To Make A 1980s-Style Single-Board Computer

With the Great Chip Shortage still delaying deliveries of new components, now might be a good time to look around your lab and inspect those piles of chips that you thought “might come in handy one day”. Chances are you’ll find a good stack of 74xx series logic, once ubiquitous but today mostly obsolete thanks to powerful microcontrollers and FPGAs. It would be a shame to let them go to waste, so why not use them to make a neat 1980s-style computer?

With this idea in mind, [Anders Nielsen] designed the ABN6502: a single-board computer based on the venerable 6502 processor, but with relatively modern interfaces like a VGA monitor output, a PS/2 keyboard connector and even a wireless module to simplify firmware uploads from a PC. One design requirement was to minimize the number of new components needed; the average hacker interested in building the ABN6502 will probably have many of the chips lying around somewhere in their workshop.

The component list reads like a typical bill of materials for a 6502-based computer, but comes with a lot of flexibility to allow for part subsititution. For the CPU, both the classic NMOS 6502 as well as the modern CMOS-based 65C02 are supported, along with their 6522 companion chip that provides I/O ports and timers. A ROM socket can hold either modern, fast flash chips or traditional but slow UV-erasable EPROMs.

Instead of using DRAM chips with their complicated refresh requirements, [Anders] went for 32 KB of SRAM to implement the main memory; unaffordable in the ’80s but easily available today. Standard 74xx series logic chips glue all the components together, again with several options to add or remove features as the user prefers. Pin headers bring out the I/O ports for easy connection to external peripherals.

The ABN6502’s software library is currently limited to a bootloader, but a complete development toolchain based on the CC65 compiler should make it easy to develop all kinds of programs on this platform. We’ve already featured the clever wireless ROM flashing system, as well as a demonstration of the 6502 driving RGB LEDs.

Continue reading “Hackaday Prize 2022: Reuse Those DIP Chips To Make A 1980s-Style Single-Board Computer”

A multi-PCB setup to drive a CRT vector monitor

Color Vector Display Controller Brings Arcade Classics Back To Life

If you’ve been reading Hackaday long enough, you’ve probably come across a few hacks where someone made simple animations or even video games on an analog oscilloscope screen. Those hacks generally use vector graphics, where the cathode ray tube’s electron beam directly draws geometric shapes onto the screen. This gives the image a unique look that’s quite distinct from the pixel-based raster displays used on TVs and most computer monitors.

Vector displays were also used in several arcade machines of the early 1980s, including classics like Tempest, Gravitar and Star Wars. In order to emulate these games more faithfully than would be possible on a raster monitor, [Robin Champion] designed the vstcm: a color vector monitor controller to easily drive RGB vector monitors.

Star Wars (1983) displayed on CRT monitorThe design is based on [Trammell Hudson] and [Adelle Lin]’s v.st system, and therefore features a Teensy microcontroller as well as a couple of digital-to-analog converters. While the v.st can only connect to monochrome X/Y systems like oscilloscopes, the vstcm can work with RGB monitors to allow near-perfect emulation of color vector-based games. A custom software interface connects the vstcm to AdvanceMAME, a special version of the well-known arcade emulator that facilitates the connection of unusual display systems.

The end result definitely looks the part, although [Robin] notes that performance is not at the level it could be and requests those familiar with the Teensy platform to help optimize the code. If you’d like to build the vstcm but can’t find a vector monitor, you can always modify the yoke of a conventional CRT. Want to learn more about vector displays? Check out this thorough introduction.

The 512 Gigabyte Floppy Disk

There are times when a technology goes almost overnight as if in a puff of smoke, and others when they fade away gradually over time to the point at which their passing is barely noticed. So it is with removable media, while we still have the occasional USB flash disk or SD card , they do not come anywhere near the floppies, Zip disks, and CD-ROMs of the past in their numbers or ubiquity. If the floppy disk is just a save icon to you there’s still the chance to experience their retro charm though, courtesy of [Franklinstein]. He’s made a 3.5″ floppy disk that eschews 720 k, 1.44 M, or even 2.88 Mb, and goes all the way with a claimed 512 Gb capacity. We’re sure we can’t remember these from back in the day!

Of course as we can see in the video below he’s achieved neither an astounding feat of data compression nor a bleeding-edge method of storing bits in individual iron oxide molecules. Instead the floppy hinges open, and there’s a holder for micro SD cards where the disk itself would be. It’s a bit of fun, and we have to agree with him that it makes a very handy holder for micro SDs that can carry that much data. This sets us wondering though, whether it would be possible to somehow multiplex 14 micro SDs to a microcontroller on a PCB that could fit in a floppy shell. Perhaps an ESP32 could be a slow file server through a web interface?

He makes the point that 512 Gb of floppies would comfortably exceed the height of the tallest buildings were they stacked together, so at the very least this represents a space saving. If you’re looking for something slightly more functional and don’t mind modifying the drive, there’s always this classic approach to marrying a floppy with an SD card.

Continue reading “The 512 Gigabyte Floppy Disk”