Circuit VR: Redundant Flip Flops And Voting Logic

We are somewhat spoiled because electronics today are very reliable compared to even a few decades ago. Most modern electronics obey the bathtub curve. If they don’t fail right away, they won’t fail for a very long time, in all likelihood. However, there are a few cases where that’s not a good enough answer. One is when something really important is at stake — the control systems of an airplane, for example. The other is when you are in an environment that might cause failures. In those cases — near a nuclear reactor or space, for example, you often are actually dealing with both problems. In this installment of Circuit VR, I’ll show you a few common ways to make digital logic circuits more robust with some examples you can run in the Falstad simulator in your browser.

Continue reading “Circuit VR: Redundant Flip Flops And Voting Logic” →

Can You Trust Your C Compiler?

If you are writing a hello world program, you probably aren’t too concerned about how the compiler translates your source code to machine code. However, if your code runs on something that people’s lives depend on, you will want to be a bit pickier and use something like the COMPCERT compiler.  It’s a formally verified compiler, meaning there is a mathematical proof that what you write in C will be correctly translated to machine code. The compiler can generate for PowerPC, ARM, RISC-V, and x86, accepting a subset of ISO C 99 with a few extensions. While it doesn’t produce code that runs as fast as gcc, you can be sure the generated code will do what you asked it to do.

Of course, this still provides no assurance that your code will work. It just means that if you write something such as “x=0;” the generated code will set x to zero and will not do anything else. You can apply formal methods to verify your source code and be assured that the compiler doesn’t introduce possible failures. Cases where code like “x=0;” does extra things or incorrect things are very hard to figure out because the source code is correct and an examination of the generated code would be necessary to find the compiler’s code generation bug.

Continue reading “Can You Trust Your C Compiler?” →

Break Your Scope’s Bandwidth Barrier

Oscilloscope bandwidth is a tricky thing. A 100 MHz scope will have a defined attenuation (70%) of a 100 MHz sine wave. That’s not really the whole picture, though, because we aren’t always measuring sine waves. A 100 MHz square wave, for example, will have sine wave components at 100 MHz, 300 MHz, and the other odd harmonics. However, it isn’t that a 100 MHz scope won’t show you something at a higher frequency — it just doesn’t get the y-axis right. [Daniel Bogdanoff] from Keysight decided to think outside of the box and made a video about using scopes beyond their bandwidth specification. You can see that video, below.

[Daniel] calls this a “spec hacks” but they aren’t really hacks to the scope. They are just methods that don’t care about the scope’s rated bandwidth. In this particular spec hack, he shows how the frequency counter using a 70 MHz scope’s trigger circuit can actually read up to 410 MHz. A 100 MHz scope was able to read almost 530 MHz.

Continue reading “Break Your Scope’s Bandwidth Barrier” →

[Leo] Repairs A MIDI Sequencer

We all have that friend who brings us their sad busted electronics. In [Leo’s] case, he had a MIDI sequencer from a musician friend. It had a dead display and the manufacturer advised that a driver IC was probably bad, even sending a replacement surface mount part.

[Leo] wasn’t convinced though. He knew that people were always pushing on the switches that were mounted on the board and he speculated that it might just be a bad solder joint. As you can see in the video below, that didn’t prove out.

The next step was to fire up a hot air gun. Instead of removing the chip, he wanted to reflow the solder anyway. He was a little worried about melting the 7-segment LEDs so he built a little foil shield to protect it. That didn’t get things working, either.

Continue reading “[Leo] Repairs A MIDI Sequencer” →

Color Sensor Demystified

When [millerman4487] bought a TCS230-based color sensor, he was expecting a bit more documentation. Since he didn’t get it, he did a little research and some experimentation and wrote it up to help the rest of us.

The TCS3200 uses an 8×8 array of photodiodes. The 64 diodes come in four groups of 16. One group has a blue filter, one has green and the other has a red filter. The final set of diodes has no filter at all. You can select which group of diodes is active at any given time.

Continue reading “Color Sensor Demystified” →

The Xerox Star On A Desktop Near You

It is 1980-something and you see someone typing on a keyboard. The display is graphical, and they use a mouse to finish a document, send it over the network to another similar computer, where another user edits it a bit and prints it on a laser printer. Given the time-frame you might think the computer is a Mac, but you’d be wrong. The Xerox Star had all the features Apple “invented” about three years before the Macintosh arrived. If you never heard of the Star, that’s not surprising. At $16,500 each, there were only about 25,000 sold. Your chances of finding a working one now are slim, but thanks to emulation created by [Josh Dersch] you can try the Star out on your hardware today. If you want a preview, have a look at the 1982 video, below.

The machine had a surprisingly complex architecture. The main CPU was a microcoded computer with multiple registers that would run a sort of microcode program to execute different instruction sets depending on what was running. In addition, there was an intel 8085 that loaded the right microcode and serviced the keyboard, the mouse, the floppy, and the serial ports.

Continue reading “The Xerox Star On A Desktop Near You” →

Understanding Modulated RF With [W2AEW]

There was a time — not long ago — when radio and even wired communications depended solely upon Morse code with OOK (on off keying). Modulating RF signals led to practical commercial radio stations and even modern cell phones. Although there are many ways to modulate an RF carrier with voice AM or amplitude modulation is the oldest method. A recent video from [W2AEW] shows how this works and also how AM can be made more efficient by stripping the carrier and one sideband using SSB or single sideband modulation. You can see the video, below.

As is typical of a [W2AEW] video, there’s more than just theory. An Icom transmitter provides signals in the 40 meter band to demonstrate the real world case. There’s discussion about how to measure peak envelope power (PEP) and comparison to average power and other measurements, as well.

Continue reading “Understanding Modulated RF With [W2AEW]” →