Arduino Code? On My 8051? It’s More Likely Than You Think

The 8051 was an 8-bit Harvard-architecture microcontroller first put out by Intel in 1980.  They’ve since discontinued that line, but it lives on in the low-cost STC8 family of chips, which is especially popular in Asia. They’re cheap as, well, chips — under 1$ — but lack compatibility with modern toolchains. If you’re happy with C, then you’re fine, but if you want to plus-plus it up and use all those handy-dandy shortcuts provided by the Arduino ecosystem, you’re out of luck. Or rather, you were, until [Bùi Trịnh Thế Viên] aka [thevien257] came up with a workaround.

The workaround is delightfully Hack-y. One could, conceivably, port a compiler for Arduino’s  Wiring to the 8051, but that’s not what [Viên] did, probably because that would be a lot of work. There isn’t even a truly modern toolchain to put plain C on this chip. Instead, [Viên] started with rv51, a RISC-V emulator written in 8051 assembly language by [cryozap]. RISC-V is a lot easier to work with and, frankly, a more useful skill to build up.

Continue reading “Arduino Code? On My 8051? It’s More Likely Than You Think”

An oscilloscope display is seen in lower left corner. In the rest of the image, two purple circuit boards are connected by SMA RF cables. A wire antenna is connected to one board.

Building A $50 SDR With 20 MHz Bandwidth

Although the RTL-SDR is cheap, accessible, and capable enough for many projects, it does have some important limitations. In particular, its bandwidth is limited to about 3.2 MHz, and the price of SDRs tends to scale rapidly with bandwidth. [Anders Nielsen], however, is building a modular SDR with a target price of $50 USD, and has already reached a bandwidth of almost 20 MHz.

If this project looks familiar, it’s because we’ve covered an earlier iteration. At the time, [Anders] had built the PhaseLoom, which filters an incoming signal, mixes it down to baseband, and converts it to I/Q signals. The next stage is the PhaseLatch, a board housing a 20-MHz, 10-bit ADC, which samples the in-phase and quadrature signals and passes them on to a Cypress FX2LP microcontroller development board. [Anders] had previously connected the ADC to a 6502 microprocessor instead of the FX2LP, but this makes it a practical SDR. The FX2LP was a particularly good choice for this project because of its USB 2.0 interface, large buffers for streaming data, and parallel interface. It simply reads the data from the SDR and dumps it to the computer.

Continue reading “Building A $50 SDR With 20 MHz Bandwidth”

How A Belkin USB Charger Pulls Off A 3 Milliwatt Standby Usage

Belkin charger standby power. (Credit: Denki Otaku, YouTube)
Belkin charger standby power. (Credit: Denki Otaku, YouTube)

A well-known property of wall warts like power bricks and USB chargers is that they always consume some amount of power even when there’s no connected device drawing power from them. This feels rather wasteful when you have a gaggle of USB chargers constantly plugged in, especially on a nation-sized scale. This is where a new USB-C wall charger by Belkin, the BoostCharger Pro, is interesting, as it claims ‘zero standby power’, which sounds pretty boastful and rather suspect. Fortunately, [Denki Otaku] saw fit to put one to the test and even tear one down to inspect the work of Belkin’s engineers.

Naturally, no laws of physics were harmed in the construction of the device, as ‘zero standby power’ translated from marketing speak simply means ‘very low standby power usage’, or about 3 milliwatt with 0.3 mA at the applied 100 VAC.

Fascinatingly, plugging in an e-marker equipped USB-C cable with no device on the other end caused this standby usage to increase to about 30 mW, clearly disabling the ‘zero standby’ feature. With that detail noted, it was time to tear down the charger, revealing its four PCBs.

Continue reading “How A Belkin USB Charger Pulls Off A 3 Milliwatt Standby Usage”

An Electric Jellyfish For Androids

We have to admit, we didn’t know that we wanted a desktop electric jellyfish until seeing [likeablob]’s Denki-Kurage, but it’s one of those projects that just fills a need so perfectly. The need being, of course, to have a Bladerunner-inspired electric animal on your desk, as well as having a great simple application for that Cheap Yellow Display (CYD) that you impulse purchased two years ago.

Maybe we’re projecting a little bit, but you should absolutely check this project out if you’re interested in doing anything with one of the CYDs. They are a perfect little experimentation platform, with a touchscreen, an ESP32, USB, and an SD card socket: everything you need to build a fun desktop control panel project that speaks either Bluetooth or WiFi.

We love [likeablob]’s aesthetic here. The wireframe graphics, the retro-cyber fonts in the configuration mode, and even the ability to change the strength of the current that the electric jellyfish is swimming against make this look so cool. And the build couldn’t be much simpler either. Flash the code using an online web flasher, 3D print out the understated frame, screw the CYD in, et voila! Here’s a direct GitHub link if you’re interested in the wireframe graphics routines.

We’ve seen a bunch of other projects with the CYD, mostly of the obvious control-panel variety. But while we’re all for functionality, it’s nice to see some frivolity as well. Have you made a CYD project lately? Let us know!

Analog Video From An 8-Bit Microcontroller

Although the CRT has largely disappeared from our everyday lives, there was a decades-long timeframe when this was effectively the only display available. It’s an analog display for an analog world, and now that almost everything electronic is digital, these amazing pieces of technology are largely relegated to retro gaming and a few other niche uses. [Maurycy] has a unique CRT that’s small enough to fit in a handheld television, but since there aren’t analog TV stations anymore, he decided to build his own with nothing but an 8-bit microcontroller and a few other small parts.

Continue reading “Analog Video From An 8-Bit Microcontroller”

Reviving A Cursed Sun SPARCstation IPX

SPARCstation IPX running Solaris 2.6. (Credit: This Does Not Compute, YouTube)
SPARCstation IPX running Solaris 2.6. (Credit: This Does Not Compute, YouTube)

The best part about retro computing is the idea that you’ll save some poor system from being scrapped and revive it to a working state, at which point you can bask in the glory of a job well done. That’s when reality often strikes hard, and you find yourself troubleshooting a maddening list of issues as you question everything about your life choices. Such was the case with [This Does Not Compute] over at YouTube with a Sun SPARCstation IPX that decided to put up a big fight.

This is the second video of a series. In the first installment, the PSU was repaired, and a boot failure was diagnosed. The system’s onboard diagnostic led to the assumption that one of the 8 kB SRAM ICs was defective.  You can readily get SRAM replacements, so it seemed to be an easy fix. Unfortunately, the fun was only beginning as the system reported the exact same error after the SRAM was replaced.

After flipping a virtual table, the mainboard was swapped with a donor one from a scrapped laptop system. With this, it booted, but the video output showed only vertical lines. Obviously, the solution here was to insert a replacement video card, which not only fixed the display output but also demonstrates once again that you can fix many vintage computing issues by simply replacing hardware.

Continue reading “Reviving A Cursed Sun SPARCstation IPX”

ESP32: When Is A P4 A P4, But Not The P4 You Thought It Was

We’re used to electronic parts of the same type staying predictably the same, sometimes over many years. An early Z80 from the mid 1970s can be exchanged with one from the end of production a few years ago, for example. This week, we’ve had DMs from several readers who’ve found that this is not always the case, and the culprit is surprising. Espressif has released a new revision of their P4 application processor, and though it’s ostensibly the same, there are a couple of changes that have been catching people out.

The changes lie in both hardware and software, in that there’s a pin that’s changed from NC to a power rail, a few extra passives are needed, and firmware must be compiled separately for either revision. The problem is that they are being sold as the same device and appear in some places under the same SKU! This is leading to uncertainty as to which P4 revision is in stock at wholesalers. We’ve been told about boards designed for the old revision being assembled with the new one, a situation difficult to rework your way out of. Designers are also left uncertain as to which firmware build is needed for boards assembled in remote factories.

The ESP32-P4 is an impressive part for its price, and we’re sure that we’ll be seeing plenty of projects using this new revision over the coming years. We’re surprised that it doesn’t have a different enough part number and that the wholesalers have seemingly been caught napping by the change. We’re told that some of the well-known Chinese assembly houses are now carrying the two chips as separate SKUs, but that’s scant consolation for a designer with a pile of boards carrying the wrong part. If you’re working with the P4, watch out, make sure your board is designed for the latest revision, and ask your supplier to check which chips you’ll get.

If the P4 is new to you, we’ve already seen a few projects using it.