CPU Built From Discrete Transistors

We all know, at least intellectually, that our computers are all built with lots of tiny transistors. But beyond that it’s a little hard to describe. They’re printed on a silicon wafer somehow, and since any sufficiently advanced technology is indistinguishable from magic, they miraculously create a large part of modern society. Even most computers from 40 or 50 years ago were built around various inscrutable integrated circuits. On the other hand, this computer goes all the way back to first principles and implements a complete processor out of individual transistors instead.

The transistor computer uses over 2000 individual transistors to implement everything comprising the 11-bit CPU. The creator, Reddit user [ Weekly_Salamander_78] also has an online interactive book that walks through each of the steps that is required to get to the point of having a working computer like this. Starting with a guide on building logic gates from transistors it will eventually cover the arithmetic logic unit, adders, memory, clocks, and everything else that is needed for the complete CPU to get up and running. The design does rely on an Arduino for memory to simplify some things, and in the end it’s able to run a Hello, World! program and play a simple dinosaur game as well.

Building a computer out of discrete components like this is an impressive accomplishment, although we might not envy the creator of it when it comes time for troubleshooting or maintenance of all of those individual components. Presumably it would be much easier to work on than something like a relay computer, but for now we’ll all take a moment to be thankful that almost no one needs to work on debugging vacuum tube computers anymore.

FedEx Robot Solves Complex Packing Problems

Despite the fact that it constantly seems like we’re in the midst of a robotics- and artificial intelligence-driven revolution, there are a number of tasks that continue to elude even the best machine learning algorithms and robots. The clothing industry is an excellent example, where the flimsy materials can easily trip up robotic manipulators. But one task like this that seems like it might soon be solve is packing cargo into trucks, as FedEx is trying to do with one of their new robots.

Part of the reason this task is so difficult is that packing problems, similar to “traveling salesman” problems, are surprisingly complex. The packages are not presented to the robot in any particular order, and need to be efficiently placed according to weight and size. This robot, called DexR, uses artificial intelligence paired with an array of sensors to get an idea of each package’s dimensions, which allows it to then plan stacking and ordering configurations and ensure secure fits between all of the other packages. The robot must also be capable of quickly adapting if any packages shift during stacking and re-order or re-stack them.

As robotics platforms and artificial intelligence continue to improve, it’s likely we’ll see a flurry of complex problems like these solved by machine instead of by human. Tackling real-world tasks are often more complex than they seem, as anyone with a printer an a PC LOAD LETTER error can attest to, even handling single sheets of paper can be a difficult task for a robot. Interfacing with these types of robots can be a walk in the park, though, provided you read the documentation first.

Power Supplies Without Transformers

For one-off projects or prototyping, it’s not too hard to find a wall wart or power supply to send a few joules of energy from the wall outlet to your circuit. Most of these power supplies use a transformer to step down the voltage to a more usable level and also to provide some galvanic isolation to the low voltage circuit. But for circuits where weight, volume, or cost are a major concern, a transformer may be omitted in the circuit design in favor of some sort of transformerless power supply.

While power supplies with this design do have many advantages, some care needs to be taken with regard to safety. The guide outlines four designs of increasing complexity which first puts out a basic transformerless power supply, using a series capacitor to limit current. To bring the voltage to an acceptable level, a recognizable bridge rectifier is paired with a capacitor as well as a zener diode. The second circuit presented adds voltage stabilization using a transistor and 78XX regulator. From there, zero-crossing detection is added to limit inrush surge currents, and the final design uses the venerable 555 timer to build a switching power supply.

Although it is noted several times throughout the guide, we’ll still point out here that transformerless designs like these introduce several safety issues since a mistake or fault can lead to the circuit being exposed to the mains voltage. However, with proper care and design it’s possible to make use of these designs to build more effective power supplies that can be safe to use for powering whatever circuit might energy but might not require the cost or weight of a transformer. For more on the theory of these interesting circuits and a few examples of where they are often found, check out the shocking truth about transformerless power supplies.

Thanks to [Stephen] for the tip!

Building A Weather Display In Rust

We’ve seen a lot of weather displays over the years, and plenty of the more modern ones have been using some form of electronic paper. So what makes this particular build from [Harry Stern] different? The fact that the firmware running on the ESP32 microcontroller at its heart was developed in Rust.

The weather station itself is capable of operating for several months on its rechargeable NiMH battery bank. The Rust section of the project is in two parts, the first of which runs on a server which downloads the weather data and aggregates it into an image. The second part runs on the ESP32 using esp-idf which configures peripherals, turns on and connects to Wi-Fi, retrieves the image from the server, displays the image and then puts the display to sleep. By doing the heavy lifting on the server, the display should be able to run for longer than it would if everything was happening on the ESP32.

The project code is available from this GitHub page which should allow even Rust beginners to follow along, and the case file is also available for those with a 3D printer. [Harry] has a few upgrades planned for future releases as well, including a snap-fit case, a custom PCB, and improved voltage regulator for better battery life, and enhanced error handling for the weather API. And Rust isn’t the only interesting part of this project, either. As prices for e-paper displays continue to fall, more and more of them are found in projects like weather stations and even complete laptops which use these displays exclusively.

Investigating The Fourth Passive Component

When first learning about and building electronic circuits, the first things all of us come across are passive components such as resistors, capacitors, and inductors. These have easily-understandable properties and are used in nearly all circuits in some way or another. Eventually we’ll move on to learning about active components like transistors, but there’s a fourth passive circuit component that’s almost never encountered. Known as the memristor, this mysterious device is not quite as intuitive as the other three, so [Andrew] created an Arduino shield to investigate their properties.

Memristors relate electric charge and magnetic flux linkage, which means that their resistance changes based on the current that passes through them. As their name implies, this means they have memory, and retain their properties even after power is removed. [Andrew] is testing three different memristors, composed of tungsten, carbon, and chromium, using this specialized test set. The rig is based on an Arduino Uno and has a few circuit components that can be used as references and generates data on the behavior of the memristors under various situations.

The memristors used here do exhibit expected behavior when driven with positive voltage signals, but did exhibit a large amount of variability when voltage was applied in a negative direction. [Andrew] speculates that using these devices for storage would be difficult and would likely require fairly bespoke applications for each type. But as the applications for these seemingly bizarre circuit components increase, we expect them to improve much like any other passive component.

Continue reading “Investigating The Fourth Passive Component”

Bending Light To Fit Technology

Solar power is an excellent way of generating electricity, whether that’s for an off-grid home or for the power grid. With no moving parts maintenance is relatively low, and the downsides of burning fuel are eliminated as well. But as much as it’s revolutionized power generation over the last few decades, there’s still some performance gains to be made when it comes to the solar cells themselves. A team at Stanford recently made strides in improving cell efficiency by bending the properties of sunlight itself.

In order to generate electricity directly from sunlight, a photon with a specific amount of energy needs to strike the semiconductor material. Any photons with higher energy will waste some of that energy as heat, and any with lower energy won’t generate electricity. Previous methods to solve this problem involve using something similar to a prism to separate the light out into colors (or energies) that correlate to specific types of cells calibrated specifically for those colors. This method does the opposite: it changes the light itself to an color that fits the semiconductor material. In short, a specialized material converts the energy from two lower-energy photons into a single higher-energy photon, which then strikes the solar panel to create energy.

By adding these color-changing materials as a layer to a photovoltaic solar panel, the panel can generate more energy with a given amount of light than a traditional panel. The major hurdle, as with any research, is whether or not this will be viable when produced at scale, and this shows promise in that regard as well. There are other applications for these materials beyond photovoltaics as well, and the researchers provide an excellent demonstration in 3D printing. By adding these color-change materials to resin, red lasers can be used instead of blue or ultraviolet lasers to cure resin in extremely specific locations, leading to stronger and more accurate prints.

Atari Gets Semi-Modern Video Output

The Atari 2600 is a historical enigma in many ways. On one hand, it was the most popular gaming console of its era, but it was also at the center of the video game crash of 1983 due to the poor quality of its games at the time. It is a fascinating system in many ways that are still relevant today, especially when it comes to pushing hardware much farther than it was designed to go. [nicole] brings us a project that overcomes some of the limitations in its hardware to provide a more modern video output.

At the heart of the Atari is a custom chip called teh Television Interface Adapter (TIA) that generates the console’s video signal as well as handling controller information and a few other tasks. It was designed at a time where memory was expensive, and essentially trades programmer effort to reduce memory requirements. Interestingly, it separates luminance and chrominance information much like S-video does, so that’s where [nicole] focused their efforts. Thanks to some help from an adapter board, the video signals can be intercepted and reprocessed for the S-video standard instead of using RF modulation to send video data out, although this does involve some soldering and modifying of the original Atari hardware. In [nicole]’s case this was a little more involved due to the differences of the 2600jr compared to more standard versions of the console.

While S-video isn’t modern in the strictest sense, as a standard from 1987 it is a huge step forward compared to the available video output methods available in the 1970s when the 2600 was first produced. Plenty of older consoles and other hardware like VCRs and the like used S-video, so if you have a retro gaming setup complete with a CRT you might want to take a look at this 12-input A/V switch to keep everything managed.