Help Building a PWM Circuit to Control Electromagnet

  • Thread starter Thread starter justinreeves
  • Start date Start date
  • Tags Tags
    Circuit Pwm
Click For Summary

Discussion Overview

The discussion revolves around building a PWM circuit to control an electromagnet, specifically for use in a tattoo machine. Participants explore various aspects of circuit design, including frequency and pulse width control, the use of potentiometers, and the behavior of electromagnets in response to PWM signals.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks to control frequency and pulse width separately using potentiometers in a PWM circuit for an electromagnet.
  • Another participant explains how to use a potentiometer in the circuit, noting the difference between linear and logarithmic pots.
  • A participant mentions the need for a separate power supply for the circuit and the FET, raising questions about the necessary connections.
  • Concerns are raised about the behavior of electromagnets, with one participant noting that the coils remain engaged even when power is removed, suggesting potential residual magnetism.
  • Discussion includes the effectiveness of different capacitor values in the circuit, with varying results in terms of heat generation and performance.
  • One participant describes the mechanical setup of the tattoo machine and its interaction with the electromagnets, questioning whether binding or lubrication issues could be contributing to the problem.
  • Another participant suggests that the observed behavior may be due to residual magnetism and proposes running current in the opposite direction to neutralize it.

Areas of Agreement / Disagreement

Participants express various viewpoints on the circuit design and the behavior of the electromagnets, with no consensus reached on the underlying issues causing the coils to stick or the optimal capacitor values to use. Multiple competing explanations for the observed phenomena are presented.

Contextual Notes

Participants discuss the limitations of their knowledge regarding integrated circuits and PWM design, indicating a reliance on basic electronics principles. There is also mention of the potential for electrical issues such as arcing or welding affecting the performance of the electromagnets.

Who May Find This Useful

This discussion may be useful for individuals interested in PWM circuit design, electromagnet applications, and those seeking to troubleshoot similar issues in electronic devices, particularly in the context of tattoo machines.

justinreeves
Messages
64
Reaction score
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)separately 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
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:
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?
 
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!
 
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.
 
Are you saying that the relays/electromagnets stay engaged when you remove drive from the coil? Any chance that they are latching relays?
 
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:
similar to these coils
 
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.
 

Similar threads

Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 17 ·
Replies
17
Views
3K
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K