In order to simulate a wireless sensor in ltspice, i need to model a load which draws 25mA current for 1sec every 10 min. Rest of the time it draw 40uA. Is there any way to do that?. I tried behavioral modelling but there are only behavioral sources. Instead of drawing 25mA its generating 25mA
Electronic – Behavioral current sink in ltspice
loadltspicesensor
Related Topic
- Electrical – How to work out which pin is which in SPICE model
- Electronic – Behavioral inductor (current dependent) in LTspice
- Electronic – 3-Phase Inverter simulation
- Electrical – LTSPICE Simple MOS-FET Stacked Current Mirror/Cascode saturation threshold less than expected
- Electronic – Lookup tables in LTspice
- Electronic – LTspice simulation, timestep too small error
- Electronic – Getting an unencrypted PSPice PSU Control IC working in LTSpice
Best Answer
For the purpose of simulation, just add a current source with
PULSE 40u 25m 600 1m 1m 1 600
. The delay ensures it starts with no load, can be set to any value. The pulse width is not exactly1 s
, the precise value would be999 ms
. And if you are concerned about drawing current when there's no output, just add the flagload
after the expression. From the manual:Or you can add a behavioural source with whatever expression you want. Versatility is their game. For example, if
V(out)
is the output voltage, add a reference voltage source with the same settings as thePULSE()
current above, label the noderef
, and useI=u(V(out))*v(ref)
as the expression. This will only draw the required current whileV(out)>=0
.Or concoct your own behavioural load, as the comments mentioned.