Results 1 to 2 of 2

Thread: PIC/297/298 WEIRD MOVEMENT, It will jus take a minuit. THANKX.

  1. #1
    Registered
    Join Date
    Jun 2011
    Location
    Uruguay
    Posts
    10
    Downloads
    0
    Uploads
    0

    PIC/297/298 WEIRD MOVEMENT, It will jus take a minuit. THANKX.

    Hi,

    I'm having this problem maybe someone can give me some useful ideas.

    I have a PIC controlling two L297 - L298 (each L298 is connected to a stepper of course).

    This is how it basicaly works:

    1) a rabbit sends to the PIC, via serial port, the direction in which the steppers must move
    2) the PIC updates the ENABLE and CW/CCW of the 297
    3) the PIC then generates the CLK for the steppers to move

    The problem is that if I program the PIC to generate 20 CLK pulses for each time it recieves a new direction it works fine, BUT IF I PROGRAM IT TO GENERATE 1 OR EVEN 10 IT JUST MOVES ERRATICALLY.

    Am I being clear about the problem I'm having?
    Any ideas? Could it be mechanic or it looks more like a software issue?

    THANX TO ANY INSIGHT YOU MAY OFFER!


  2. #2
    Registered neilw20's Avatar
    Join Date
    Jun 2007
    Location
    Australia
    Posts
    3426
    Downloads
    0
    Uploads
    0
    Wiring or earthing problems introducing noise on input signals?

    Long wires, daisy chained power wires, shielded leads - only terminate one end of shield.

    Power supply ripple introduced to logic side of power through poor common wiring.

    Post some pictures of all of the wiring and setup.
    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. Problem- PIC/297/298 STEP LOSS & WEIRD MOVEMENT
    By ellasaro in forum Hobby Discussion
    Replies: 0
    Last Post: 02-16-2012, 08:36 AM
  2. weird movement
    By corrie in forum Machines running Mach Software
    Replies: 0
    Last Post: 11-26-2008, 11:03 PM
  3. Very weird situation...
    By saturnnights in forum SheetCam
    Replies: 6
    Last Post: 03-02-2006, 03:08 AM
  4. Weird?
    By Klox in forum General CAM Discussion
    Replies: 5
    Last Post: 11-18-2003, 11:04 PM

Tags for this Thread

Posting Permissions



About CNCzone.com

    We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

Follow us on

Facebook Dribbble RSS Feed


Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.