Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: Trying to simulate a 27Mhz receiver. Couple of questions
Chuck asked about radio receiver simulations: ? ? "1.How do I add a antenna. Or can I use a 27Mhz voltage source." SPICE doesn't do antennas.? Yes, you can use a signal source, connected to the appropriate point in your circuit.? I'd recommend a voltage source in series with a resistance, because I'm sure the antenna doesn't behave like an ideal voltage source, and it would likely mess up your receiver circuit if driven directly by a voltage source. ? ? "Need to modulate it with 1K sig. How do I modulate the 27Mhz." There are a lot of ways to do that, depending on how you want it to be modulated.? AM?? FM?? PM? LTspice has a most helpful circuit element, called "Modulate".? It is an AM and FM modulator.? I strongly urge you to use that, rather than any other method for making an AM or FM signal for simulations.? Find it in the Components menu, in the [SpecialFunctions] folder.? You'll have to scroll to the end to find it.? The "Modulate2" component is the same except that it has quadrature (Sine and Cosine) outputs. To use them, connect the 1kHz voltage source to either the AM or FM input (not both).? The other input can either be connected to a suitable voltage, or left floating.? Then right-click on the Modulate symbol, and add these two parameters to the Value field: ? ? Mark=27MEGHz? Space=27MEGHz The Space parameter value will be the output frequency when the FM input voltage is 0V. The Mark parameter value will be the output frequency when the FM input voltage is 1V. Note that SPICE requires "MEG".? If you use "MHz" you'll get milliHertz.? Can be just "MEG" because SPICE ignores what comes after it. If you want the signal to be AM, you can set both Mark and Space to 27MEGHz and leave the FM input disconnected or grounded. If you want AM, the voltage that you apply to the AM input pin needs to be suitably offset, so that its value never goes negative.? When the voltage at the AM input just reaches 0V on the negative peaks, you are at 100% modulation, so anything more than that would be overmodulation.? Yes you could do that, but then you don't have a proper AM signal anymore. The output of the Modulate device has a 1 ohm output impedance.? So you probably should add a series resistor between it and your receiver circuit.? How much resistance, well that depends on what sort of antenna you have.? You might also want to attenuate the signal too -- either that, or drive the AM input with a very small voltage. ? ? "How can I tune a tank circuit? Variable cap? Model somewhere?" Do you want to change the tuning during a simulation?? It's probably better to run a simulation, then change the tuning and run another.? Use the .STEP command to automate this process. If you do want to vary a capacitor during a simulation, be careful because it's not just a matter of changing its capacitance.? That would violate conservation of charge.? LTspice lets you overcome that problem by specifying the charge instead of the capacitance.? See the Help page for capacitors. If you run into problems with your simulations, consider uploading the circuit you've done to the "Temp" folder, and send a message with your questions. Regards, Andy |
Trying to simulate a 27Mhz receiver. Couple of questions
Actually a BUNCH of questions. LOL ? 1.How do I add a antenna. Or can I use a 27Mhz voltage source. Need to modulate it with 1K sig. How do I modulate the 27Mhz. Was able to model a sine wave source at 27Mhz but sticking the 1K signal on that is what is got me stumped.? Trying to simulate a "toy" receiver? How can I tune a tank circuit? Variable cap? Model somewhere? Can't use the PC out of the toy. Want to be able to turn VCC on and off to save battery life.? Brand new to spice and not the sharpest pencil in the drawer, so I really need some help.? Thanks Chuck |
Re: Is there any good 8 Ohm 0.5W loudspeaker model?
¿ªÔÆÌåÓý
I am sorry if I sound ignorant or misled by my own lack of understanding the problem at hand but a little while ago In this forum I derived some equations for simulating an electrostatic loudspeaker using what is similar to the old type analogue computer approach
to simulate in LTspice the variation of capacitance with the voltage having assumed that the charge on the membrane remains constant. (also made reference to Weakepidia on the internet to try to get some understanding of how the ELECTROSTATIC loudspeaker works
basically) I am not an Audio engineer and I have not as yet fully explained the interesting curves I got. Unfortunatey, neither did the person who paused the question to the forum replied nor make any
comments on my brief work despite my publication in this forum of my hand written derivations. I still have my hand written notes and equations. The reason I have mentioned this work is that It occurs to me that by making inferences to the first law of thermodynamics
one can work out the power developed within the speaker having? taken the energy stored in the capacitors or electric field developed and more accurately consider the losses incurred in the process. If you are interested in my Ideas, please reply to this e-mail
and we will exchange views.? I think it would be interesting.
Best regards,
Michael P Kiwanuka
From: LTspice@... on behalf of rjc@... [LTspice]
Sent: 21 November 2018 18:25 To: LTspice@... Subject: [LTspice] Re: Is there any good 8 Ohm 0.5W loudspeaker model? ?
?
think of it this way - the loud speaker is like a
or a with relatively poor ratio that is near
input
google[] , []
SUM :: for adequate model you should include the physical membrane displacement tracking . . . which would make the model over exhaustive for processing power point of view -- that unless you succeed to define some simplified
mathematical model that relates the electrical I/O to mechanical response (the analogy is the
(about ) , etc. ...)
|
Re: radiated noise from a twisted set wire
¿ªÔÆÌåÓýAnother important point is the "twisted pair" requirement. The question seems to have an implied EMI (Electro-Magnetic Interference flavor.? On that assumption, I mention that not only is the radiated power dependent on the frequency components of the current in the wires, there is a spacial factor as well.?? High rate twists will tend to cancel the low frequency radiation patterns if the current "out" is balanced by the current "back".? I.e., the area of the loop formed by the current loop of the wire spacing and that loop can include the earth return if the current is essentially outbound from the source and coming back in some other path than the 3 wires.? Unless the 3 wires are a differential pair with a single wire shield, you are pretty much assured of unbalance and higher radiated energy.? Modeling the spatial factors in LTspice is not something I would even begin to try.? RF modelling software that includes 3-dimensional object modelling along with electrical factors is called for in this instance.Regards, Charles Patton On 11/21/2018 9:50 AM, Andy
ai.egrps@... [LTspice] wrote:
? |
Re: Is there any good 8 Ohm 0.5W loudspeaker model?
think of it this way - the loud speaker is like a or a with relatively poor ratio that is near input google[] , [] SUM :: for adequate model you should include the physical membrane displacement tracking . . . which would make the model over exhaustive for processing power point of view -- that unless you succeed to define some simplified mathematical model that relates the electrical I/O to mechanical response (the analogy is the (about ) , etc. ...) |
Re: radiated noise from a twisted set wire
flpierson wrote: ? ? "What I need to do is take the FFT of the average current of the three wires. How do I go about doing that?" First, define what you mean by "the average current of the three wires." I don't even know what "average current" means in the context of an FFT.? Usually an FFT operates on a waveform.? When you average that waveform, you no longer have the waveform; you have just a number.? You can't take an FFT of a number.? Does "average" mean "filtered" or "smoothed"?? Why bother doing that?? Can't you just take the FFT of the current as it is? What do you mean by "the three wires"?? Do you want the FFT of the current through each wire -- hence, three FFT spectra?? Or do you want the FFT of something like the net current of all three wires combined? In LTspice it's easy to get the FFT of any number of signals.? Plot the ones you want on a waveform plot, then right-click > View > FFT.? Here, you can choose how many data samples, the time range over which to evaluate the FFT, whether to do a wee bit of smoothing by averaging adjacent time points, and whether to apply a windowing filter.? The latter is unnecessary if you've chosen the time span to include an exact integer number of cycles.? The waveforms that were plotted are highlighted in the top, but you can change which one or ones you want. Click OK.? Now, if you had two or more waveforms selected, you'll get another window that lets you choose again exactly which ones to plot.? If you want all three, just highlight them all.? Or you can enter an expression here (such as I(R1)+I(R2)+I(R3)). Click OK.? Voila, there's your FFT spectrum or spectra. Now, if the thing you want is the FFT of the combined current, figure out what that means to you.? Do you want the common-mode current?? Differential mode?? Make an expression for what you want.? Then implement it.? You could do that with a Bv source added to your schematic (so that it exists as a separate signal that can be probed), or you can enter the expression later in the FFT process. If you are new to FFTs, make sure that you do all the things necessary to get a good FFT.? Choose an appropriately small Maximum Timestep.? Disable waveform compression by adding ".options plotwinsize=0" to your schematic (it's essential!).? Make sure to use an integral number of cycles in the time interval passed to the FFT.? If there are start-up transients, wait for those to die out before starting the FFT.? Choose the total time interval wisely, as it affects the FFT's appearance -- one cycle is probably too little, 1000 cycles is probably too much.? Finally, LTspice's FFT shows you tons of high-order harmonics that may have no meaning, so ignore them, unless you are sure that the waveforms have meaningful data up there at those frequencies.? I guess the philosophy is it's better to start with too much data and discard what you don't want, than to start with too little and not know that there was more. Regards, Andy |
Re: radiated noise from a twisted set wire
¿ªÔÆÌåÓýAdd to your schematic a B type current source
whose current is the sum of the three line currents. Connect a
resistive load to it to prevent its voltage becoming infinite.
Then take the FFT of the B source. You need not divide the sum
by 3 because that will not affect the FFT. John Woodgate OOO-Own Opinions Only J M Woodgate and Associates Rayleigh, Essex UK On 2018-11-21 17:15,
flpierson@... [LTspice] wrote:
? |
Re: LTSpice Model for Photo Triac - VOM160
Hi Andy, Thank you very much for your very quick reply and taking your time to explain details. I will continue with this query after my personal errand.? Best regards, Eric
|
Re: LTSpice Model for Photo Triac - VOM160
Eric wrote: ? ? "I found the MOC308x phototriac circuit simulation (solved) from the htm files.? I tried to RUN it but it won't." I downloaded it (it's the same file that was uploaded here around a month ago), extracted it, and it ran.? There were a bunch of "heightened def con" messages in the .log file, but those are not necessarily bad, and they don't indicate failure. So, it always helps to tell us what didn't work.? Did your computer shut off, or burst into flames?? Was there an error message?? If there was, what was it?? Try to be specific.? Also tell us which version of LTspice you used: LTspice IV or LTspice XVII. All I did was create a brand new folder, extract the contents of the ZIP file into that folder, open the .asc file in LTspice, and press RUN.? There was nothing else to do.? You didn't move any of the files anywhere else, did you? Have you altered your LTspice settings?? You might have changed the settings in the Control Panel at some point.? If you think you might have done that, open the Control Panel (hammer icon), press "Reset to Default Values", and OK.? Then try running the simulation again. ? ? "How do I load this part into my library?" I think you need only these two files: ? ? LED_TRIAC_ZCS.asy ? ? MOC308x.lib You can either put them in the folder with the schematic(s) that will use them, or add them to LTspice's libraries.? I prefer the former, but you could do either. To add them to LTspice's libraries, move or copy LED_TRIAC_ZCS.asy here: ? ? Documents\LTspiceXVII\lib\sym\ or to a subdirectory of it.? Move or copy MOC308x.lib here: ? ? Documents\LTspiceXVII\lib\sub\ (must be that folder, not a subdirectory of it). If you leave both files in the folder with your schematic, you'll need to do one extra step when putting the symbol on a schematic.? Open the schematic file in LTspice (if it's new, make sure to save it so that its file is in the current folder).? Go to the Add Components menu.? At the top, there is a line for "Top Directory" with two choices.? One is LTspice's library; the other is the current directory.? Change it to the current directory.? Now the LED_TRIAC_ZCS symbol should be in the menu and can be selected. Whichever method you used, follow these steps: (1)? Add a LED_TRIAC_ZCS symbol to the schematic. (2)? Right-click on the text LED_TRIAC_ZCS under the symbol, and change it to MOC3083. (3)? Add this line as a SPICE Directive: ? ? .lib MOC308x.lib I am not 100% certain that the above steps work, but I think they should be right. Regards, Andy |
Re: Problem with inserting components and drawing wires
I'm having this same issue. Reproduced on my Macbook Pro running Sierra (10.12.6), and my iMac running El Capitan (10.11.6). It is not a mouse issue - it's a graphics-layer issue. Whatever canvas routine is being used, it isn't erasing what it previously drew. It's a major bug and makes this program totally unusable. I was excited to upgrade, but now I'm relegated to using Wine for LTspice. Disappointing.
|
Re: LTSpice Model for Photo Triac - VOM160
Hello Andy, I found a part MOC308x and uploaded into my library. I couldn't make it work. Maybe I have not done it correctly. But I also found a circuit containing the same part that has been "solved" already. I tried to Run it but wouldn't. Not sure what is wrong. I have uploaded the file named MOC308xSimulation. I just saw your mail now so I had asked help from John already. Yes sorry I was not aware to use the new topic button. Thanks and best regards, Eric
|
Re: LTSpice Model for Photo Triac - VOM160
Hello John, Pls kindly wish to consult. I found the MOC308x phototriac circuit simulation (solved) from the htm files.? I tried to RUN it but it won't. I uploaded the file named MOC308xSimulation for your reference. Not sure what is wrong? Do I need to do something else?? How do I load this part into my library?? I have tried separately loading stand alone .lib model and symbol of the same part also found in the htm files but seems I can't make it work too. Thanks and best regards, Eric On Tue, Nov 20, 2018 at 6:17 PM Eric Henares <eohenares@...> wrote:
|