588,685 active members*
6,356 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Open Source Controller Boards > PIC/297/298 WEIRD MOVEMENT, It will jus take a minuit. THANKX.
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2011
    Posts
    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
    Join Date
    Jun 2007
    Posts
    3735
    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. PIC/297/298 STEP LOSS & WEIRD MOVEMENT
    By ellasaro in forum Hobby Discussion
    Replies: 0
    Last Post: 02-16-2012, 02:36 PM
  2. weird movement
    By corrie in forum Machines running Mach Software
    Replies: 0
    Last Post: 11-27-2008, 05:03 AM
  3. Very weird situation...
    By saturnnights in forum SheetCam
    Replies: 6
    Last Post: 03-02-2006, 09:08 AM
  4. Weird?
    By Klox in forum Uncategorised CAM Discussion
    Replies: 5
    Last Post: 11-19-2003, 05:04 AM

Tags for this Thread

Posting Permissions

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