Results 1 to 9 of 9
  1. #1
    75+ Posting Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    132
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Why doesn't it work ?

    20140506_004829.jpg
    To the stepper motor, I found an example stepper motor code that I found in Arduino.CC But it does not work so the stepper motor does not turn.

  2. #2
    150+ Forum Groupie


    Perik's Avatar
    Join Date
    Aug 2007
    Location
    NORWAY
    Posts
    229
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    Hi Qwseyvnd

    How about applying Power and GND to the Stepper & ULN2003 chip
    according to this setup (second diagram and I expect you have a Unipolar stepper):
    http://www.8051projects.net/stepper-...onnections.php

    If you have a Bipolar stepper as you have wired yours then I would use a H-bridge
    circuit like L293 shown in forth diagram. Here is another example with another
    brand of H-bridge: http://arduino.cc/en/Tutorial/MotorKnob

    Happy stepping
    Regards,
    Per-Erik
    www.hoddo.net

  3. #3
    75+ Posting Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    132
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    I forgot to add Power and GND. I tried to use power supply from wall connect to ULN2004AN and unipolar stepper motor, but nothing works. What wrong have I done ?

  4. #4
    150+ Forum Groupie


    Perik's Avatar
    Join Date
    Aug 2007
    Location
    NORWAY
    Posts
    229
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    Hi Qwseyvnd.

    I suggest you remove your Stepper and ULN2003 chip temporarly from the setup and
    add a LED + resistor to each of the four Arduino outputs to verify that your code is running OK.
    Besides that your question is difficult to answer. It's like my car doesn't start - what is wrong?
    Show us your "diagram" and when you say "Wall Power" what do you mean? 5, 12, 24, 220V etc.
    BTW - do you have the specification for the stepper? Remember the 2003 can handle max 500mA.
    Regards,
    Per-Erik
    www.hoddo.net

  5. #5
    75+ Posting Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    132
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    The wall power runs at 220v.

    I have ULN2004AN. How much can this handle ? I found that it can handles 500 mA.

    The stepper motor is 28BYJ-48.
    Now I will check if the arduino is OK.

  6. #6
    75+ Posting Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    132
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    The LED does not blink... Maybe I have damaged the arduino card ?

  7. #7
    150+ Forum Groupie BuzziBi's Avatar
    Join Date
    Mar 2013
    Location
    Norway
    Posts
    275
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    The 28BYJ-48 5V Stepper Motor is Rated 5VDC

    http://robocraft.ru/files/datasheet/28BYJ-48.pdf

    The ULN2004AN appear to handle 0-50 VDC
    https://www.elfaelektronikk.no/elfa3...3-799-98&toc=0

    To connect the 220 ​​volt alternating current to this drive circuit, will at best only kill the driver and stepper motor.
    In the worst case, also your arduino.
    Do not mean to be rude, but... some research before wiring is always a good way to go

    Do some simple wiring and code on your arduino to test it!
    Life was hard, but then came Windows 7.
    Now we can fly! --------
    --------

  8. #8
    75+ Posting Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    132
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    Ok. Maybe i have damaged some pins on the Arduino card?

  9. #9
    75+ Posting Member
    Join Date
    Aug 2010
    Location
    Norway
    Posts
    132
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Why doesn't it work ?

    I checked the simple code LED blinking in some pins, it working fine.
    What to do with ULN2004AN and 28BYJ-48 12 Volt stepper motor? Maybe it is damaged ?

    I have another stepper motor and it using H-bridge.