Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

LTspice: plot of basic L circuit

Status
Not open for further replies.
Well, you have to have some kind of voltage curve don't you? A common step function is what you get when you switch on DC. If you want me to calculate a pulse, square, triangle, or whatever, then specify what you need.
Ratch

i appreciate that. all i'm doing though is a simple PWM signal to drive my buck circuit. :)
 
Here is a IC buck PWM. The circuit bucks 24V down to 5V at 1A.
Green=out put voltage. Blue is inductor current.
upload_2016-11-7_21-49-54.png
 

Attachments

  • 3646-1.asc
    1.7 KB · Views: 242
I hope you are not unhappy with me, but you just started with this program and it is hard at first. I know you want to make a buck PWM. I can help with that. (most of us will help) Please tell us what you want made. If you have a circuit up and working, then you can make changes and see what happens. I think we need to get past this "getting started" problem and jump into seeing something working.

well the real problem was that i went through several tutorials and was frustrated because none of them included the very basic details that you guys have told me. i just wanted to see an L or a C acting roughly like an L and a C, without regard to tangible limitations of wire and such, so that i could proceed with my circuit and know what i'm lookin at.
i really appreciate everybody's patience in helping me with a really basic question. maybe this thread should be promoted to "sticky" status.
after i read your responses, i was able to make my circuit and what i now have is this:
test.jpg

the red trace is the current coming out of V2, the 5v source in my buck. After plotting that out, then i needed to plot the average of i(V2), like a mathematical "capacitor" to show the smoothed out version of i(V2). someone over on stackexchange illustrated the circuit on the right (B1 & R1) with an equation for V(B1) that's supposed to correspond with the value of that average.
The equation seems to express, as a voltage, the integral of i(V2) over a Δt of 1ms. therefore the green trace, the current through R1(1 ohm), = the average of i(V2), the red trace.
the PULSE coming outa V1 is actually a PWM signal from an arduino. The 5v coming from V2 is actually the usb connection off my laptop. And the point of all this is to charge of the capacitor underneath Vout (10mF) from the usb as quickly as possible without exceeding the 500mA current limit imposed by the usb protocol. so all i gotta do is get a current sense resistor (not shown) on the Vin line. The weenie will check the current i(V2) and increment/decrement the PWM duty cycle and hold the current at around 450 mA until the 10m cap reaches a voltage of 2.5v.
so the whole thing is pretty simple. thanx for the info :)
 
Here is a IC buck PWM. The circuit bucks 24V down to 5V at 1A.
Green=out put voltage. Blue is inductor current.
yeah we're crossing messages. that's very similar to what i originally planned to do, except i chose an LTC 3127. i'm still undecided on wether to use the LTC chip like in your picture or proceed with my own home brew buck circuit.
 
Further expanding on Zappers posting: Here are four different ways to do this. 31a and 3b are the preferred ways. 3 and 3a frequently have undesired consequences...

THANKS that's exactly what i wasn't clear about. i ended up doing the 3a1 way and it finally worked. :happy:
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top