当前位置:网站首页>Introduction to LTSpice circuit simulation
Introduction to LTSpice circuit simulation
2022-06-28 16:49:00 【Alarm rise】
We have done some in the early stage STM32 Combined with the embedded program development of various sensors , At present, it has been basically completed . The goal at this stage , We need to build a sensor module by ourselves , There are some circuit structures involved in the sensor module , We need to do this before the actual mass production , Do some circuit simulation experiments , So as to verify whether the circuit structure we built is reasonable and efficient . Based on this demand , We need to learn circuit simulation software —— LTspice
1. LTspice Introduce
There are many kinds of circuit simulation software in the market , We choose LTspice Because of him free . We are directly in the Official website download LTspice , install , start-up , You can use .
The official website is quoted here LTspice As a reference :
LTspice It's a high performance SPICE Simulator software , Including schematic capture graphical interface . Schematic diagrams can be detected to produce simulation results , adopt LTspice Built in waveform viewer for easy exploration . And others SPICE Solution compared to ,LTspice The enhancements and models of the improved analog circuit simulation .
2. Circuit simulation
Circuit simulation actually involves a lot of basic knowledge about circuit principles , Without or remembering the basic operating principle of the relevant circuit elements , Hastily conduct simulation experiments , There will be ambiguous understanding problems . So , We need to learn to use LTspice In the process of , Keep learning or reviewing the basic knowledge of circuit principle . Here we choose to open a section , It is used to record the basic knowledge of circuit principle learned or reviewed .( The circuit principle is based on the basic circuit components )
2.1 Circuit principle
Voltage source
Voltage source , Ideal voltage source , It doesn't exist in real life . So why do we often mention this name , We call the power supply used in our experiment a voltage source . That's because , The internal resistance of the power supply used in our experiment is very small , The external load impedance is very large , Then the internal resistance of the power supply is very small relative to the load impedance . In this huge internal and external impedance gap , When we change the external impedance , Load current changes , The voltage on both sides of the power supply will not change . therefore , The voltage source has one characteristic , The voltage at both ends of the voltage source is determined , It does not change with the change of the current flowing through him .
Current source :
Current source , Ideal current source , It also doesn't exist in real life . The current source used in our experiment , Its internal resistance is very large relative to the impedance of the load . When the difference between internal and external impedance is so large , Load impedance changes , The current in the circuit basically does not change , Because the current in the circuit is controlled by the current source ( voltage / resistance ) decision . therefore , The current source has one characteristic , The output current of the voltage source is constant . Sum up , We can find out , The origin of current source and voltage source , It is a definition produced by the great difference between the internal resistance of the power supply and the load impedance . Let's have a look , The internal resistance of the current source is infinite , The internal resistance of the voltage source is infinitely small .
How to make the ideal current source and voltage source in the laboratory is also an engineering problem worth thinking about .

RC Discharge circuit :
We use it LTspice Make one RC The discharge circuit is as follows :
In the initial state , capacitance C1 by 1v,R1 by 1K, Capacitance from 0ms Start discharging at any time , The following discharge curve is obtained :
capacitance C1 Start discharging , Voltage on both sides v+ Gradual decline . meanwhile , Due to the constant discharge of the capacitor , The capacitor voltage drops ,R1 remain unchanged , The current in the circuit also drops gradually .(-1mA To 0mA)
Next we'll think about , What affects capacitance C1 The discharge rate . According to a diagram in the textbook of circuit principle , as follows :
We found that , capacitance C1 Discharge rate and time constant τ(tao) relevant ,τ For the definition of :τ = R*C. According to this theory , The capacitance is about 3τ The discharge ends at this time point .
We go back to LTspice It's done RC Discharge circuit , Calculate by formula ,3τ = 3 * R * C = 3 * 1K * 1u = 3ms. in other words C1 stay 3ms The basic discharge ends at ,C1 The voltage at both ends is close to 0V, This verifies that the theory in the book is consistent with the phenomenon obtained by our simulation .
How to speed up capacitance C1 The discharge rate , We need to lower τ, That is to reduce R*C Value . In the case of keeping a variable constant , Lower another .
Think about it in a different way , from R and C The circuit can realize the filtering effect . Why? ? Add such a circuit to a standard sine wave , It can attenuate sine wave , The sine wave will gradually weaken to 0, That is, it has the effect of filtering . Here's the picture :
Voltage source review again :
We usually use a voltage source to generate some DC voltage in the laboratory , Or produce some varying voltage , Such as : square wave , Triangle wave , Sine wave . Their simulation method is very simple , Directly select the voltage source symbol , And configure waveform parameters , We draw the following figure :
DC voltage 0.5V ( Red ), Throughout 10ms In a straight line in time .
square wave ( Sky blue ),2ms For a cycle , high voltage 0.5V continued 1ms , Low voltage 0V continued 1ms.
Triangle wave ( Blue ),2ms For a cycle , The rising edge is 1ms, The falling edge is also 1ms.
Sine wave ( Pink ),1ms For a cycle , The frequency is 1KHz.
look , This very standard voltage waveform is very easy to draw . So what if we want to draw the waveform of a specific function ? such as , We want one Step signal To test our system input . At this time, we need to define the input in the form of function . First , According to the circuit theory, we know that the step function is u(t). We are LTspice Select... From the catalog of Arbitrary behavioral voltage source Components , And give him a step function :V=u(time). For the convenience of observation , Let's write the function as :V=0.5*u(time-2m), Set the voltage amplitude to 0.5V, The step signal shifts to the right 2ms, The following step signal waveform is drawn :
thus , We customize V=f(t) function , The voltage waveform of any function can be obtained , As system input , To test our system performance .
xxx:
边栏推荐
- Cloud sports, 360 ° witnessing speed and passion
- How to clear the cache in WordPress
- 中国SSD行业企业势力全景图
- Noip1998-2018 popularization group csp-j2 2019 2020 problem solving report and video
- MySQL self connection query "suggestions collection"
- LDD 知识整理
- 【TcaplusDB知识库】TcaplusDB限制条件介绍
- How to query all the data in a table in the database?
- visio 使用
- Hello, is it safe to open an account to buy stocks online?
猜你喜欢
Csp-j1 csp-s1 preliminary training plan and learning points in summer and September 2022
Lucky draw animation - Carp jumps over the dragon's gate
7-用户输入和while循环
MATLB|可视化学习(plot和bar)
Introduction to reverse commissioning PE structure details 02/07
【Golang】安装 iris 的方法
NOIP普及组2006-2018初赛 2019 CSP-J1 2020 CSP-J1 完善程序题
大型体育赛事与犯罪风险
使用 Open Connector 进行 HubSpot 和 SAP 系统的集成工作
基数排序——【常见排序法(2/8)】
随机推荐
批量修改指定字符文件名 bat脚本
Can Huawei become a "brother of lipstick" or a "Queen of goods"?
Super automation and the future of network security
Must the database primary key be self incremented? What scenarios do not suggest self augmentation? ByteDance experience sharing using Flink state 𞓜 afternoon tea with sauce issue 16
如何备份 WordPress 数据库
一次简单的反射型XSS操作及思路
3. Caller 服务调用 - dapr
抓取手机端变体组合思路设想
【Hot100】3. 无重复字符的最长子串
QQ出现大规模盗号,为什么会这样?就没有解决方法了吗?
A simple reflective XSS operation and idea
Please ask me, the queries written in my database account for 99%. Is it better to use pay as you go mode or reservation mode?
[random talk] January 31, 2021 Oh Huo
Tongziping, partner of Tongchuang Weiye: "what should yuan universe invest in?"
C#/VB.NET 将PDF转为Excel
[golang] how to install iris
Curve 替换 Ceph 在网易云音乐的实践
【TcaplusDB知识库】查看业务密码
MySQL auto - Connect Query recommended favorites
MySQL self connection query "suggestions collection"