Back to Basics: Piezos

Earlier this week, I was in a discussion with a client on piezo electric tech, especially about 2 pin and 3 pin types. I thought it’s worth a quick post to clear the most common confusions and when I would pick each one.

Piezos

Simply put, a piezo unit is a thin ceramic disc with electrodes on both ends stuck on a metal plate. If you apply a DC, it deforms in one direction and if you reverse it deforms the other way. Now, if you apply AC, and it flexes fast, pushes air, and makes sound. Electrically, it’s just a small capacitor with a resonance in the few kHz range.

Piezos

What I explained above is a passive 2-pin piezo. It’s a transducer disc with two electrodes. You must drive it with AC or PWM near resonance frequency of the disc. There is another type called the 2-pin active piezo. It has a built-in oscillator. Give it DC and it beeps at a fixed tone. Putting DC into a passive disc won’t make a sound.

3-pin piezos are in two options. One is a three-electrode (bimorph) disc. It has an extra terminal called a feedback electrode. You can build a simple loop (check images) that senses the disc’s motion and feeds it back to sustain oscillation. The loop naturally locks to the true resonance of the disc and produces the loudest sound (So it’s used in alarms). There is no firmware or MCU involved so it is cheap. Since it’s “auto-tuned”, even changing enclosure will affect its sound output slightly.

The other is a 3-pin module. Pins are VCC, GND, and SIG. The element inside is still two-pin; a small PCB adds a transistor so an MCU pin can switch it to produce sound.

Anyways, everything above was about using piezos to create sound by pumping energy in and flexing the disc. The reverse is sensing. The same ceramic generates a voltage when you press, bend, or tap it. That means you can detect knocks, vibration, even airflow, and in some cases harvest energy from motion. I’ll keep this post focused on buzzers for now, but we can dive into piezo sensor front-ends, buffering that high impedance, filtering etc in the future.

If you liked the post, Share it with your friends!

Back to Basics: RRAM

I was looking up on the latest microcontrollers and noticed something interesting, the tech behind the non-volatile memory used to store code is shifting away from traditional Flash memory. When I read more, I saw it’s being replaced by something called RRAM (Resistive Random Access Memory). Thought I’d share about that today.

Resistive RAM

It’s essentially a very simple memory that stores data by changing resistance in a tiny metal-insulator-metal structure. An applied voltage creates microscopic conductive filaments, toggling between high and low resistance states for storing 1 or 0 permanently.

But why the shift away from Flash memory? Flash has been in embedded applications for a long time, but it struggles below roughly 28nm process nodes. Below these nodes, Flash integration gets complicated and expensive because of multiple extra masking steps, and isn’t naturally compatible with newer FinFET transistor technologies. That’s one reason why you see some microcontrollers not having on chip flash memory and rely on external flash chips like RPI Pico series. Flash still offers proven reliability and high density for nodes above 28nm.

RRAM uses a simpler structure that’s easily integrated into advanced FinFET nodes below 10nm. This drastically simplifies system design, reduces costs, and saves board space. RRAM is also better than Flash in many areas. It writes data at around 10ns, supports multi-level storage for greater density, similar data retention time(>10yrs) and consumes much less power. These make RRAM ideal for embedded uses, like firmware updates, fast booting, data logging, and sensor data storage in IoT and automotive systems.

Personally, I think the shift towards RRAM is great because it brings the best features of Flash and DRAM by combining non-volatility with high speed, scalability, and energy efficiency.

BTW: The energy needed to switch a single bit in RRAM is just a few femto-joules. That’s roughly the same energy our brain uses to fire a single synapse. Low power indeed.

If you liked the post, Share it with your friends!
1 2 3 4 86