Mathematics and circuit simulation

Click For Summary

Discussion Overview

The discussion revolves around the mathematical modeling of electronic circuits, particularly focusing on the behavior of circuits involving the IC 555 timer. Participants explore how calculus and differential equations can be applied to describe circuit behavior, as well as the use of circuit simulation software for analysis and modeling.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses a desire to derive circuit behavior mathematically, questioning how the output of the IC 555 can be smoothed into a sine wave by certain components.
  • Several participants recommend circuit simulation software, such as LTSpice and CircuitMaker, highlighting their features and ease of use for both analog and digital simulations.
  • There is a suggestion that mathematical modeling involves building a physical model and using KVL and KCL as foundational principles, but that intuition and physical understanding are also necessary.
  • One participant mentions that differential equations can be solved using Laplace transforms, but notes that this method is typically applicable only to linear systems.
  • Another participant raises a question about how electronics engineers model complex ICs like the 555 timer, and discusses the use of sub-circuits in LTSpice to represent such components.
  • There is a mention of downloadable libraries for components, including the 555 timer, which can be used in simulation software.

Areas of Agreement / Disagreement

Participants generally agree on the utility of circuit simulation software for modeling, but there are differing views on the role of mathematics in understanding circuit behavior and the complexity of modeling ICs. The discussion remains unresolved regarding the best approaches to mathematical modeling of circuits.

Contextual Notes

Participants express varying levels of familiarity with circuit simulation software and mathematical modeling techniques, indicating a range of assumptions about prior knowledge and experience in electronics.

ZPlayer
Messages
35
Reaction score
0
Hi, Everyone.

I am new to electronics in general so I have a rather uninformed question. It seems that a lot of circuits out there are presented "as is" without necessary mathematical calculations. When I took my physics, we were taught KCL, KVL, RLC etc. I enjoy deriving circuit behavior using math alone. The other day I verified LC tank voltage solve second-order ODE :)

For example, the other day I looked at this circuit: http://www.uoguelph.ca/~antoon/circ/555dcac.html . Is it possible using calculus, differential equations and other math/electronics rules to describe why the square (pulse) output of the IC555 will be smoothened into sine wave by C4 and L1 ? Also, is there a general FREE software that I could use for comprehensive circuit simulation, so that mathematical expressions behind circuit function are shown?

Thanks to all.
 
Last edited by a moderator:
Engineering news on Phys.org
I suggest getting CircuitMaker Student Edition - it is freeware. This was the first circuit simulation software I used...

You can literally place the components and start the Simulation - both Analog and Digital

It is good as it requires no knowledge of SPICE. It can produce Multimeter readings and can produce Graphs of waveforms at certain points (chosen by the user) in the circuit.

Download Circuitmaker from here
http://babbage.cs.qc.edu/courses/cs343/Circuit_Maker/

Note: There is a Professional Edition of CircuitMaker, but it requires a budget... Of course if you have a budget you want to buy Electronics Workbench which has very interactive live simulations.
 
Last edited by a moderator:
Circuit simulation packages will "do it for you".

I believe your question really falls into the realm of mathematical modeling. You build a physical model, describe it mathematically and prep it for "use". That is how you get a set of tools. KVL, KCL are really restatements of energy and charge conservation. These, along with voltage-current relationships for linear and nonlinear elements give you the circuit model. Math alone won't help you solve circuit problems. You need to have a physical feel for the problem. Math is just the language of coherence and analysis. You need to make assumptions about how electrons will move, how conductors will behave and so on, to make any real progress.

But I think that to make good progress with circuits (both on paper and in practice) you need to have an intuitive functional feel and a decent knowledge of the numbers. Computer programs will (as Redbelly98 has pointed out) solve equations numerically...if you are looking for a mathematics-oriented approach, it would be good to do some of the work on paper and compare it with the software generated results.

Electronics Workbench is a pretty powerful tool..
 
Yes, you can describe the behavior of such circuits analytically. The appropriate differential equations are typically solved with Laplace transforms in the complex s plane. Look at books on "network theory" in your university library. (Sorry I can't recommend a particular book: the one on my shelf is out of print [Gupta, Transform and State Variable Methods in Linear Systems].)
 
Thanks to all who have replied to my original post. I was able to install LT Spice and have already modeled a simple RC circuit. I was wondering how do electronics engineers treat IC s (e.g. IC 555) for mathematical modeling. How is it possible to let the computer program know about the complex arrangement of op amps and transistors on the chip, so it model its behavior?
 
marcusl said:
Yes, you can describe the behavior of such circuits analytically. The appropriate differential equations are typically solved with Laplace transforms in the complex s plane. Look at books on "network theory" in your university library. (Sorry I can't recommend a particular book: the one on my shelf is out of print [Gupta, Transform and State Variable Methods in Linear Systems].)

IIRC, Laplace transforms only work for linear systems, eg. resistors, capacitors, and inductors. If your circuit has a diode or transistor, forget it.
 
ZPlayer said:
I was wondering how do electronics engineers treat IC s (e.g. IC 555) for mathematical modeling. How is it possible to let the computer program know about the complex arrangement of op amps and transistors on the chip, so it model its behavior?

I'll address that shortly, but first: if you want a quick way to see what happens to the 555 output when filtered by the rest of the circuit, make an LTSpice circuit with a square wave voltage source and the part of your circuit that has R3, C4, L1, T1, Q1, Q2 and the "+5 to +15V" constant voltage.

It is possible to build sub-circuits to model things like op-amps and 555's, and then import them into LTSpice as single components. I know this has been done for op-amps and probably has been done for 555's as well. A lot of people have put their sub-circuit model files up at the Yahoo group (see link below), and that is also a good place to get advice. They do prefer that you try searching their message archives before asking questions, I guess to keep unnecessary traffic down to a minimum.

There is a learning curve to using subcircuits and models, but it is worth it once you get the hang of it.

If you haven't already, I recommend (1) joining the Yahoo group and (2) downloading the User's Guide:
http://ltspice.linear.com/software/scad3.pdf

At the Yahoo group, you can explore the "Files" section and look for op-amp and 555 models:
http://tech.groups.yahoo.com/group/LTspice/

Good luck and have fun!

Mark
 
Last edited by a moderator:
ZPlayer said:
Thanks to all who have replied to my original post. I was able to install LT Spice and have already modeled a simple RC circuit. I was wondering how do electronics engineers treat IC s (e.g. IC 555) for mathematical modeling. How is it possible to let the computer program know about the complex arrangement of op amps and transistors on the chip, so it model its behavior?

That would be a worthy challenge if that's what you want to do. However, components like the 555 are treated as drop-in circuit elements. LT has a downloadable library of components.

http://www.linear.com/designtools/software/spice_models.jsp"

If LT makes a version of the 555, it should be in there.
 
Last edited by a moderator:

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 56 ·
2
Replies
56
Views
6K
Replies
20
Views
3K
  • · Replies 6 ·
Replies
6
Views
8K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K