Help Building a PWM Circuit to Control Electromagnet

  • Thread starter justinreeves
  • Start date
  • Tags
    Circuit Pwm
In summary: It sounds like you are experiencing some issues with the circuit. It might help to try connecting it to an oscilloscope and trying to track down the problem. A capacitor might be a good solution to the problem you are experiencing.
  • #1
justinreeves
64
0
Hello, I am trying to create a PWM circuit but I need a couple controls with in it. I need to control frequency and pulse width (duty cycle)seperately with 2 pots.
This is going to control a spring loaded electromagnet for oscillation.
I need pulse width control because of the varying elctromagnets it will be connected to at times, and the loads they will pull differ also.

Here is a site I have been looking at they mention a 556 and a FET.
but he mentions it not absolute on/off.
I think with what I am doing I would rather it be absolute on/off.

http://casemods.pointofnoreturn.org/pwm/circuit3.html

There is a example of a 555 w/ opamp.

In this schematic can I just put a pot in place of RF? If so wouldn't the pot work in reverse? ie as it turns counter clockwise it speeds up?
If so are there reverse resistance pots?

Im just a car audio tech. I don't ever work with IC,s. Resistors caps and ,diodes is all I work with. Can someone recommend a way to learn basic electronics, I know a 555 is basic and I should know how it works and how to use it.Most of the stuff I learned is just past the MECP guide, ohms law, just figuring curent, voltage, resistance...No IC training. Is taking a class easiest or are there books out there that would work as well and quicker.recommendations?
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
Sure you could just put a pot in place of RF in that schematic.

Ok, a pot has 3 contacts on it. The outside pair has the full resistance (lets say 200k) and the middle contact is the wiper that varies from one end to the other.

In this example, use the wiper and one end, that would give 0-200k, and if you want CCW instead of CW just use the other end and now it will be 200k-0.

The pots come in two varieties, log and linear, for this you probably want linear so the frequencies are easy to distinguish and could be marked out easily for the rotation of the knob (if you wanted a volume knob, a log pot makes better sense since hearing is logarithmic).

There are some decent books at Radio Shack (if they even have them anymore amoungst the cell phone and batteries and other high margin items that have overrun the stores) and also in many bookstores. Since the quality varies, its nice to preview the book to make sure it is what you're looking for, Amazon.com has a decent version of this but a local B&N or Borders is hard to beat to look a few books quickly and see if it has what you're looking for. The internet has a plethora of information about circuits if you have a little persistance to find the information, and the price can't be beat!

http://www.uoguelph.ca/~antoon/gadgets/555/555.html

By the way, what's this for? If you're trying to build a woofer tester or something like it, you'll want a different approach.
 
Last edited by a moderator:
  • #3
This is not for audio its for a tattoo machine. I didnt know that about pots. good to know.
I had another question, now that I think about it, I want the FET to swith power from a variable voltage 2 amp approx. power supply, I want the circuit to have its own power supply separate from what the FET switches. WHat dirrent connections would need to be made there?
 
  • #4
Here's a book recommendation that is perfect for you:

The Art of Electronics, by Horowitz and Hill.

Your local technical bookstore will have it, or else you can just get it from Amazon.com. It's a quick read, and it will give you all the tools you need to understand the circuits that you are starting to work with. Have fun!
 
  • #5
Ok new question same schematic. I want the circuit to switch the power from a different source then the one used for the circuit, because the circuit is a add on to a preexisting power supply that has a voltage and amperage control. Also this circuit is for engaging 2 electromagnets, when I initially connected the circuit to the coils they just engaged and stayed that way they didnt pulse on/off. so I added a electrolytic cap in parallel to the coils to discharge any power left in the coils between pulses. it works for the most part but some times will stick, What type and or size cap would you suggest? It all looks good on the o-scope though. and I even tried disconnecting power to the coils and they still stayed engaged,strange.
 
  • #6
Are you saying that the relays/electromagnets stay engaged when you remove drive from the coil? Any chance that they are latching relays?
 
  • #7
no they are just electromagnet coils on a tattoo machine being driven by this circuit
http://www.uoguelph.ca/~antoon/gadgets/555/555.html
the coils pull down on a armature bar that is connected to a piece of spring steel, which pulls the armature bar up. and the coils pull it down, it sticks in the down position.
the coils are wound on a plastic spool with a iron core, the armature bar bottoms out on the iron cores as a stop. I tried shunting across the coils after disengaged to ground and it still stayed stuck, strange.
 
Last edited by a moderator:
  • #8
similar to these coils
 
  • #9
http://www.apwcoinc.com/tattoocoil.html
 
  • #10
justinreeves said:
I tried shunting across the coils after disengaged to ground and it still stayed stuck, strange.
Maybe just a lubrication issue? How easily do the armatures move? Does the steel return spring keep the rod centered pretty well, or is the rod binding on the plastic maybe?
 
  • #11
How much "stick" is there with the coils disenergized? Less than if its fully powered up? Sounds like maybe residual magnetism then. Try running current through the coil in the opposite direction briefly and see if you can neutralize it.
 
  • #12
the armature bar is connected to the spring steel which is in a normally up position then the magnet pull it down until it touches the top of the to coils. there is absolutely nothing to bind or to get stuck, it has to be a magnetic/electrical problem.that or if power was running through the cores and the machine frame it could be arching and welding itself in the down position, but there isn't power running through the frame or the cores. See the circuitmI can run power backwards.
 
  • #13
there is definitely residual magnetism in the coils that is why the cap is there(at least on a standard machine, that is why I tried putting it on this system, only problem is on a standard tattoo machine the voltage is pulsed and while circuit is open machine rests at ground so the cap not only takes the charge from the coils but discharges also, I've been told a standard machine (non-PWM) is like a tank circuit.
 
  • #14
OK back at home, Just in case it was the capacitor in paparalell to the coils value, I originally had a 10uf 35v cap on it, I had a .1uf 100v laying around tried that, magnetic sticking was almost instantly no matter what setting speed ...So I also had a 70uf 100v it works fine with the 70uf but the coils get really hot fast, compared to the standard electro/mechanical system the machine was originally setup as. and it runs hotter than when I had the 10uf cap on it. any ideas? what's going on.
 
  • #15
Not to familiar how stuff like this should look on a scope but it doesn't look like absolute on/off to me. the line reads flat then on the pulse it drops down far but half way through the cycle it returns to about half of the original pulses drop.
 

1. How does a PWM circuit work?

A PWM (Pulse Width Modulation) circuit works by rapidly switching a signal on and off at a specific frequency. By adjusting the width or duration of the signal, the average voltage delivered can be controlled, thus controlling the output of the circuit.

2. What components are needed to build a PWM circuit?

The main components needed to build a PWM circuit are a microcontroller or IC (Integrated Circuit) with PWM capabilities, a power source, a switching device (such as a transistor or MOSFET), and a load (in this case, an electromagnet).

3. Can any microcontroller be used to build a PWM circuit?

No, not all microcontrollers have PWM capabilities. It is important to choose a microcontroller with PWM functionality or to use an external PWM IC to control the circuit.

4. How do I choose the appropriate switching device for my PWM circuit?

The choice of switching device will depend on the power requirements of your circuit and the switching frequency. It is important to select a device that can handle the voltage and current of your circuit and can switch at the desired frequency without overheating.

5. Is it possible to control the strength of an electromagnet using a PWM circuit?

Yes, a PWM circuit can be used to control the strength of an electromagnet by varying the average voltage delivered to it. This allows for precise control of the magnetic field and thus the strength of the electromagnet.

Similar threads

Replies
18
Views
2K
  • Electrical Engineering
Replies
6
Views
2K
  • Electrical Engineering
Replies
11
Views
963
  • Electrical Engineering
Replies
17
Views
1K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
2
Views
481
Replies
10
Views
2K
Replies
8
Views
3K
  • Electrical Engineering
Replies
25
Views
2K
Back
Top