Microstepper controller


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Posts
    130


    Did you find this post helpful? Yes | No

    Default

    thanks for your replies, I hope in the future you post an hex with step/dir so I can control it using mach3 software. Thanks!!

  2. #2
    Join Date
    May 2010
    Location
    Chile
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Working fine on the 16F628A

    In my design I upgraded the power stage to an ULN2068 (1.5A max per output) and put an embedded FTDI usb to USART chip. All on a 100x50mm single sided PCB (I'll share the PCB as a sign of gratitude once I finish debugging it a little on the usb part).
    Also i'm planning to put a safety stop serial command with another pic sniffing the serial commands, because if you make a mistake on the instruction it will execute completly before you regain control of the motor, and that on my aplication is critical.

    I got a problem anyhow but i don't know if it's software related or from my "squeeze pcb components to the max to reduce pcb size" techniques.

    Works fine on a half an full step mode, but on microstepping sometimes works and sometimes starts making a strange noise on the coils making them hum and jitter untill I reset the whole driver. It's probable that the pic or the gates gets a little dizzy from emi noise because all kinds of lab equipments are connected to the same line so i'm working on that.

    One doubt i had is if driving the stepper motor by limiting to a fixed current won't reduce torque in half step modes? (2 coils at 50% current vs 1 coil at 100% current)
    Then why is better to drive them this way?. I know constant curent means that is aproximately constant in torque independant of the coils activated, but wouldn't be better with full current on every coil at expense of more current?
    Last edited by El_AMPo; - 22nd November 2010 at 18:00.
    "If at first doesn't work, kicking it wont help either"

  3. #3
    Join Date
    May 2010
    Location
    Chile
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by peu View Post
    thanks for your replies, I hope in the future you post an hex with step/dir so I can control it using mach3 software. Thanks!!
    You can build up an interpreter for the serial stream with another pic, no so pretty but is a simple and fast solution.
    "If at first doesn't work, kicking it wont help either"

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Microstepper

    Here is the device which brought me to PICs. I bought 3 kits from them, they work great and microstep.

    http://www.piclist.com/techref/io/st...step/index.htm
    http://www.piclist.com/techref/io/st...p/lini_use.htm
    http://www.piclist.com/techref/io/st...570.4504050926
    He was selling kits on the web site and eBay
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by peu View Post
    thanks for your replies, I hope in the future you post an hex with step/dir so I can control it using mach3 software. Thanks!!
    Name:  QUARTER.jpg
Views: 6198
Size:  91.9 KB
    Here's a single chip commercial grade solution A3984 - DMOS Microstepping Driver

    The A3984 is a complete microstepping motor driver with built-in translator for easy operation. It is designed to operate bipolar stepper motors in full-, half-, quarter-, and sixteenth-step modes, with an output drive capacity of up to 35 V and ±2 A. The A3984 includes a fixed off-time current regulator which has the ability to operate in Slow or Mixed decay modes.
    The translator is the key to the easy implementation of the A3984. Simply inputting one pulse on the STEP input drives the motor one microstep. There are no phase sequence tables, high frequency control lines, or complex interfaces to program. The A3984 interface is an ideal fit for applications where a complex microprocessor is unavailable or is overburdened.
    The chopping control in the A3984 automatically selects the current decay mode (Slow or Mixed). When a signal occurs at the STEP input pin, the A3984 determines if that step results in a higher or lower current in each of the motor phases. If the change is to a higher current, then the decay mode is set to Slow decay. If the change is to a lower current, then the current decay is set to Mixed (set initially to a fast decay for a period amounting to 31.25% of the fixed off-time, then to a slow decay for the remainder of the off-time). This current decay control scheme results in reduced audible motor noise, increased step accuracy, and reduced power dissipation.
    Internal synchronous rectification control circuitry is provided to improve power dissipation during PWM operation.
    Internal circuit protection includes: thermal shutdown with hysteresis, undervoltage lockout (UVLO), and crossover-current protection. Special power-on sequencing is not required.

  6. #6
    Join Date
    May 2010
    Location
    Chile
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    Aratti,
    i've found a glitch in the microstepping mode, maybe you can confirm if it's software related.

    If you enummerate the coils from A to D, then when changing from coil D to A the transition it's not in microsteps but a full step. Maybe an end loop thing?

    I've attached a video (check the green leds, the transition between the one down and the left one)



    Happy holidays (the ones that have some)
    Last edited by Archangel; - 2nd April 2012 at 09:08. Reason: fix link
    "If at first doesn't work, kicking it wont help either"

Similar Threads

  1. Temperature Controller using PIC16F628A
    By bentech4u in forum mel PIC BASIC
    Replies: 34
    Last Post: - 14th March 2010, 19:44
  2. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 20:33
  3. Fridge controller
    By nomad in forum General
    Replies: 4
    Last Post: - 23rd February 2008, 07:13
  4. Graphics controller for the Sitronix ST7549
    By ttease in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th May 2007, 21:45
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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