Understanding Mesh Circuits How to Use and Calculate Them
Circuit Cellar|October 2024
Microcontrollers and other digital systems concern mostly ones and zeros but when connections to the real word are needed it can get messy. Stuart writes about mesh analysis and how mesh circuits can be calculated and applied in practical scenarios.
Stuart Ball
Understanding Mesh Circuits How to Use and Calculate Them

When working with microcontrollers and other digital systems, we don't usually have to be concerned about anything but ones and zeros, right? But sometimes our MCU has to connect to the real world, and that can be messy. Sometimes we have to use that algebra that we couldn't see the need for in high school to make sure that we get the inputs or outputs we want and do it without damaging anything in the process. And in some cases, mesh analysis is how we handle that. I want to show you a few simple mesh circuits, and how they may be calculated and applied in practical scenarios. If you went to EE school, you probably saw this material in a fundamentals of electrical engineering course.

SIMPLE MESH CIRCUIT

Figure 1 shows a simple mesh circuit of three resistors. For a review of resistors, see my article "Getting Started with Resistors" in Circuit Cellar issue 382. Let's say that we need to calculate the voltage across the 2K resistor R2. This is fairly simple to do using series/parallel resistor calculations. R2 is 2K, R3 is 3K, so the value of R2 and R3 in parallel is 1.2K.

The current through R1 plus the parallel combination of R2 and R3 is:

The voltage across the parallel combination of R2 and R3 is:

2.27ma x 1.2K = 2.73 v

So the current through R2 is 2.73V/2K = 1.36 ma.

This simple example illustrates some general principles of mesh circuits:

•The sum of the currents into a node (connection) is zero. The current flowing into the junction of R1, R2, and R3 has to equal the current flowing out. So the 2.27ma flowing in through R1 has to equal the two currents flowing out through R2 and R3. Note that in doing the calculations, you can (and usually do) assume that all currents are positive, flowing into the circuit. When you do the math, at least one will turn negative.

Denne historien er fra October 2024-utgaven av Circuit Cellar.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

Denne historien er fra October 2024-utgaven av Circuit Cellar.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

FLERE HISTORIER FRA CIRCUIT CELLARSe alt
Build an Interactive Kinetic Wall
Circuit Cellar

Build an Interactive Kinetic Wall

Using a Raspberry Pi 4 and Kinect V1 Camera

time-read
10 mins  |
October 2024
Learn to Program MCUs with uLISP
Circuit Cellar

Learn to Program MCUs with uLISP

Part 1: Crash Course Offers Insight Into Pioneering Language

time-read
10+ mins  |
October 2024
Intelligent Automotive Battery Sensor
Circuit Cellar

Intelligent Automotive Battery Sensor

Shunt Resistors and Evaluation Electronics Offer Two Key Components

time-read
4 mins  |
October 2024
Understanding Mesh Circuits How to Use and Calculate Them
Circuit Cellar

Understanding Mesh Circuits How to Use and Calculate Them

Microcontrollers and other digital systems concern mostly ones and zeros but when connections to the real word are needed it can get messy. Stuart writes about mesh analysis and how mesh circuits can be calculated and applied in practical scenarios.

time-read
10+ mins  |
October 2024
Datasheet: Very Cool Micro Machines
Circuit Cellar

Datasheet: Very Cool Micro Machines

Smartphone Cooling Rounds Out Parade of Advanced MEMS

time-read
2 mins  |
October 2024
Improving Patient Outcomes
Circuit Cellar

Improving Patient Outcomes

Device Technology Advances Medical Practices

time-read
10+ mins  |
October 2024
Bringing Cost-Effective, On-Device AI to Home Appliances - Sparse Weights and Interactions Negate GPUs and Cloud Computing
Circuit Cellar

Bringing Cost-Effective, On-Device AI to Home Appliances - Sparse Weights and Interactions Negate GPUs and Cloud Computing

GPU silicon and cloud computing infrastructure are too costly for mass markets devices like refrigerators and washers. By deploying compute resources only to the necessary parts of AI inference, Sparse AI allows product designers to practically incorporate new AI features like natural voice interfaces into their consumer offerings without breaking the bank or electric bill surprises.

time-read
5 mins  |
September 2024
Thin Film Transistor LED Displays - Visual I/O
Circuit Cellar

Thin Film Transistor LED Displays - Visual I/O

To add a resistive touchscreen on top of a TFT display, Jeff explores the technology offerings and libraries needed to accomplish his task. Calibrating the touchscreen's computed coordinates with the actual pixel coordinates of the display proved difficult with a modular framework but separating functions allows easy expansion.

time-read
9 mins  |
September 2024
Mobile APP Development with React Native
Circuit Cellar

Mobile APP Development with React Native

This month, Bob continues his series on mobile app development from an embedded designer's perspective. He programs a React Native app and he offers guidelines for picking a tutorial for React Native. He further explores how it handles concurrency and asynchronous programming. Bob expected a few nuances during the process but to say there were more than a few would be an understatement.

time-read
9 mins  |
September 2024
Power Analysis Over JTAG Ports: Hidden Debug Dangers - Block Side-Channel Analysis Attacks
Circuit Cellar

Power Analysis Over JTAG Ports: Hidden Debug Dangers - Block Side-Channel Analysis Attacks

Small changes in the phase of clock signals can encode power leakages. An attacker can use standard interfaces such as the JTAG port to drive clocks across targets, using them as measurement techniques for sidechannel analysis attacks despite limited physical access. This article demonstrates how you can test devices for vulnerability and how to modify devices to prevent attacks.

time-read
7 mins  |
September 2024