Electronics-Related.com

How to Estimate Encoder Velocity Without Making Stupid Mistakes: Part II (Tracking Loops and PLLs)

Jason SachsJason Sachs ● November 17, 2013●13 comments

Jason Sachs explains why simple differentiation of encoder counts often fails and how tracking loops and PLLs give more robust velocity estimates. Using a pendulum thought experiment and Python examples, he shows how a PI-based tracking loop reduces noise and eliminates steady-state ramp error, and why vector PLLs with quadrature mixing avoid cycle slips and atan2 unwrap pitfalls in noisy or analog sensing.


Another 10 Circuit Components You Should Know

Jason SachsJason Sachs ● October 30, 2013●1 comment

Jason Sachs walks through ten underrated circuit components every embedded engineer should know, from bus switches and thermocouple signal ICs to PCB stiffeners and opto-FET isolators. He mixes practical part examples, high-current hardware tips, and MCU features like CTMU and Peripheral Pin Select so you can pick the right trick when space, isolation, or precision matter.


Short Takes (EE Shanty): What shall we do with a zero-ohm resistor?

Jason SachsJason Sachs ● October 19, 2013●3 comments

When you need flexibility on a PCB, zero-ohm resistors are the obvious shortcut, but Jason M. Sachs shows why the label zero is misleading. He compares common SMT jumper specs, high-current specialty parts, and a practical workaround using 1 milliohm resistors to avoid voltage drop. Read this for a quick checklist to pick jumpers that actually carry your board's current.


BGA and QFP at Home 1 - A Practical Guide.

Victor YurkovskyVictor Yurkovsky ● October 13, 2013●4 comments

It's a myth that BGAs and fine-pitch QFPs can't be soldered at home. Victor Yurkovsky lays out a practical, no-frills approach for hobbyists to design and assemble FPGA boards using 2-layer PCBs, breakout modules, and low-cost reflow methods like toaster ovens or hotplates. The article focuses on manufacturable PCB choices, netlist-driven workflows, and power/decoupling tactics that make high-density parts approachable for amateurs.


3 LEDs powered by fingers - puzzle

Henryk GasperowiczHenryk Gasperowicz ● October 8, 2013●1 comment

The post presents a compact electronics puzzle: a demonstration video that shows three LEDs reportedly powered by fingers. The author invites readers to watch the short movie and reverse-engineer the design, asking “How does it work?” rather than providing an explanation. The write-up targets hobbyists and circuit sleuths, prompting them to observe contact points, timing, and visible wiring, then form and test hypotheses about possible mechanisms. It frames the problem as an experimental challenge — encouraging hands-on verification, sharing measurements, and discussing candidate explanations such as conduction paths, coupling effects, or hidden circuitry — without revealing the solution, to stimulate community analysis and learning.


Series circuit - 3 LEDs

Henryk GasperowiczHenryk Gasperowicz ● September 24, 2013●1 comment

The post 'Series circuit - 3 LEDs' presents only a short prompt — "How does it work??? Solution:" — without any accompanying explanation, schematic, or component values. It therefore poses a clear question about the operation of three LEDs arranged in series but supplies no data to allow analysis. The entry functions as a request for a solution or follow-up discussion, implicitly asking for missing parameters such as supply voltage, LED forward voltages, and any current-limiting resistor. The post highlights the importance of including full circuit details when seeking help and invites contributors to provide the schematic or measurements needed to deliver a correct and practical explanation.


Video: The PN Junction. How Diodes Work?

Stephane BoucherStephane Boucher ● September 20, 2013

The post points readers to a concise video that demonstrates the PN junction and explains how diodes work. Presented as a short endorsement, the author highlights the video’s visual approach as an accessible way to grasp fundamental semiconductor behavior. The entry serves as a quick recommendation for electronics students, hobbyists, and engineers seeking a visual primer on diode basics without an in-depth written tutorial. It frames the video as an engaging, easy-to-watch resource that complements technical study or classroom material, rather than replacing detailed textbooks or datasheets.


Lost Secrets of the H-Bridge, Part III: Practical Issues of Inductor and Capacitor Ripple Current

Jason SachsJason Sachs ● August 24, 2013●3 comments

Jason Sachs cuts through the math to show what ripple current actually does to H-bridge hardware. He explains why peak current is the limiting factor for inductors, why capacitor ESR usually dominates DC-link voltage ripple, and how center-aligned PWM and duty selection reduce harmonics and ripple. Read this if you want practical rules of thumb and calculation templates for real power-electronics designs.


Lost Secrets of the H-Bridge, Part II: Ripple Current in the DC Link Capacitor

Jason SachsJason Sachs ● July 28, 2013

DC link capacitor ripple often determines capacitor life, yet the H-bridge waveform has a lot more structure than you might expect. Jason Sachs separates capacitor current into ramp and pulse components, derives closed-form peak and RMS expressions for edge and center PWM, and shows harmonic amplitudes. The post includes Python simulation so you can visualize the waveforms and apply the formulas to capacitor selection and EMI analysis.


Lost Secrets of the H-Bridge, Part I: Ripple Current in Inductive Loads

Jason SachsJason Sachs ● July 8, 2013

Jason Sachs digs into what PWM switching actually does to current in an H-bridge with an inductive load, and why that ripple matters for motors and power converters. He derives closed-form ripple formulas, shows how to compute a reference current I_R0 = VDC·T/L, and uses Python and sympy to plot and verify results. Read it for practical rules to halve ripple and raise its frequency.


Somewhat Off Topic: Deciphering Transistor Terminology

Rick LyonsRick Lyons ● May 28, 2019●4 comments

Rick Lyons unpacks a small linguistic mystery in electronics, revealing why the transistor's middle terminal is called the "base". He traces the name to the 1949 Bell Labs "semiconductor triode", where the device sat on a metal base plate described as a large-area low-resistance contact, and notes that later transistor sandwich designs kept the name for historical reasons. The post includes original references and a few trivia nuggets.


Launch of EmbeddedRelated.tv

Stephane BoucherStephane Boucher ● February 21, 2019

Stephane Boucher launches EmbeddedRelated.tv to host live broadcasts from Embedded World, starting next week. The site will show a constantly evolving schedule, a Live! tab to find ongoing streams, and ad-hoc demos added from the show floor. Expect schedule conflicts and small hiccups, and plan to refresh the page and join the forum thread for real-time updates and feedback.


Specifying the Maximum Amplifier Noise When Driving an ADC

Rick LyonsRick Lyons ● June 9, 2014●8 comments

You can quantify how much amplifier noise is acceptable before adding gain actually hurts an ADC's output SNR. Rick Lyons presents a compact rule showing the amplifier input-referred noise power must be less than (1 - 1/α^2) times the ADC's q^2/12 quantization noise power, with Eq. (8) and a pair of figures that make it easy to pick or specify the right amplifier for a given gain α.


Feedback Controllers - Making Hardware with Firmware. Part 4. Engineering of Evaluation Hardware

Steve MaslenSteve Maslen ● October 10, 2017

This installment follows the hardware from concept to first power-up for a low-latency feedback controller and arbitrary circuit emulator. It walks through the practical engineering steps, from requirements, block diagrams, and issue tracking to component selection, simulation, PCB planning, purchasing, and staged bring-up. The result is a realistic look at how careful due diligence and a few trade-offs turned a research idea into working evaluation hardware.


Ancient History

Mike RosingMike Rosing ● January 18, 2016●8 comments

Technology moves fast, and the tools, platforms, and assumptions you rely on can become outdated almost overnight. In this reflective post, the author contrasts the rapid evolution of embedded development with the much slower pace of social change, from programming turnaround times to the underrepresentation of women in engineering. It is a reminder to keep learning, but also to think about how we work and who gets included.


Feedback Controllers - Making Hardware with Firmware. Part 3. Sampled Data Aspects

Steve MaslenSteve Maslen ● September 9, 2017

This article digs into practical sampled-data issues you must address when building feedback controllers for circuit emulation. It highlights a common MATLAB versus Simulink discrepancy caused by DAC holding, explains why FOH (ramp-invariant) c2d conversion matters, and surveys latency, bit depth, filter and precision trade-offs. It also lists candidate ADCs, DACs and FPGAs used in a real evaluation platform to guide hardware choices.


Feedback Controllers - Making Hardware with Firmware. Part 9. Closing the low-latency loop

Steve MaslenSteve Maslen ● July 9, 2018

This article demonstrates combining DSP and feedback-control on an Intel Cyclone floating-point FPGA to build low-latency closed-loop circuit emulators and controllers. Using a single floating-point biquad at 1.6 Msps, an IFFT multi-tone 4.096 ms capture for wideband measurement, and MATLAB references for verification, the author achieves sub-nanosecond timing insight and applies DSP phase compensation to cancel about 100 pF of PCB parasitics.


3 Good News

Stephane BoucherStephane Boucher ● March 9, 2016●1 comment

Stephane Boucher reports three quick wins for the EmbeddedRelated community: two sponsors have seeded a $1,000 rewards pool, the site now serves all pages over HTTPS, and the new forums have their first active discussions. If you want a share of the sponsor-funded rewards, jump into the forums and check the Vendors Directory for opportunities. Stay tuned for more updates.


Feedback Controllers - Making Hardware with Firmware. Part 2. Ideal Model Examples

Steve MaslenSteve Maslen ● August 24, 2017

An engineer's guide to building ideal continuous-time models for hardware emulation, using TINA Spice, MATLAB and Simulink to validate controller and circuit behavior. The article shows how a passive R-C network can be emulated by an amplifier, a current measurement and a summer, with Spice, MATLAB and Simulink producing coincident Bode responses. Small phase differences between MATLAB and Simulink are noted, and sampled-data issues are slated for the next installment.


ESC Boston's Videos are Now Up

Stephane BoucherStephane Boucher ● June 5, 2017

Stephane Boucher shares the videos he produced from ESC Boston, including a short highlight montage, a booth video for DLOGIC, and full talk clips from the conference. He also reflects on what he learned shooting on the show floor, especially the challenge of getting engineers on camera. It’s a quick behind-the-scenes look at technical event videography, with a preview of his next stop in Germany.