And I didn't show the two transformers that I bought for the power supply (I always buy more pieces than I need, just in case)An Easter basket full of goodies.![]()
Those suckers are HEAVY!... they weight almost 2 lb each!
And I didn't show the two transformers that I bought for the power supply (I always buy more pieces than I need, just in case)An Easter basket full of goodies.![]()
That's exactly what I'm about to find out.is this coil really being fed this, or is it the result of arcing contacts ringing the coil?
Also the sim in the LTspice circuit that Ron so generously helped me design is as close as possible to the real thing that one could hope for.That's exactly what I'm about to find out.
But I DID carefully make all possible measurements of the coil's resistance and inductance before we proceeded to design this thing... anyway, I expect there will be some discrepancies, since the coil energizes a plunger in the valve, so its inductance becomes a moving target... I just hope we're not too far off the mark
It's really pretty clever. It is just a very fast and consistent valve. The high current portion uses pwm to make sure the time to open is always the same regardless of supply voltage and coil temperature.is this coil really being fed this, or is it the result of arcing contacts ringing the coil?
That's exactly what I think too. And it might also help avoiding permanent magnetization of the core.the pulse at the end is probably to reverse the current to aid in demagnetising the core for quicker closing.
+PWM was inverted, so I flipped it. I also changed the op amp to a comparator because it was kind of slow. Don't forget the 4.5 volt battery (+4.5v) needs to come from a port pin so you can only turn it on during high power.Ron,
Please take a look at these two circuits:
View attachment 83929
The one on the left is not using a comparator, and the one on the right is using a comparator. And although in circuit two the initial pulses are not evenly distributed, the current peaks at close to 9A at the end of the startup phase. Almost exactly as is it is happening in reality.... but the current keeps building up afterwards during the plateau, and I'm a little concerned about that.
Now, on post #18 I showed the following graph:
View attachment 83930
It shows that current peaks at around 8.44A, but on the plateau it averages 3.375A
I know that I said I was (and I am) going to build the circuit without much further ado... but my question here is, what can I do to bring the current down to the 3.375A that I'd like to have in the plateau? Should I place a resistor between M2 and D6 ?
Also, I've noticed that there's an input (+HP) to the left of D2 in both circuits that is doing absolutely nothing in both circuits... is it ok if I remove it?
Thanks Ron, I'm already working a few adjustments on it... just one thing, there's a very ugly -75V spike at the end of the cycle being fed to the LM339 negative input... and according to the datasheet the chip would go up in smoke if that happens in the real world... Where do I place the zener?+PWM was inverted, so I flipped it. I also changed the op amp to a comparator because it was kind of slow. Don't forget the 4.5 volt battery (+4.5v) needs to come from a port pin so you can only turn it on during high power.
The other PWM you are generating with the comparator in the micro. Right?
Yes, +HP is replaced with the comparator circuit.


Mea Culpa... I was measuring voltage referenced to the opposite side of the coil and not to ground, that's why there appeared to be a negative pulse. Sorry.
Anyway, take a look at this.
View attachment 83944
I think your comparator needs some hysteresis is all. I think I would use a 10k pot (less noise sensitive) and add like 27k from the output to the + input. Then just use +12 at the top of the pot.
I see you made the battery 5 volts. I didn't know what the high output was from your micro so I had used 4.5, but since it is cmos 5 might be closer. So you will need to make the resistor that charges the cap about 20k to get the current back down.
I don't think you need the diode on the output of the comparator now.
View attachment 83945
I've placed another comparator to regulate current through the coil during the plateau, and mixed it with the PWM from the MCU. Now the waveform looks almost exactly as the original.
My only concern now is the negative pulse at the end. In the original it lasts around 200 µs, while in the sim it's only about 50 µs.
What do you think?
Thanks Ron, I'll implement all the changes you're suggesting and then get back to you.Well, that was pretty informative wasn't it?
What I really wanted to say was: - trying to remember..........
I think you just need some hysteresis around the comparator. I would make the pot 10k (less noise sensitive) and add like a 27k from the output of the comparator to the (-) input. Then you can get rid of the mpu pin and tie the top of the pot to +12.
I don't think you need the diode in series with the output of the comparator.
I see you changed the 4.5 volts to 5 volts. Probably closer to the real mpu output pin, but the resistor that charges the cap will need to be larger now to get the current back down. Maybe 20K.
I'm going to try and click post reply now.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
| A | Electromagnet | General Electronics Chat | 92 | |
| R | Electromagnet Turns And Same Field generated?? | General Electronics Chat | 5 | |
| S | Electromagnet wpt magnetic core | General Electronics Chat | 59 | |
| B | Super capacitors for electromagnet? | Power Electronics | 27 | |
| E | Building an electromagnet | General Electronics Chat | 3 |