587,982 active members*
3,921 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Arduino > Advice would be great!- Arduino + L297 + L298N + 12VStepper problems
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2016
    Posts
    2

    Red face Advice would be great!- Arduino + L297 + L298N + 12VStepper problems

    Hello Community,

    i recently started to build my own CNC machine.
    Just because I have the time and want to fresh up my knowledge (which is not very much) about all this stuff and of course, learn new things.
    I am still in the beginnen process but just because of a problem what I simple can't find a solution for.
    All the mechanics are working well and waiting to be motorized and controlled.
    i googled the whole world, but I can't solve the problem.

    My problem sounds simple: I just can't bring the motor to turn. It is just vibrating. But I am sure, that the reason is not the wiring of my motor, i checked it without the motor driver, just the l298amp and it worked very well well.


    So here is my set-Up:

    - Arduino MEGA2560
    - L297
    - L298N Board (I think anywhere here is the mistake, cause it's a board, maybe can't communicate to l297 like i though ?..)
    this: http://bilder4.eazyauction.de/marotr...0_2e921a00.jpg
    - NEMA 17, 12V 0.4A 200steps/rev StepperMotor
    this: http://www.omc-stepperonline.com/dow...HS13-0404S.pdf
    - 12V from old PC-Powersupply


    and now some wiring Detail, I used this circuit:
    http://www.st.com/web/en/resource/te...CD00000063.pdf

    L297:
    - on the OSC pin: 3,3nF / 22kOhm
    - RS1, RS2 = 2,5Ohm --> Vref = 1V
    - i soldered cables to pin 1 and 15 of the L298N on it's Board to connect it with Sense's and RS's
    - Vref = 1V, with voltagedevider 40kOhm, 10kOhm
    - HOME, SYNC -> empty
    - ENA/ENB -> INHA/INHB
    - RESET = 5V
    - all GND's together, of L298N Board, L297, Arduino
    - L297 gets 5V from Arduino
    - L298N gets the 12V power supply, for itself and for motor

    I think this is the important information. the rest is wired as seen in the circuit diagram.

    And yes.... it is just vibrating, and making music.. but it won't turn, or even move.
    I checked the motor wiring a hundred times and like i said, the motor works fine if I leave out the L297 and drive the L298N via 4channel Stepper.h from arduino directly
    from 50 to 150RPM).


    Here is the sketch:


    int smDirectionPin = 8; //Direction pin
    int smStepPin = 4; //Stepper pin
    int EN = 6; // Enable pin

    void setup(){
    pinMode(EN, OUTPUT);
    pinMode(smDirectionPin, OUTPUT);
    pinMode(smStepPin, OUTPUT);
    Serial.begin(9600); }
    void loop(){
    pinMode(EN, HIGH);
    digitalWrite(smDirectionPin, HIGH);

    for (int i = 0; i < 200; i++){

    digitalWrite(smStepPin, HIGH);
    delayMicrosenconds(4000);
    digitalWrite(smStepPin, LOW);
    delayMicroseconds(4000);
    }

    pinMode(EN, LOW); delay(1000);
    }




    I would be very grateful, if somebody has an advice, what to try next.

    Thanks,

  2. #2
    Join Date
    Mar 2016
    Posts
    2

    Re: Advice would be great!- Arduino + L297 + L298N + 12VStepper problems

    hey, if somebody has a clue, please write.

    if somebody with knowledge in this issue has no clue, please write also.
    if i did everything right, then i have to start to change the material on my system. l297,l298n,arduino - maybe smt. is broken

  3. #3
    Join Date
    May 2005
    Posts
    1397

    Re: Advice would be great!- Arduino + L297 + L298N + 12VStepper problems

    You need to troubleshoot by looking at all the signals and verifying that they are what you expect. E.e. use a multimeter (if you don't have one, buy one) and check to see if the L297 actually has Vcc and ground. Is it actually getting a step pulse (meter on AC, fast stream from the Arduino, then stop and start), then check it output /without/ it being connected to anything to see if you are getting the signals you expect (single pulse from Arduino, check the 4 outputs, another pulse, check, pulse, check, through the entire sequence).
    James hosts the single best wiki page about steppers for CNC hobbyists on the net:
    http://www.piclist.com/techref/io/steppers.htm Disagree? Tell him what's missing! ,o)

Similar Threads

  1. L297 - L298n
    By reuven81 in forum Open Source Controller Boards
    Replies: 5
    Last Post: 07-17-2015, 08:08 PM
  2. Homemade BoB and Drivers (L297/L298N)
    By mk169474 in forum CNC Machine Related Electronics
    Replies: 4
    Last Post: 01-24-2013, 11:45 PM
  3. L297/L298N driver: determining exact phase current
    By Thomeeque in forum Stepper Motors / Drives
    Replies: 14
    Last Post: 02-23-2012, 06:21 PM
  4. L298N and L297 for stepper motor (unipolar)
    By same79 in forum CNC Machine Related Electronics
    Replies: 11
    Last Post: 12-27-2010, 06:01 PM
  5. L297 / L298n problems - whining motor!
    By bigal in forum Stepper Motors / Drives
    Replies: 2
    Last Post: 07-21-2005, 10:32 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
  •