Circuit Help!
Hi,
I'm trying to put together a basic circuit for charging a capacitor/s with a built in LED to indicate when it's charged. I've created a draft on Multism but can't seem to get it to work. I'm a complete novice at electronics and have pieced it together from various schematics I've found.
Help please! :)
I'm now looking to see if it would be possible to charge the capacitor using DC straight from a battery and produce a current of around 6A when the capacitor is discharged. This is because I'm trying the reduce the voltage in the circuit as I have a limit I have to stay under. Is this at all possible? I would probably use a 6V or maybe a 12V car battery.
I'm trying to modify/ simplify the schematic at the moment.
 You cannot give a constant amperage value for capacitive discharge. The charge (along with voltage) decays exponentially during discharge. Given a fixed load, it's fairly easy to compute the length of time it takes for a given cap charge to decay to a certain voltage, however.
"Fixing" the output to a specific voltage or current requires some complex regulation...
 re: Charging Voltage vs. Stored Energy (joules)
The charging voltage is squared in this model. To store the same energy, you'd need 4X as much capacitance each time you reduce the voltage by half.
E = ^{1}/_{2} CV^{2}
(E is Joules, C is Farads, V is voltage)
So, for your 200uF capacitor:
400V
16 = 0.5 X 0.0002 X 160000
12V
0.0144 = 0.5 X 0.0002 X 144
You'd need approx 222000 uF (.2 farads) of capacitance to store the same amount of energy @ 12V.
What I've worked out I need is approximately a pulse with an average of 6A for about 0.04 seconds (i.e. 8A going down to 4A in 0.04seconds).
Working with a 6V or 12V battery how would I go about calculating the capacitance needed and the value of resistor to control the discharge speed?
I tried 6A*0.04s/12V = 0.01F but that doesn't seem right.
Also is there any way to calculate the current at a given time, because I haven't found anything, and there doesn't seem to be a way to graph it on Multism (the program I'm using).
The circuit is designed to discharge a current through a solenoid and create a momentary, strong magnetic pulse.
Just playing with the numbers so farand making some pretty broad (probably incorrect) assumptions.
Biggest technical stumbling blockyour solenoid is an inductor. That significant:
 It has large, yet constantly diminishing "inrush" spikes when powering up. Since the "halflife" of your capacitance discharge is also timedependent, trying to model both simultaneously with simple equations is "iffy", at best.
 You haven't mentioned why you're using a solenoid. If it's just for the coil, is the metal core included? It's inductance radically changes whether it's an "air core" or not.
 And is it it actually moving and pulling? It's inductive load is going to vary as the core moves, and with the physical (mechanical) load, too. I'm not going to even try to model that. Timedependent variables on top of timedependent....(double yikes.)
So let's just pretend for now it's just a simple resistive device. _{And pretend my math is correct...}
Keeping the original 400V / 200uF setup (which I think is probably arbitrary), and then converting those values to 12V:
a) 16 Joules @ 12V requires a .222F cap, which is a 222000 uF capacitor.
b) Using Ohms Law, we figure our phony resistive value for the solenoid, which I assume (from your comments) has a 6.0A draw:
12V / 6.0 A = 2 ohms
(This is the least reliable of our assumptions, for the reasons noted above.)
c) The time constant for capacitive discharge is RC, or resistance * capacitance:
2 ohms X .222 farads = 0.444 seconds.
d) Voltage at 0.04 seconds (chosen time):
V = V_{0} e ^{t/RC}
( V_{0} is starting voltage; e = constant (2.718); t is time; RC is the time constant)
12V X 2.718 ^{0.04 / 0.444} = 10.968V
(there's a very similar current formula, toobut with the voltage @ 0.04 seconds, and the "known" resistance, it's simple to find the amperage.)
Phony Conclusion (for our phony "resistive" load):
The voltage has dropped < 10% in 0.04 seconds, so it's safe to say there's plenty of amperage. Capacitance value of .222 Farads is overkill...
I'm using a solenoid without a core to generate a pulling force towards the centre of the coil, that acts on a ferromagnetic projectile when it is inserted into the coil (similar to a coilgun design).
So is there a formula/s that will link the current in the coil at any given time with the force from the magnetic field (in Newtons) acting on the projectile at any given time? I'm having trouble calculating an answer because there are so many variables:
1. The current in the coil
2. The number of turns of the coil
3. The diameter/ length of the coil.
4. The magnetic permeability of the projectile.
(I'm guessing the force is dependant only on the magnetic permeability of the projectile and not on the mass of the it? Or is it volume based?)
Below is a simple diagram illustrating it.
current in

v
ooooooooooooooooooooooooooooooooooooooooooooo
=============================================
('''''''''''''''''''''''''''''''''''''')
( PROJECTILE ) > Force
(..........................)
=============================================
ooooooooooooooooooooooooooooooooooooooooooooo

v
current out
<>
L
Where:
0 represents a cross section of the wire
= represents a cross section of the tube (barrel) wall
What I'm going to be using is magnet wire wrapped around a plastic tube of diameter 40mm with a coil length of 400mm.
I've tried calculating the magnetic field strength inside the coil in teslas and then, using that value and the known permeablilty of the projectile (assumed to be steel at this point), calculating the force this magnetic field exerts on the projectile (this is a calculation for instantaneous values, which is all I need). But I haven't been getting very far
I really appreciate all of this help btw. :)
Rather than reinvent the wheel, there must be some pertinent formulas on builders pages you can reference. With any luck, they'd have some real inductance calculations...
What little I know about coil guns:
 A lowvoltage coil gun requires lots of capacitance for obvious reasons less voltage == less electromotive force. And a very lowresistance coil, to dump the current quickly.
That fits perfectly with our previous calculations. The guesstimate of 2 ohms for your coil is too much resistance to dump the .222F total capacitance quickly. It only drops ~10% in the allotted time. The magnetic field would move the projectile, but stop and hold it in the barrel before it escapes.
If you drop the coil resistance to 0.1 ohm, (plugging that into the formulas) then the voltage drops to 1.98 volts at the 0.04 second mark. Lots of energy, expended quickly.
So how to make a lowresistance coil? Use fewer turns of bigger wire.... and that's exactly what I've seen in lowvoltage coil guns.
How to calc current?
Just substitute current for voltage in the formula.
Or even easier: You know the voltage @ 0.04 sec, and the "resistance" (which we fudged), so just use Ohm's Law. For the previous comment's example:
I = 10.968 V / 2 ohms = 5.484 amps
As we said, the 2 ohm coil doesn't draw current quickly enough....
You should also consider the other suggestionslike use a photoflash charger and go for higher voltage (cheaper than lots of caps.)
Remember 0.222 Farads is 222000 uF. For 16 Joules, that's one thousand 222uF caps in parallel @ 12V, vs. one 222uF @ 400V.
According to the sim, your original circuit works fine. The location of the colored circles on the schematic correspond with the trace colors on the plot. _{Sorry, I didn't use the same part labels as you did. My bad.}
Caveats:
 LTspice doesn't have exact models for the transistor, diodes or the transformer, so I had to make some substitutions in the sim. You should not.
 I didn't simulate the HV rectifier and capacitor on the secondary side of the transformer. Without the a correct model for the HV diode (D1), the sim was producing spikes in the megavolt rangeand running really slowly. But that shouldn't matter, I simplified the circuit for simulation.
The secondary is grounded on my schematic, but that's merely to keep LTspice happy. You should wire your HV side as you originally planned.
I bet This is the source of your schematic. I've stumbled across this page before, and the information's been on the web for a looooong time. I assume it's reliable.
Recheck your wiring, and be to follow the directions on the page (for instance C1 (your drawing) must be a nonpolarized cap.) Also, did you fry your transistor, or wire it incorrectly?