Sunday, 22 January 2017

Design Calculations for the Seasoned EE


Do seasoned designers tend to do a fair amount of calculations or are large parts of circuits designed intuitively? I'm asking because it seems like design engineers tend to have a sense of what value cap you want to have here, resistor there, for common parts of circuits. If that's the case is it because they're just recycling designs? To the novice this is mind blowing. Though, books like the Art of Electronics seem to encourage the approach of making approximate calculations on the fly.



Answer



I'm a professional electrical engineer who routinely designs new circuits for volume production, and have been for over 35 years.


Yes, I frequently do calculations to determine the exact part specs. There are also many cases where experience and intuition are good enough and the requirements loose enough that I just pick a value. Don't confuse that with a random value, though.


For example, for a pulldown resistor on the MISO line of a SPI bus, I'll just spec 100 kΩ and be done with it. 10 kΩ would work fine too, and someone else picking that wouldn't be wrong either. If I'm using a 20 kΩ resistor elsewhere, then I might spec another one on the MISO line to avoid adding another part to the BOM. The point is sometimes you have a lot of leeway, and intuition and experience are good enough.


On the other hand, looking at the schematic of my latest design, which I'm in the middle of bringing up first boards of now, I see a case where I spent some time not only specifying the part value but calculating the result of variance on the rest of the system. There were three cases of two resistors used in the feedback to a switching power supply. Here is the problem worded like homework:



A powersupply chip feedback input threshold is 800 mV ±2%. You are using three instances of this chip, to make the 12 V, 5 V, and 3.3 V power supplies. You have previously decided to use around 10 kΩ for the bottom resistor of each voltage divider. Determine the full resistor specs in each case, and determine the min/max resulting nominal supply voltage. Stick to readily available resistor values. Use 1% if suitable and spec accordingly.




That's a genuine real world problem that took a few minutes with a calculator. By the way, I determined that 1% resistors were good enough. That's actually what I expected, but did the calculations anyway to make sure. I also noted the full nominal range for each supply right on the schematic. Not only might this be useful to refer to later, but it also shows that this issue was considered and the calculations done. I or someone else won't have to wonder a year later what the tolerance of the 3.3 V supply is, for example, and re-do the calculations.


Here is a snippet from the schematic showing the case described above:



I just picked R2, R4, and R6, but did the calculations to determine R1, R3, and R5, and the resulting power supply nominal ranges.


Added about the SHx parts (response to comment)


The SH parts are what I call "shorts". These are just copper on the board. Their purpose is to allow a single physical net to be broken into two logical nets in the software, which is Eagle in this case. In all three cases above, the SH parts connect the local ground of a switching power supply to the board-wide ground plane.


Switching power supplies can have significant currents running across their grounds, and these currents can have high frequency components.


Much of this current just circulates locally. By making the local ground a separate net connected to the main ground in only one place, these circulating currents stay in a small local net and do not cross the main ground plane. The small local ground net radiates far less, and the currents don't cause offsets in the main ground.


Eventually power has to flow out of a power supply and return via the ground. However, that current can be filtered much more than the high frequency internal currents of a switching power supply. If done right, only the well behaved output current of the switcher makes it out of the immediate vicinity to other parts of the overall circuit.


You really want to keep local high frequency currents off the main ground plane. Not only does that avoid the ground voltage offsets those currents can cause, but it prevents the main ground from becoming a patch antenna. Fortunately, many of the nasty ground currents are also local. That means they can be kept local by connecting the local ground net to the main ground in only one spot.



Good examples of this include the path between the ground side of a bypass cap and the ground pin of the IC it is bypassing. That's exactly what you don't want running across the main ground. Don't just connect the ground side of a bypass cap to the main ground thru a via. Connect it back to the IC ground via its own track or local ground, then connect that to the main ground in one place.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...