Inductance In PCB Layout: The Good, The Bad, And The Fugly

When current flows through a conductor it becomes an inductor, when there is an inductor there is an electromagnetic field (EM). This can cause a variety of issues during PCB layout if you don’t plan properly, and sometimes we get burned even when we think we have planned for unwanted inductance and the effects that come with them.

When doing high speed logic we need to be able to deliver sudden changes in current to the devices if we want to have proper switching times and logic levels. Unfortunately inductance is usually not a friend in these circumstances as it resists those sudden changes in current. If the high speed devices are driving capacitive loads, which themselves are resisting changes in voltage, even more instantaneous current is needed.

Simply put, inductors resist a change of current, and can act as a low pass filter when in series with the signal or power supply flow. Inductors do this by storing energy in the flux surrounding the conductor. Alternatively capacitors resist a change in voltage (again by storing energy) and can act as a high pass filter when in series with the signal. This makes them a valuable tool in the fight against unwanted inductance in power supply distribution.

In the video below, and the remainder of this article, I’m going to dive into the concept of inductance and how it affects our design choices when laying out circuit boards.

Continue reading “Inductance In PCB Layout: The Good, The Bad, And The Fugly”

FPGA Jacked Into Pinball Machine Masters High Scores

How do you preserve high scores in an old arcade cabinet when disconnecting the power? Is it possible to inject new high scores into a pinball machine? It was the b-plot of an episode of Seinfield, so it has to be worth doing, leading [matthew venn] down the rabbit hole of FPGAs and memory maps to create new high scores in a pinball machine.

The machine in question for this experiment is Doctor Who from Williams, which, despite being a Doctor Who pinball machine isn’t that great of a machine. Still, daleks. This machine is powered by a Motorola 68B09E running at 2MHz, with 8kB of RAM at address 0x0000. This RAM backed up with a few AA batteries, and luckily is in a DIP socket, allowing [matthew] to fab a board loaded up with an FPGA development board that goes between the CPU and RAM.

The basic technique for intercepting and writing a new high score for this pinball machine comes from the incredible [sprite_tm] who is tweeting high scores from a 1943 cabinet. The idea is simple: just have an FPGA look at one specific memory address, and send some data to a computer when the data at that address is updated. For the Doctor Who pinball machine, this is slightly harder than it sounds: the data isn’t stored in hex, but packed BCD. After a little bit of work, though, [matthew] was able to write new high scores from a Python script running on a laptop. All the code (and a few more details) are over on a Github

Extending arcade games by tapping into address and data lines isn’t something we see a lot of, but it has been done, most famously with the Church of Robotron. Here, a few MAME hacks turn a game of Robotron into a Church for the faithful to fully commit themselves to the savior of the world, due to arrive in 66 years and save the remaining humans from the robot apocalypse. This hack of a Doctor Who pinball machine goes beyond a modded version of MAME, and if we’re ever going to make a real chapel with a real game of Robotron, these are the techniques we’re going to use.

Sounding A Sour Note Can Save People From A Sour Stomach (Or Worse)

We’ve covered construction of novel music instruments on these pages, and we’ve covered many people tearing down scientific instruments. But today we’ve got something that managed to cross over from one world of “instrument” into another: a music instrument modified to measure a liquid’s density by listening to changes in its pitch.

This exploration started with a mbira, a mechanically simple music instrument. Its row of rigid metal tines was replaced with a single small diameter hollow metal tube. Filling the tube with different liquids would result in different sounds. Those sounds are captured by a cell phone and processed by an algorithm to calculate the difference in relative density of those liquids. Once the procedure was worked out, the concept was verified to work on a super simple instrument built out of everyday parts: a tube mounted on a piece of wood.

At this point we have something that would be a great science class demonstration, but the authors went a step further and described how this cheap sensor can be used to solve an actual problem: detecting counterfeit pharmaceuticals. Changing composition of a drug would also change its density, so a cheap way to compare densities between a questionable sample against a known good reference could be a valuable tool in parts of the world where chemistry labs are scarce.

For future development, this team invites the world to join them applying the same basic idea in other ways, making precise measurements for almost no cost. “Any physical, chemical, or biological phenomena that reproducibly alters the pitch-determining properties of a musical instrument could in principle be measured by the instrument.” We are the ideal demographic to devise new variations on this theme. Let us know what you come up with!

If you need to do quick tests before writing analysis software, audio frequency can be measured using the Google Science Journal app. We’ve seen several hacks turning a cell phone’s camera into instruments like a spectrometer or microscope, but hacks using a phone’s microphone is less common and ripe for exploration. And anyone who manages to make cool measurements while simultaneously making cool music will instantly become a serious contender in our Hackaday Prize music instrument challenge!

[via Science News]