Implementation of Micro Stepping of Stepper Motors

ADDICTION NEWS Comments Off

Although some microstepping controllers offer hundreds of intermediate positions between steps, it is worth noting that microstepping does not generally offer great precision, both because of linearity problems and because of the effects of static friction.

 

Sine Cosine Microstepping

Recall, from the discussion in Part 2 of this tutorial, on Stepping Motor Physics, that for an ideal two-winding variable reluctance or permanent magnet motor the torque versus shaft angle curve is determined by the following formulas:

 

h = ( a2 + b2 )0.5

x = ( S / (/2) ) arctan( b / a )

Where:

a — torque applied by winding with equilibrium at angle 0.

b — torque applied by winding with equilibrium at angle S.

h — holding torque of composite.

x — equilibrium position.

S — step angle.

This formula is quite general, but it offers little in the way of guidance for how to select appropriate values of the current through the two windings of the motor. A common solution is to arrange the torques applied by the two windings so that their sum h has a constant magnitude equal to the single-winding holding torque. This is referred to as sine-cosine microstepping:

a = h1 sin(((/2)/S))

b = h1 cos(((/2)/S))

Where:

h1 — single-winding holding torque

((/2)/S) — the electrical shaft angle

Given that none of the magnetic circuits are saturated, the torque and the current are linearly related. As a result, to hold the motor rotor to angle ), we set the currents through the two windings as:

Ia = Imax sin(((/2)/S))

Ib = Imax cos(((/2)/S))

Where:

Ia — current through winding with equilibrium at angle 0.

Ib — current through winding with equilibrium at angle S.

Imax — maximum allowed current through any motor winding.

Keep in mind that these formulas apply to two-winding permanent magnet or hybrid stepping motors. Three pole or five pole motors have more complex behavior, and the magnetic fields in variable reluctance motors don’t add following the simple rules that apply to the other motor types.

 

Limits of Microstepping

The utility of microstepping is limited by at least three consideraitons. First, if there is any static friction in the system, the angular precision achievable with microstepping will be limited. This effect was discussed in more detail in the discussion in Part 2 of this tutorial, on Stepping Motor Physics, in the discussion of friction and the dead zone.

 

 

Detent Effects

The second problem involves the non-sinusoidal character of the torque versus shaft-angle curves on real motors. Sometimes, this is attributed to the detent torque on permanent magnet and hybrid motors, but in fact, both detent torque and the shape of the torque versus angle curves are products of poorly understood aspects of motor geometry, specifically, the shapes of the teeth on the rotor and stator. These teeth are almost always rectangular, and I am aware of no detailed study of the impact of different tooth profiles on the shapes of these curves.

 

Most commercially available microstepping controllers provide a fair approximation of the sine-cosine drive current that would drive an ideal stepping motor to uniformly spaced steps. Ideal motors are rare, and when such a controller is used with a real motor, a plot of the actual motor position as a function of the expected position will generally look something like the plot shown in Figure 5.1.

 

Figure 5.1

Note that the motor is at its expected position at every full step and at every half step, but that there is significant positioning error in the intermediate positions. The curve shown is the curve that would result from a perfect sin-cosine microstepping controller used with a motor that had a torque versus position curve that included a significant 4th harmonic component, usually attributed to the detent torque.

The broad details of detent effects appear to be fairly uniform from motor to motor, so in principle, it ought to be possible to adjust the tables of sines and cosines used in a sine-cosine controller to compensate for the detent effects. In practice, the effects of friction and the errors introduced by quantization combine to limit the value of such an effort.

 

Quantization

The third problem arises because most applications of microstepping involve digital control systems, and thus, the current through each motor winding is quantized, controlled by a digital to analog converter. Furthermore, if typical PWM current limiting circuitry is used, the current through each motor winding is not held perfectly constant, but rather, oscillates around the current control circuit’s set point. As a result, the best a typical microstepping controller can do is approximate the desired currents through each motor winding.

 

The effect of this quantization is easily seen if the available current through one motor winding is plotted on the X axis and the available current through the other motor winding is plotted on the Y axis. Figure 5.2 shows such a plot for a motor controller offering only 4 uniformly spaced current settings for each motor winding:

 

Figure 5.2

Of the 16 available combinations of currents through the motor windings, 6 combinations lead to roughly equally spaced microsteps. There is a clear tradeoff between minimizing the variation in torque and minimizing the error in motor position, and the best available motor positions are hardly uniformly spaced! Use of higher precision digital to analog conversion in the current control system reduces the severity of this problem, but it cannot eliminate it!

Plotting the actual rotor position of a motor using the microstep plan outlined in Figure 5.2 versus the expected position gives the curve shown in Figure 5.3:

 

 

 

 

 

 

 

 

Figure 5.3

It is very common for the initial microsteps taken away from any full step position to be larger than the intended microstep size, and this tends to give the curve a staircase shape, with the downward steps aligned with the full step positions where only one motor winding carries current. The sign of the error at intermediate positions tends to fluctuate, but generally, the position errors are smallest between the full step positions, when both motor windings carry significant current.

Another way of looking at the available microsteps is to plot the equilibrium position on the horizontal axis, in fractions of a full-step, while plotting the torque at each available equilibrium position on the vertical axis. If we assume a 4-bit digital-to-analog converter, giving 16 current levels for each each motor winding, there are 256 equilibrium positions. Of these, 52 offer holding torques within 10% of the desired value, and only 33 are within 5%; these 33 points are shown in bold in Figure 5.4:

 

Figure 5.4

If torque variations are to be held within 10%, it is fairly easy to select 8 almost-uniformly spaced microsteps from among those shown in Figure 5.4; these are boxed in the figure. The maximum errors occur at the 1/4 step points; the maximum error is .008 full step or .06 microsteps. This error will be irrelevant if the dead-zone is wider than this.

If 10 microsteps are desired, the situation is worse. The best choices, still holding the maximum torque variation to 10%, gives a maximum position error of .026 full steps or .26 microsteps. Doubling the allowable variation in torque approximately halves the positioning error for the 10 microstep example, but does nothing to improve the 8 microstep example.

 

One option which some motor control system designers have explored involves the use of nonlinear digital to analog converters. This is an excellent solution for small numbers of microsteps, but building converters with essentially sinusoidal transfer functions is difficult if high precision is desired.

 

 

Typical Control Circuits

As typically used, a microstepping controller for one motor winding involves a current limited H-bridge or unipolar drive circuit, where the current is set by a reference voltage. The reference voltage is then determined by an analog-to-digital converter, as shown in Figure 5.5:

 

Figure 5.5

Figure 5.5 assumes a current limited motor controller such as is shown in Figures 4.7, 4.8, 4.10 or 4.11. For all of these drivers, the state of the X and Y inputs determines the whether the motor winding is on or off and if on, the direction of the current through the winding. The V0 through Vn inputs determine the reference voltage and this the current through the motor winding.

 

Practical Examples

There are a fair number of nicely designed integrated circuits combining a current limited H-bridge with a small DAC to allow microstepping control of motors drawing under 2 amps per winding. The UDN2916B from Allegro Microsystems is a dual 750mA H-bridge, with a 2-bit DAC to control the current through each. bridge. Another excellent example is the UC3770 from Unitrode. Unitrode. This chip integrate a 2-bit DAC with a PWM controlled H-bridge, packaged in either 16 pin power-dip format or in surface mountable form. The 3717 a slightly cleaner design, good for 1.2 A, while the 3770 is good for up to between 1.8 A or 2 A, depending on how the chip is cooled.

 

The 3955 from Allegro Microsystems incorporates a 3-bit non-linear DAC and handles up to 1.5 A; this is available in 16-pin power DIP or SOIC formats. The nonlinear DAC in this chip is specifically designed to minimize step-angle errors and torque variations using 8 microsteps per full-step.

 

The LMD18245 from National Semiconductor is a good choice for microstepped control of motors drawing up to 3 amps. This chip incorporates a 4-bit linear DAC, and an external DAC can be used if higher precision is required. As indicated by the data shown in Figure 5.4, a 4-bit linear DAC can produce 8 reasonably uniformly spaced microsteps, so this chip is a good choice for applications that exceed the power levels supported by the Allegro 3955.

 

 

Historical Note

It appears that microstepping was invented in 1974 by Larry Durkos, who was working as a mechanical engineer for American Monitor Corporation. The company was a medical equipment vendor, and they were using a large Superior Electric 1.8 degree per step stepping motors to directly drive the 20 inch diameter turntable of their Kinetic Discrete Analyzer. The turntable was used to bring each of 100 blood samples into position for analysis.

 

That is 2 steps per sample, and the motion was so abrupt that the samples tended to spill. The system was controlled by a Computer Automation LSI 2 minicomputer (today, we would use a microcontroller), and Durkos worked out how to do computer-controlled sine-cosine microstepping in order to solve this problem. The solution was published in the technical service manuals for the KDA analyzer, but it was never patented. Representatives of Superior Electric learned of microsteppingfrom Durkos, and that company was the first to market a microstepping controller.

 

 

 

Tags: , , , ,

Fix drug addiction problems by adopting Christian addiction Treatment

Uncategorized Comments Off

Drug abuse and addiction can be an issue of concern when someone close to us has suffered a great deal due to its constant use. Drug addiction is like a never ending cycle that often leads to the downfall of the one who gets caught in its trap. Often drug abuse leads to a deteriorating disease which changes the functions and structure of the brain. Repeated intake of drugs affects a person’s his self-control and his ability to make sound decisions. Thus it becomes more of challenge to convince a person to who has been long drawn into this addictive disease.

Christian addiction treatment is the best possible treatment methods to cure a patient off his addiction problems. It is the best treatment for recreation and reclaiming of ones own life, away from the adverse effects of drugs and alcohol. A calm living environment and spiritual practices are the ways through which even a patient with long history of drug abuse can recover his life back. A course spread over a time period offers its residents disciplines of life and daily sessions of prayer and meditation to heal them back to a healthy life.

Christian addiction Treatment offers best addiction recovery programs that turn addiction into an asset. The treatment not only helps the resident realize that abstinence is the key to a successful treatment but also to work on restoration of ones health. During a Christian addiction Treatment individual attention is paid to each patient along with provision of good accommodation facilities, proper meals and home like environment to help the patient recover fast.

Sometimes Christ centered ministry is also involved in Christian addiction Treatment to reclaim lives of the drug patients who suffer from drug and alcohol addiction. The Christ centered approach helps to provide happy and productive life even after the treatment is over.

Christian addiction Treatment or sometimes also known as faith based treatment is viable for variety of addictions and drug or alcohol dependency. With main focus on Christian principles, drug addiction can be overcome by successfully developing patient’s belief.

Tags: , , , , ,

What happens when you’re taking Lamictal and use Methamphetamine at the same time?

DRUG ADDICTION REHAB 3 Comments »

I’ve been using Meth for two years. I went to rehab in December and I’ve been seeing a pshychiatrist since I got out. She prescribed me Lamictal for my bi-polar and I was taking it as prescribed for a month. I relapsed a week ago though and stopped taking my medication because I didn’t want to combine the two. I know that the medication is still in my system though and then Meth was as well. What are the effects of the combination of Lamictal and Methamphetamine? What kind of harm to my brain am I causing? What can happen?

Tags: , , , , , ,

How exactly is alcoholism (and drug abuse for that matter) considered a disease?

ALCOHOLISM ADDICTION 5 Comments »

My dad is a piece of crap alcoholic. The alcoholics anonymous “Big Book” compares alcoholism to an allergy and an illness. Am I the only one who is saying “huh?!” You have to DRINK in order to become an alcoholic, whereas contracting most forms of illness, (with the exception of STD’s, lung cancer induced from smoking, etc.) are contracted through no fault of the person stricken with the illness. My dad didn’t have to start drinking, he chose to.

Tags: , , , , , ,

12-Step Programs – A.E. #582

ADDICTION NEWS 25 Comments »

TheAtheist Experience is a weekly cable access television show in Austin, Texas geared at a non-atheist audience. Every week we field live calls from atheists and believers alike, and you never know what you’re going to get! Sometimes it can get quite feisty indeed! You don’t want to miss it. Episode: #582 7 December, 2008 Topic: Another scamlet: “spin”. Don talks about how God is like a lemon automobile that can only be sold through deception and slick marketing. Atheistic Experience: www …

Tags: , , ,

Stanton Peele in The Pursuit of Happiness

ADDICTION NEWS 7 Comments »

Stanton Peele in The Pursuit of Happiness: Smoking, Drinking and Drugging in the 20th Century. Documentary broadcast on Showtime, Sept. 13, 1999. Directed by Robert Zemeckis.

Tags: , , ,

Few Things You Need to Know About Drug Addiction Treatment

Uncategorized Comments Off

Drug addiction has become a common phenomenon in our country, but many of us refuse to resort to addiction treatment because it is still considered a taboo. However, there are no other escape chutes for a hardened drug addict other than drug rehab centers. There are doubts in some minds about the effectiveness of drug rehab programs, which make them cringe at the though of enrolling into a rehab centre.

In some cases the family members of an addict try to keep things under wrap thereby compounding the problem. There is only one way out, that is, to hit the nail on its head. If an addict realizes that he has a problem and understands that he needs help, a major part of the battle is won. But in most cases, family members and not the addict himself, takes initiative in looking for escape routes.

Drug rehab centre is definitely an escape chute for such free-falling individuals. It lends the addict wings to fly and hover. It teaches him to fend for himself. It makes him understand the need for standing up to adversities. It guarantees future success.

Drug rehab program is not a bed of roses. Talking about drug rehab and drug detox is easy, but walking the talk is something else. The route is full of thorns and treacherous pits. But once an addict determines to walk the road, the drug rehab center helps him to walk the road, albeit difficulties, till he reaches his goal. It takes the wobbly addict by the hand, and leads him ahead step by step.

Drug detox, which is the initial step towards normal life, is very taxing not only to the addict himself, but to the psychologists, doctors, nurses and supporting staff of the rehab centre alike. The addict may find it difficult to live without his daily supply of drugs. He may go into depression, can become a recluse, or simply refuse to cooperate if not given access to drugs. The stage needs proper handling and care, unless the very recovery process may come to an abrupt halt.

Treatment methods purely based on natural holistic steps should be employed for ensuring prolonged success. Drug rehab centers usually state the treatment methods follows by them over their websites. Holistic treatment methods which equally looks after the body and soul are highly effective without the usual negative side effective associated with medicated treatment. Not only the body is cleaned up, but the mind is also taught to look the functioning of the body in its normal and acceptable way.

After gaining self-confidence through meditation, yoga, group activities and recreational activities, the addict finds himself a free man. The results of the rehab program are made everlasting through continued counseling of the former addict and family members.

Tags: , , , , , ,

Methadone Effects : Methadone Withdrawal Symptoms

ADDICTION NEWS 25 Comments »

Addiction to methadone can be viewed as a disease that attacks the central nervous system, and common symptoms include gastrointestinal distress, rebound pains and muscle spasms. Find out how methadone withdrawal can cause anxiety, insomnia and restlessness with help from a licensed mental health counselor in this free video on methadone and drug addiction.

Tags: , , ,

Relapse Prevention – Ways to Avoid Urges

ADDICTION NEWS 1 Comment »

A PSA from Brookside Institute: A non-12 step drug rehabilitation center located in Newport Beach, California. Please visit www.non12.com for more information. … drug rehab non 12 step non-12 recovery relapse prevention california rehabilitation alcoholism addiction addict

Tags: , , , ,

Mobile Safety Steps

ADDICTION NEWS Comments Off

Mobile safety steps or bridging units are gaining popularity among people at a rapid rate.

Why do we consider lot of carrying and lifting equipments to transfer or lift our industrial goods?

Why don’t we go for mobile safety steps, these are those bridging units that are as effective as a lifting equipment in your workplace. Mobile safety steps have proved their worth in picking up goods from a level of around 2m. These safety steps give us the freedom to access various high storage areas with absolute safety. These are strong and mostly made up of tubular steel. They are safer to work with at the work place because they have the rungs that are set into the posts that make them safer; they also have the provision for making them resistant to slipping.

Mobile safety steps are available in various sizes and types, the height of such a safety step can vary anywhere between 2ft to 10 ft. They are available in various variants like the push and foot lock variant, spring action variant and the lever break variant. There is a folding handrail feature also available which provides the overall height advantage. These ladders can also be kept in public places so as to avoid any potential hazard.

The designing of these ladders is done in a unique way that they rest on a stable and strong, equal sized foot steps that are immobile and so provides a horizontal standing to the user. As stated earlier the steps of these ladders are made in a way to ensure that they avoid any kind of slipping while you are working on them. They have time and again proved their mettle and showed their level of safety and effectiveness in work. They help in reducing the workplace hazards too. The other name that is now being given to these steps is the warehouse steps; they are now providing a safer and a stronger solution for all industrial, personal and professional needs.

Mobile steps are available in many sizes, shapes and colors with all weather non slipping mould and easy glide feature. Made up of superior quality of steel these are not only safe but also convenient to use. The castors provided in the steps are spring loaded and they get retracted when weight is applied to them thus providing a non slippery base. They prove efficient mainly because of the height they reach and the non slippery base. The construction of these steps is done strongly so as to eliminate any danger. These ladders have proved to be the best due to multifunctional nature and even the styling that is attractive.

Mobile safety steps are an important feature and element that should be present in every office and industry so as to provide safety and security, they are essential but always check the testing certificates before purchasing any safety steps and even the purchasing of these mobile safety steps must be done through a reputed supplier.

Tags: , ,
2012 Drug Rehabilitation that works. Free Wordpress Themes. Web hosting. Email marketing .