The God Particle

The Greek philosopher Plato is well known for his allegories and metaphors. Of particular interest is his Allegory of the Cave, which appeared in The Republic, written around 380BCE. In it, Plato describes a group of prisoners which are chained to a wall within a cave, and have been all of their lives. They have no direct interaction with the world outside of the cave. They only know of the world via shadows that are cast on the wall opposite of them.  For the prisoners, the shadows are their reality.  Though you and I know the shadows are only a very low-resolution representation of that reality.

standard_01
Plato’s “Allegory of the Cave”, drawing by Markus Maurer

Theoretical physicist Steven Weinberg, a Nobel Prize winner who works out of the University of Texas at Austin, once likened himself to a prisoner in Plato’s cave. We are forever chained to this cave by the limitations in measurements we can make and experiments we can perform. All that we can know are shadows of the reality that exists in the sub-atomic world. We can see the shadowy figures lurking in our math and as wisps of misty vapor trails in our cloud chambers. We attempt to pierce the veil with the power of our imagination and draw nifty looking charts and animations depicting what our mind’s eye thinks it can see. But in the end, we are all trapped in a cave… staring at shadows. Reflections of a reality we can never truly know.

In our last Quantum Mechanics article, we introduced you to the idea of quantum electrodynamics, or to put it more simply — quantum field theory. In this article, we’re going to explore how QED lead to the prediction and eventual confirmation of something known as the Higgs Boson, also known as the God Particle. As usual, we’ll aim to keep things as simple as possible, allowing anyone with a curious mind to know what this God particle talk is all about. Like so many things in the quantum world, it all started with an unexpected outcome…

Continue reading “The God Particle”

Q Has Nothing On Naomi Wu

We’re not so much fans of James Bond as we are of Q, the hacker who supplies him with such wonderful things. There is a challenger to Q’s crown, [Naomi Wu] — code name [SexyCyborg] — built an epic gadget called the Pi Palette which hides a Linux laptop inside of a cosmetics case.

You can see the covert mode of the Pi Palette below. It resembles a clamshell cosmetics case with the makeup and applicator in the base and a mirror on the underside of the flip-up lid. The mirror hides an LCD screen in the portrait orientation, as well as a Raspberry Pi 3 running Kali Linux.

The base of the case includes a portable battery beneath the wireless keyboard/touchpad — both of which are revealed when the cosmetics tray is removed. An inductive charger is connected to the battery and [Naomi] built a base station which the Pi Palette sits in for wireless charging.

She envisions this as a covert penetration testing. For that, the Pi Palette needs the ability to put the WiFi dongle into promiscuous mode. She wired in a dual dip-switch package and really went the extra mile to design it into the case. The fit and finish of that switch is just one tiny detail the illustrates the care taken with the entire project. With such a beautiful final project it’s no wonder she took to the streets to show it off. Check that out, as well as the build process, in the video after the break.

Continue reading “Q Has Nothing On Naomi Wu”

Save ESP8266 RAM With PROGMEM

When [sticilface] started using the Arduino IDE to program an ESP8266, he found he was running out of RAM quickly. The culprit? Strings. That’s not surprising. Strings can be long and many strings like prompts and the like don’t ever change. There is a way to tell the compiler you’d like to store data that won’t change in program storage instead of RAM. They still eat up memory, of course, but you have a lot more program storage than you do RAM on a typical device. He posted his results on a Gist.

On the face of it, it is simple enough to define a memory allocation with the PROGMEM keyword. There’s also macros that make things easier and a host of functions for dealing with strings in program space (basically, the standard C library calls with a _P suffix).

Continue reading “Save ESP8266 RAM With PROGMEM”

Linux-Fu: Keeping Things Running

If you’ve used Linux from the early days (or, like me, started with Unix), you didn’t have to learn as much right away and as things have become more complex, you can kind of pick things up as you go. If you are only starting with Linux because you are using a Raspberry Pi, became unhappy with XP being orphaned, or you are running a cloud server for your latest Skynet-like IoT project, it can be daunting to pick it all up in one place.

Recently my son asked me how do you make something run on a Linux box even after you log off. I thought that was a pretty good question and not necessarily a simple answer, depending on what you want to accomplish.

There’s really four different cases I could think of:

  1. You want to launch something you know will take a long time.
  2. You run something, realize it is going to take a long time, and want to log off without stopping it.
  3. You want to write a script or other kind of program that detaches itself and keeps running (known as a daemon).
  4. You want some program to run all the time, even if you didn’t log in after a reboot.

Continue reading “Linux-Fu: Keeping Things Running”

Flappy Bird Is The New “Does It Run Doom?”

Back in 2014 [Johan] decided to celebrate BASIC’s 30 50 year anniversary by writing his own BASIC interpreter. Now, a few years later, he says he feels he has hit a certain milestone: he can play Flappy Bird, written in his own version of BASIC, running on his own home-built computer, the BASIC-1.

Inside the BASIC-1 is an Atmel XMega128A4, a keyboard from a broken Commodore 64, a joystick port, a serial to TV out adapter, and an SD card adapter for program storage. An attractively laser-cut enclosure with kerf bends houses the keyboard and hardware. The BASIC-1 boots into BASIC just like many of its home computer counterparts from the 80s.

Continue reading “Flappy Bird Is The New “Does It Run Doom?””

WTF Are Ground Loops?

These magical creatures crop up out of nowhere and fry your electronics or annoy your ear holes. Understanding them will doubtless save you money and hassle. The ground loop in a nutshell is what happens when two separate devices (A and B) are connected to ground separately, and then also connected to each other through some kind of communication cable with a ground, creating a loop. This provides two separate paths to ground (B can go through its own connection to ground or it can go through the ground of the cable to A and then to A’s ground), and means that current may start flowing in unanticipated ways. This is particularly noticeable in analog AV setups, where the result is audio hum or visible bars in a picture, but is also sometimes the cause of unexplained equipment failures. Continue reading “WTF Are Ground Loops?”

Don’t Fear The Filter: Lowpass Edition

There comes a time in every electronic designer’s life when, whether they know it or not, they need an analog filter in their design. If you’re coming from a digital background, where everything is nice and numeric, the harsh reality of continuous voltages can be a bit of a shock. But if you’re taking input from, or sending output to the big analog world out there, it pays to at least think about the frequency-domain properties of the signal, and maybe even do something about them.

Designing an analog filter to fit your needs can be a bit of a daunting task: there are many factors that you’re going to need to consider, and they all interact. It’s easy to get lost. We’re going to simplify this as much as possible by instead focusing on a few common applications and building up the simplest possible filters that work well for them.

Today, we’re going to consider the lowpass filter, and specifically a Sallen-Key filter with Butterworth characteristics and a second-order rolloff. Sound like word salad? We’ll fix that up right away, because this is probably the single most important filter to have in your analog toolbox for two very common use cases: pulse-width modulated (PWM) output and analog-to-digital conversion (ADC) input.

Continue reading “Don’t Fear The Filter: Lowpass Edition”