585,698 active members*
3,393 visitors online*
Register for free
Login
Results 1 to 14 of 14
  1. #1
    Join Date
    Nov 2009
    Posts
    5

    Unhappy current feedback circuit

    Hi! I am working on a unipolar stepper drive based on a ATMega16. I want the driver to have current limiting and microstepping. For that I need to read the current through the coils. The most common circuit used for that is the one in this figure( attachment ) . When I use the oscilloscope to measure from point A to ground I get what you see in the figure. The current through the coil during the ON period of the MOSFET is as expected, but during the OFF period it drops to zero (which is logical, right? If the FET is off the scope is connected to ground through a 1 ohm resistor). The problem is I want to read the decay current of the coil during the OFF period as well. How do I do this? What circuit do I use?
    Thank you.
    Attached Thumbnails Attached Thumbnails fig.JPG  

  2. #2
    Join Date
    Mar 2009
    Posts
    533
    There is a thread "Mardus-Kreutz" on this site that covers your design objectives.
    It will give the insight you need since Kreutz designed the whole thing in the long thread, including the firmware. You appear to be doing a similar project.

    See here ... http://www.cnczone.com/forums/steppe...rnative-5.html

    Edit: This the one I was looking for where a lot of details are provided. http://www.cnczone.com/forums/steppe...epping-42.html

  3. #3
    Join Date
    Jun 2007
    Posts
    3757
    Drive the coil with a H-bridge circuit, and then you can control where the decay current goes. It is possible to use a common resistor in the bottom of the H-bridge.
    You need to ensure that the parasitic diodes in the mosfets don't mislead you.
    H bridge - Wikipedia, the free encyclopedia
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  4. #4
    Join Date
    Jan 2005
    Posts
    1695
    I haven't worked with unipolar for a long time. Bipolar is better and easier if you use a chip such as the tb6600 or thb6064.

    In a unipolar drive, the normal practice is to share one resistor between the two half windings. When the transistor switches off, the resistor current goes negative because it freewheels through the other coil.

    There is no real need to measure the decaying current. Typical drives simply turn the transistor off for a fixed duration.

  5. #5
    Join Date
    Jun 2007
    Posts
    3757
    I answered the question of how to measure the decaying current.
    It is certainly easiest to use a chip that is designed for current mode use and there are too many to consider counting.

  6. #6
    Join Date
    Nov 2009
    Posts
    5
    My motors are 6 wire so if I were to use H-bridges I would drive them bipolar, I was hoping to go unipolar and use just 4 FETs per motor, if that would be possible. I will read your links tomorrow (its 5 AM now), and I will post another circuit that shows the current decay as well but there is a small problem whit it. Thank you for all the info!

  7. #7
    Join Date
    Mar 2009
    Posts
    533
    You can still use 4 FETs per motor, if you want to.

    See here http://www.cnczone.com/forums/273089-post243.html

  8. #8
    Join Date
    Nov 2009
    Posts
    5
    Here is the circuit, it shows the current during the ON and OFF period.The problem is that the amplitude is not correct and it doesn't change if I change the supply voltage but it does change if I change the PWM voltage. Is this because I am using N-Chanel MOSFET and I should be using P-Chanel? In the end (after some more reading)I think I will go bipolar, the extra torque is so temping, but still I am curious if this circuit is any good.
    Thank you.
    Attached Thumbnails Attached Thumbnails DACmodel.gif  

  9. #9
    Join Date
    Nov 2009
    Posts
    5
    My idea was to use the uC to generate the PWM for the FETs and use the ADC of the uC to read the current, no comparators no reference voltage 1 uC, 4 FETs and some passive components (complicate the code and simplify the circuit).I am interested in the decay current because I don’t just want to simply turn the transistor off for a fixed duration, as H500 suggested. As far as I can tell the current sensing part of the Mardus-Kreutz circuit is the same as the first circuit I posted and will not show the decay.

  10. #10
    Join Date
    Mar 2009
    Posts
    533
    Your circuit looks like a source follower. This means your coil voltage can't be higher than your drive voltage.

  11. #11
    Join Date
    Jun 2007
    Posts
    3757

    Exclamation

    If you want good results, guaranteed to work, with not too much research and low cost try this, under $15, and all the research has been done.
    DRV8825PWP - TEXAS INSTRUMENTS - STEPPER MOTOR DRIVER, 2.5A, 28HTSSOP | element14 Australia
    data:
    Attached Files Attached Files
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  12. #12
    Join Date
    Mar 2009
    Posts
    533
    It sounds to me that you are attempting to use a linear mode rather than a chopper mode for current control. In that case you want a controlled constant current driver, something like the Linistepper idea.

    Like post #8 here...
    http://www.cnczone.com/forums/steppe...per_usage.html

    The Linistepper doesn't seem to go much beyond 2A coil current possibly due to the heating of the drivers and the need for big heatsinks.

  13. #13
    Join Date
    Jan 2005
    Posts
    1695
    The circuit won't work because the mcu will need to drive the gate several volts higher than vcc to turn it on. A pchan fet would have a better chance, you will likely need additional parts to protect the fet.

    Why do you wish to do it this way? The extra power resistors, 4 fast power diodes and gate protection circuitry will cost far more than a comparator.

  14. #14
    Join Date
    Jun 2007
    Posts
    3757
    The chip I mention in post #11 has it's own hi-side drive via internal charge pump, so has 4 N chan mosfets in each output.
    How hard is it to do it the easy way, for $15? Have I missed something?
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

Similar Threads

  1. Optical Home Switch circuit design - feedback requested
    By mhackney in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 01-26-2012, 09:19 PM
  2. Need help with a current detection circuit
    By MattTheNoob in forum CNC Machine Related Electronics
    Replies: 39
    Last Post: 01-16-2011, 01:19 AM
  3. Need purchasing feedback, Cutmaster 102, 1" plate, min current, etc
    By mpascino in forum Waterjet General Topics
    Replies: 2
    Last Post: 07-06-2010, 01:15 PM
  4. Current limit circuit help
    By fahque99 in forum CNC Machine Related Electronics
    Replies: 16
    Last Post: 01-24-2010, 07:44 AM
  5. need high current regulator circuit
    By tekno in forum CNC Machine Related Electronics
    Replies: 38
    Last Post: 05-23-2006, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •