QB64 Hits Version 2.0, Gets Enhanced Debugging

Despite the name, BASIC isn’t exactly a language recommended for beginners these days. Technology has moved on, and now most people would steer you towards Python if you wanted to get your feet wet with software development. But for those who got their first taste of programming by copying lines of BASIC out of a computer magazine, the language still holds a certain nostalgic appeal.

If that sounds like you, then may we heartily recommend QB64. The open source project seeks to modernize the classic programming language while retaining compatibility for QBasic 4.5, the late-80s BASIC environment Microsoft included with MS-DOS. That modernization not only includes the addition of contemporary technology like OpenGL, but cross-platform support that lets you run the same code on Windows, Linux, and Mac OS.

The new debug mode in QB64 v2.

The QB64 team released version 2.0 just a few days ago, making this the perfect time to give the project a test drive if you haven’t tried it out yet. The changelog includes platform specific improvements for each supported operating system, as well as a long list of general fixes and updates. But arguably the biggest feature for this release is the inclusion of the $Debug metacommand.

When this command is included in your code, the IDE will insert a debugging stub into the compiled program. During execution, the QB64 IDE will switch over to debugging mode, and communicate with your program in real-time over a local TCP/IP connection. The debugging mode lets you step through the code line-by-line, check the values of variables, and set breakpoints. Once you’re done fussing with the code and want to release a final binary, you just need to remove that single $Debug command and recompile.

We’ve talked in the past about using QB64 to revitalize vintage code, and think the project is a fantastic melding of old and new technology. You never know when you might suddenly have the urge to dust off some code you wrote back in the 80s and run it on an OS that didn’t even exist at the time.

Vise Tripod Lets You Put The Tool Where You Need It

Vises are useful things for holding whatever you’re working on, but too often they’re stuck to a bench. [seamster] has experienced the glory of having a more portable solution, however, and has shared his design for a heavy duty vise tripod that provides just that.

The trick is that to be useful, the design must be heavy and stout enough to hold the vise without tipping over. For this build, [seamster] selected a fat steel pipe with 1/4″ thick walls, some solid bars and some 3/8″ thick plate. Legs and arms where then fabbed up from the bar material and welded up to form the tripod. A stout plate for the vise was then welded on top of the pipe, and the vise mounted pride of place on top.

It’s not a particularly difficult build, but it’s a smart idea that gets you a vise you can easily drag to where it’s needed. If you don’t have the vise itself, consider this hydraulic build. Meanwhile, if you’ve been whipping up your own useful workshop hacks, let us know!

parser drill

Machining Wood Inlays, No CNC Required

It’s almost hard to remember a time when the obvious answer to most questions about manufacturing wasn’t “Throw it on the CNC.” CNC machines have become so entrenched that the acronym has become a verb; few people would misunderstand a statement like “Let’s just CNC that.”

But before CNC machines became so ubiquitous, there were plenty of clever tricks for cutting material in a controlled fashion, as [Pask] shows us with this tool to machine wood for inlays. The tool is called a parser (or passer) drill, and is designed for use in conjunction with a steel template. [Pask]’s version seems pretty easy to make; a pair of mild steel bars are forged flat into spade shapes before having a cutting surface ground into them. The two halves of the drill are welded together and ground down to fit in the chuck of a hand drill, a modern nod to the fact that few people will want to use the traditional bow and breastplate that drove the original parser drills.

In use, a steel template that determines the shape of the inlay is affixed to the workpiece. The cutting edges of the bits are plunged into the template cutout to machine out the wood; the overhangs of the bits act as depth stop and guide. It only takes a few seconds to make a neat, CNC-free inlay. The video below shows the tool being made and in action.

It’s nice to see what can be accomplished without the need for fancy CNC machines. Not that we have anything against them, of course, but when the same results can be had with some scraps of steel and a little ingenuity, it’s pretty impressive. Looking for something between manual tools and CNC for woodworking? The pantorouter might be just your speed.

Continue reading “Machining Wood Inlays, No CNC Required”

A Redesigned ZX Spectrum Desktop Computer That Works Surprisingly Well

Retrocomputer enthusiasts will quite often be found pondering the great what ifs of their hobby. What if Commodore had had a half-way decent marketing division is a popular one, but the notoriously penny-pinching ways of Sinclair Research are also a plentiful source. What if Sinclair had won the competition for a computer in UK schools, not only the first time around when Acorn’s BBC Micro scooped the prize, but also what if they’d entered the fray once more in 1983 when there was another chance? [10p6] investigates this possibility, and comes up with a Spectrum desktop computer that you can see in the video below the break.

The first two-thirds of the video is devoted to renders which, while pretty to look at, offer nothing of substance. In the later part though we see a build, putting a Spectrum 48k board, Interface 1, and two Microdrives in a slimline case along with a power supply. Meanwhile a ZX rubber keyboard is mounted stand-alone on the end of a cable. It’s a computer that we know would have been an object of desire for many kids back in the day, and we agree with the video that it could have been integrated onto one board without the need for a separate Interface 1. We feel it’s inevitable though that Sinclair’s cost-cutting would have caused something to go astray and there would certainly have been only one Microdrive, even though we like that separate keyboard a lot.

They claim that the STLs will be available from a Facebook group, however unless you happen to have a set of Microdrives and an Interface 1 to go with your Spectrum that you’re prepared to butcher for the project we’re guessing that the chief interest lies in watching it unfold and that some of the ideas might translate to other platforms. Meanwhile if you’re interested in the Microdrive, we did a teardown on them last year.

Continue reading “A Redesigned ZX Spectrum Desktop Computer That Works Surprisingly Well”

Electronic Covid Test Tear Down Shows Frustrating Example Of 1-Time-Use Waste

The latest video from [TheSignalPath] is a result of his purchase of a home COVID-19 test. He found an electronic version that connects to your cell phone and displays the results on the phone. The device is an antigen test and, internally, works like the home tests that show the results using lines similar to a pregnancy test. So, somehow, the phone version reads the lines and communicates with the phone. But how? That’s the point of the video, which you can see below.

In a traditional test, there’s a control line that has to appear to show that the test was done correctly. Then a line under that indicates detection of the virus. The circuit board inside the electronic test has a plastic unit onboard that contains a similar strip and has optical sensors for both the reference line and the detection line. Since it is essentially an optical device — there are some lenses in the strip assembly that look like they are detecting the dye as it moves through the strip with LEDs onboard to shed light on the situation.

Under the microscope, the CPU is a typical Bluetooth-capable ARM chip from Nordic. The board did power up, but the device is made to only operate once because of the test strip. The video notes — and we agree — it seems wasteful to create an entire Bluetooth-enabled microcontroller board with optical components just to read a strip one time that is pretty easy to read to start with. We’ll stick with the simple test strip. Still, it is interesting to see the insides.

If you want to read more about antigen tests, we covered that. We also talked about PCR testing.

Continue reading “Electronic Covid Test Tear Down Shows Frustrating Example Of 1-Time-Use Waste”

PS/2 wireless dongle

The Wireless PS/2 Keyboard That Never Was

The PS/2-style port was once about as ubiquitous on PCs as USB connectors are today, and more than a few of us accumulated a fair collection of keyboards and mice that sported the 6-pin mini-DIN plug. They’re not nearly as common today, but when you need one, you need one, so if your stockpile of PS/2 keyboards has dwindled to nothing, you might want to look at rolling your own PS/2 remote keyboard dongle.

That backstory on [Remy Sharp]’s build starts with his acquisition of a neptUNO, a 160€ FPGA retrocomputer that gives you access to just about every Z80 and 6502 computer of yesteryear. While the box supports USB keyboards, [Remy] had trouble getting one to work. So out came a Wemos D1 Mini, which was wired up to a stub of PS/2 cable. The microcontroller is powered by the PS/2 port, and connects to the WiFi network on boot-up and starts a WebSocket server. It also served up a page of HTML, which lets him connect with any device and send keystrokes to the neptUNO. He also added a couple of hardware buttons to the dongle, to access menus on the neptUNO directly. The video below shows it in action.

Perhaps unsurprisingly, [Remy] says he took inspiration for this build from [Ben Eater]’s excellent PS/2 deep dive. We’d like to think he saw that here first, but either way, it’s a valuable reference on how keyboards used to work.

Continue reading “The Wireless PS/2 Keyboard That Never Was”

Jet tools air scrubber

It’s A Hack: Air Scrubber Controlled Using The Room Lighting

Some products just seem to be designed to be annoying. [hardmar] discovered the air filtration system installed in his son’s basement woodshop was orientated for the best airflow, but rather poorly positioned to actually turning the thing on and off. For some reason the unit has its single line-of-sight IR receiver on one side, which when mounted in some positions, forces the user to be the completely wrong position to use the supplied remote.

We find it a little unhelpful sometimes that devices specifically designed to be mounted with varying orientations don’t come fitted with IR receivers in different locations to ensure good controllability. It would get annoying really fast to have to contort oneself into some specific position just to turn something on, and some people just might not bother at all.

Proper control of dust is paramount for continued good health, and essential in any workspace or shared area. When you work wood, it produces a lot of dust. It cannot be avoided and gets into everything, your lungs included. PPE is not enough.  Even in your own shop you still really should manage dust production as best you can. Options are varied from centralised extraction, per machine solutions, and often augmented with air scrubbers mounted on the ceiling to grab those fine particulates.

Instead of solving the IR placement issue, [hardmar] wanted to have the unit tied to the lighting system so that it would power on as soon as someone turned on the appropriate light and would then stay on for a fixed amount of time after the user left in order to continue scrubbing the air some more. His simple hack was to first record and analyse the IR protocol used by the remote, and program an Arduino to be able to send it on/off commands. Next, he hooked up a phototransistor aimed at the light, in order to provide the necessary ‘user present’ trigger to tell the Arduino when to activate the scrubber. Super simple and effective. We love this non-invasive approach of adapting off-the-shelf equipment to our specific requirements, without even showing it a screwdriver.

As [hardmar] admits, the hack is not elegantly implemented, it’s just enough to make it work, and that’s just fine, sometimes you just have a job to do and no more.