QuickBASIC Lives On With QB64

When I got my first computer, a second hand 386 running MS-DOS 6.22, I didn’t have an Internet connection. But I did have QuickBASIC installed and a stack of programming magazines the local library was throwing out, so I had plenty to keep myself busy. At the time, I thought QuickBASIC was more or less indistinguishable from magic. I could write simple code and compile it into an .exe, put it on a floppy, and give it to somebody else to run on their own machine. It seemed too good to be true, how could this technology possibly be improved upon?

Of course, that was many years ago, and things are very different now. The programming languages du jour are worlds more capable than the plodding BASIC variants of the 80’s and 90’s. But still, when I found a floppy full of programs I wrote decades ago, I couldn’t help but wonder about getting them running again. With something like DOSBox I reasoned I should be able to install the QuickBASIC IDE and run them like I was back on my trusty 386.

Unfortunately, that was not to be. Maybe I’m just not well versed enough in DOSBox, but I couldn’t get the IDE to actually run any of the source code I pulled off the floppy. This was disappointing, but then it occured to me that modern BASIC interpreters are probably being developed in some corner of the Internet, and perhaps I could find a way to run my nearly 30 year old code without having to rely on 30 year old software to do it. Continue reading “QuickBASIC Lives On With QB64”

ESP-01 Bridges The Gap Between IR And WiFi

[Emilio Ficara] dropped us a line recently about his efforts to drag his television and receiver kicking and screaming into the modern era. His TV is old enough that it needs an external tuner, which means it requires two separate remotes to properly channel surf. He wanted to simplify the situation, and figured that while he was at it he might as well make the whole thing controllable over WiFi.

To begin the project, [Emilio] had to capture the IR signals from the two remotes he wanted to emulate. He put together a quick little IR receiver out of parts he had in the junk bin which would connect up to his computer’s microphone port. He then used an open source IR protocol analyzer to capture the codes and decode them into hex values.

As a proof of concept he came up with a little device that combines an ESP-01 with an ATmega88. The ESP-01 runs a minimal web server that receives hex codes as URL query strings. These hex codes are then interpreted by the ATmega88 and sent out over the IR LED. [Emilio] notes that driving the IR LED directly off of the ATmega pin results in fairly low range of around one meter, but that’s good enough for his purposes. If you want to drive the IR LED with more power, you’ll need to add a transistor to do the switching.

Passing the hex code 0x0408 to turn off the TV

Now that he can decode the signals from his original remotes and transmit them over WiFi via his bridge device, he has all the groundwork he needs to come up with a streamlined home entertainment controller. A native application for his smartphone or perhaps a minimal web interface is the last piece of the puzzle.

This project reminds us of a similar attempt at controlling legacy IR devices from a smartphone via Bluetooth. If you’re looking for more information about wrangling IR signals from your microcontroller, this primer from 2013 is still a great look at the subject.

Invasion Of The Tiny Magnetic PCB Vises

[Proto G] recently wrote in to share a very slick way of keeping tabs on all the tiny PCBs and devices that litter the modern electronics workbench. Rather than a big bulky PCB vise for each little board, he shows how to make tiny grippers with magnetic bases for only a couple bucks each. Combined with a sheet metal plate under an ESD mat, it allows him to securely position multiple PCBs all over his workspace.

The key to this hack is the little standoffs that are usually used to mount signs to walls. These already have a clamping action by virtue of their design, but the “grip” of each standoff is improved with the addition of a triangular piece of plastic and rubber o-ring.

With the gripping side of the equation sorted, small disc magnets are glued to the bottom of each standoff. With a suitable surface, the magnets are strong enough to stay upright even with a decently large PCB in the jaws.

An especially nice feature of using multiple small vises like this is that larger PCBs can be supported from a number of arbitrary points. It can be difficult to clamp unusually shaped or component-laden PCBs in traditional vises, and the ability to place them wherever you like looks like it would be a huge help.

We’ve recently covered some DIY 3D printed solutions for keeping little PCBs where you want them, but we have to say that this solution looks very compelling if you do a lot of work on small boards.

Continue reading “Invasion Of The Tiny Magnetic PCB Vises”

Tiny Guitar Amp Rebuilt With Tiny Tubes

[Blackcorvo] wrote in to tell us how he took a cheap “retro” guitar amplifier and rebuilt it with sub-miniature vacuum tubes. The end result is a tiny portable amplifier that not only looks the part, but sounds it to. He’s helpfully provided wiring schematics, build images, and even a video of the amplifier doing it’s thing.

Detail from the circuit diagram

The original Honeytone amplifier goes for about $26, and while it certainly looks old-school, the internals are anything but. [Blackcorvo] is too much of a gentleman to provide “before” pictures of the internals, but we looked it up and let’s just say it doesn’t exactly scream high quality audio. Reviews online seem to indicate it works about as well as could be expected for an amplifier that costs less than $30, but this is definitely no audiophile gear.

Powering up the miniature vacuum tubes takes a bit of modern support electronics, including a buck converter to provide the high voltage for the tubes as well as a 6V regulator. The plus side is that the new circuit can power the tubes from an input voltage between 12 and 30 volts, meaning the amplifier can still be powered by batteries if you want to take it on the go.

We’ve seen some fantastic tube amplifier builds over the years, proving that some things never go out of style. If you’d like to learn more about the magic that lets these little tubes of hot pixies make beautiful music, the US Army has you covered.

Continue reading “Tiny Guitar Amp Rebuilt With Tiny Tubes”

Milspec Teardown: CP-142 Range Computer

As some of my previous work here at Hackaday will attest to, I’m a big fan of World War II technology. Something about going in with wooden airplanes and leaving with jet fighters and space capable rockets has always captivated me. So when one of my lovingly crafted eBay alerts was triggered by something claiming to be a “Navy WWII Range Computer”, it’s safe to say I was interested.

Not to say I had any idea of what the thing was, mind you. I only knew it looked old and I had to have it. While I eagerly awaited the device to arrive at my doorstep, I tried to do some research on it and came up pretty much empty-handed. As you might imagine, a lot of the technical information for hardware that was developed in the 1940’s hasn’t quite made it to the Internet. Somebody was selling a technical manual that potentially would have covered the function of this device for $100 on another site, but I thought that might be a bit excessive. Besides, where’s the fun in that?

I decided to try to decipher what this device does by a careful examination of the hardware, consultation of what little technical data I could pull up on its individual components, and some modern gear. In the end I think I have a good idea of how it works, but I’d certainly love to hear if there’s anyone out there who might have actually worked with hardware like this and could fill in any blanks.

Continue reading “Milspec Teardown: CP-142 Range Computer”

Rejecting Microsoft’s Phaseout Of The Kinect

You might not be aware unless you’re up on the latest gaming hardware, but Microsoft is trying to kill the Kinect. While the Xbox One famously included it as a mandatory pack-in accessory at launch (this was later abandoned to get the cost down), the latest versions of the system don’t even have the proprietary port to plug it in. For a while Microsoft was offering an adapter that would let you plug it into one of the console’s USB ports, but now even that has been discontinued. Owners of the latest Xbox One consoles who still want to use the Kinect are left to find an adapter on eBay, where the prices have naturally skyrocketed.

Recently [Eagle115] decided to open up his Kinect and see if he couldn’t figure out a way to hook it up to his new Xbox One. The port on the Kinect is a USB 3.0 B female, but it requires 12V to operate. The official Kinect adapter took the form of a separate AC adapter and a “tap” that provided the Kinect with 12V over USB, so he reasoned he could pop open the device and provide power directly to the pads on the PCB.

[Eagle115] bought a 12V wall adapter and a USB 3.0 B cable and got to work. Once the Kinect was popped open, he found that he needed to supply power on pin 10 (which is helpfully labeled on the PCB). There’s just enough room to snake the cable from the AC adapter through the same hole in the case where the the USB cable connects.

With the Kinect getting 12V from the AC adapter, the Xbox has no problem detecting it as if you were using the official adapter. At least for now, they haven’t removed support for the Kinect in the Xbox’s operating system.

The Kinect has always been extremely popular with hackers (it even has its own category here on Hackaday), so it’s definitely sad to see that Microsoft is walking away from the product. The community will no doubt continue pulling off awesome hacks with it; but it’s looking increasingly likely we won’t be getting a next generation Kinect.

[via /r/DIY]

The Fine Art Of Acid Etching Brass

If you were building a recreation of the James Watt micrometer, where would you start? If you’re [rasp], the answer would be: “Spend a year trying to find the best way to make etched brass discs.” Luckily for us, he’s ready to share that information with the rest of the world. While it’s rather unlikely anyone else is working on this specific project, the methods he details for getting museum-quality results on brass are absolutely fascinating.

The process starts with sanding down the bare brass and applying a layer of clear packing tape to the metal. [rasp] then covers the piece with LaserTape, which is a special tape designed to make laser-cut masks for sandblasting. But the masking principle works just as well for painting or chemical etching.

With the LaserTape in place, the piece is then put into the laser and the mask is cut out. Once cut, there’s the tedious task of peeling off all the cut pieces of tape, which [rasp] does with a dental pick. Once the pieces are pulled off, the brass is ready for its acid bath.

Anyone who’s etched their own PCB with ferric chloride will recognize these next steps. The piece is put into the acid bath and agitated every 10 minutes or so. It’s interesting to note that [rasp] places the piece in the bath upside-down, using little 3D printed “feet” to suspend the brass sheet off the bottom of the container. This allows the debris from the etching process to fall down and away from the piece. After about an hour out in the sun, the piece is pulled out of the bath and carefully washed off.

Once clean off, the piece is sprayed with black spray paint to darken up the etched areas. The moment of truth comes when the paint has dried and the layers of tape are carefully peeled back to reveal the etching. [rasp] then wet sands the piece with 1000 and 2000 grit paper, and a final pass with polishing compound brighten up the surface to a mirror-like shine. It’s quite a bit of manual labor, but the end result really is spectacular.

In the video after the break, [rasp] breaks down the entire process, including the additional machine work required to turn these brass plates into functional components of the final machine. As an added bonus, he even includes a lot of his failed attempts in an effort to keep others from making the same mistakes. Something we love to see here at Hackaday.

The process used here is similar to the snazzy brass name plates we showed earlier in the year, and has even been done without a laser using photoresist.

[via /r/DIY]

Continue reading “The Fine Art Of Acid Etching Brass”