Commodore C64: The Most Popular Home Computer Ever Turns 40

This year marks the anniversary of the most popular selling home computer ever, the Commodore 64, which made its debut in 1982. Note that I am saying “home computer” and not personal computer (PC) because back then the term PC was not yet in use for home computer users.

Some of you have probably not heard of Commodore, which is kind of sad, though there is a simple reason why — Commodore is no longer around to maintain its legacy. If one were to watch a documentary about the 1980s they may see a picture of an Apple computer or its founders but most likely would not see a picture of a Commodore computer in spite of selling tens of millions of units.

To understand the success of the C64 I would first back up and talk about the fabled era of home computers which starts with understanding the microprocessor of the day, the venerable 6502. Check out the video and follow along below.

Continue reading “Commodore C64: The Most Popular Home Computer Ever Turns 40”

Arm Pumps Up The Volume With Mbed And A Potentiometer

Last time, I told you how to get started with the “Black Pill” STM32F411 board using the Mbed OS. The example program, admittedly, didn’t use many of the features of the OS, unless you count what the USB serial port driver uses behind the scenes. However, this time, we’ll make a practical toy that lets you adjust your PC’s volume level with a pot.

The Black Pill module on a breadboard.

The Black Pill is a good choice for this application since it has analog inputs and can act as a USB keyboard. In fact, the Mbed OS has drivers for all kinds of USB devices. We’ve seen the serial port, but you can also look like a mass storage device or a mouse, for example. Just for practice, we’ll create two threads of execution. One will read the pot and send a message over to the other thread. That thread will communicate with the PC as a USB keyboard. Any computer that understands media keys on a keyboard should work with the device.

Threads

Creating threads is very simple. For many cases, you just define a void function that takes no arguments and use it with a Thread object:

readknobThread.start(vol_thread);

Of course, the function shouldn’t return unless you want the thread to end. As I mentioned in the last post, you can sleep with the ThisThread::sleep_for call. There is also a yield call if you simply want to give up the time slice without sleeping for a specific amount of time.

Continue reading “Arm Pumps Up The Volume With Mbed And A Potentiometer”

Mercury Thrusters: A Worldwide Disaster Averted Just In Time

The field of space vehicle design is obsessed with efficiency by necessity. The cost to do anything in space is astronomical, and also heavily tied to launch weight. Thus, any technology or technique that can bring those figures down is prime for exploitation.

In recent years, mercury thrusters promised to be one such technology. The only catch was the potentially-ruinous environmental cost. Today, we’ll look at the benefits of mercury thrusters, and how they came to be outlawed in short order.

Continue reading “Mercury Thrusters: A Worldwide Disaster Averted Just In Time”

Less Is More — Or How To Replace A $25,000 Bomb Sight For 20 Cents

Depending on who you ask, the Norden bombsight was either the highest of high tech during World War II, or an overhyped failure that provided jobs and money for government contractors. Either way, it was super top secret in its day. It was also expensive. They cost about $25,000 each and the whole program came in at well over a billion dollars. The security was over the top. When not flying, the bombsight was removed from the plane and locked in a vault. There was a pyro device that would self-destruct the unit if it were in danger of being captured. So why did one of the most famous missions of World War II fly with the Norden replaced by 20 cents worth of machined metal? Good question.

You often hear the expression “less is more” and, in this case, it is an accurate idea. I frequently say, though, that “just enough is more.” In this case, though, less was actually just enough. There were three reasons that one famous mission in the Pacific theater didn’t fly the Norden. It all had to do with morale, technology, and secrecy.

Continue reading “Less Is More — Or How To Replace A $25,000 Bomb Sight For 20 Cents”

Arming With An OS

We see tons of projects with the infamous “Blue Pill” STM32 boards. They are cheap and plentiful and have a lot of great features, or at least they were before the chip shortage. I recently picked up a “Black Pill”, which is very similar but has an even more powerful processor. For a few bucks, you get an ARM CPU that can run at 100 MHz (but with USB, probably 96 MHz). There’s 512 kB of flash and 128 kB of RAM. There’s a USB type C port, and even a button and an LED onboard. The thing fits on a breadboard and you can program it with a cheap STLink dongle which costs about $10.

The Black Pill module on a breadboard.

Of course, you then have to consider the software. The STM32Cube stuff is a lot to set up and learn but it does let you do just about anything you can imagine. Then there is the STM32Duino plug-in that lets you use it as a beefy Arduino. That works and is easy enough to set up. However, there’s also Mbed. The only problem is that Mbed doesn’t work right out of the box. Turns out, though, it isn’t that hard to set up. I’ll show you how easy it is to get things going and, next time, I’ll show you a practical example of a USB peripheral that uses the mBed RTOS features.

First Steps

Obviously, you are going to need a Black Pill. There are at least two choices but for as cheap as they are there is little reason not to get the STM32F411 version that has more memory. The DIP form factor will fit in whatever breadboard you happen to have and a USB C cable will power the board so unless you are driving a lot of external circuitry, you probably don’t need an external supply.

Continue reading “Arming With An OS”

Scientists Are Now Declaring New Species Via Photos And Video

Identifying new species is key to the work of zoologists around the world. It’s an exciting part of research into the natural world, and being the first to discover a new species often grants a scientists naming rights that can create a legacy of one’s work that lasts long into the future.

Traditionally, the work of taxonomy involved capturing and preserving an example of the new species. This is such that it could be classified properly and studied in detail by scientists working now and in the future. However, times are changing, and scientists are beginning to identify new species on the basis of videos and photos instead.

Continue reading “Scientists Are Now Declaring New Species Via Photos And Video”

Mothballing Rosalind: How To Put A Space Mission In Storage

In planetary exploration circles, Mars has quite a bad reputation. The Red Planet has a habit of eating spacecraft sent there to explore it, to the degree that nearly half of the missions we’ve thrown at it have failed in one way or another. The “Mars Curse” manifests itself most spectacularly when landers fail to negotiate the terminal descent and new billion-dollar craters appear on the Martian regolith, while some missions meet their doom en route to the planet, and an unlucky few have even blown up on the launchpad.

But the latest example of the Mars Curse, the recent cancellation of the second half of the ExoMars mission, represents a new and depressing failure mode: war — specifically the Russian invasion of Ukraine. The international outrage over the aggression resulted in economic sanctions and diplomatic isolation of Russia, which retaliated by ending its partnership with the European Space Agency (ESA), depriving the mission of its launch vehicle and dooming the mission that would have landed the rover Rosalind Franklin on Oxia Planum near the Martian Equator in 2023.

While there’s still a chance that administrators and diplomats will work things out, chances are slim that it will be in time for the narrow launch window that the mission was shooting for in September of 2022. That means the Rosalind Franklin, along with all the other flight hardware that was nearly ready to launch, will have to be put in storage at least until the next launch window opens in 2024. That begs the question: how does one put a complex spacecraft into storage? And could such mothballing have unintended consequences for the mission when it eventually does fly?

Continue reading “Mothballing Rosalind: How To Put A Space Mission In Storage”