EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
You are here: Home / Topics / How to run the stepper motor ?..

How to run the stepper motor ?..

|

Microcontroller › PIC › How to run the stepper motor ?..

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 12 months ago by Luis Morquecho.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 8, 2013 at 8:45 am #2237
    sureshkumar
    Participant

    Hai to every one I am sureshkumar from india(Tamil Nadu). First  I am using PIC16F877A device.

     

    Mplab v8.90.

    CCS C compiler v4.068.

    pickit2

     

    I was try to run the stepper motor in many ways. using ULN2003APG and using L298h bridge but the motor does not run only shake the motor soft.

     

    what can i do…

     

    Motor specification:

     

    That motor is i was purchased from autonics.

    That motor have 6 wires.

     

    Back side priented on that motor

     

    3.6vdc

    1.2amp/phase

    1.8* phase

     

    what is this ?

     

    Please any one help me

     

    How to run the stepper motor using this controller. I was purchased L298 Hbridge from NSK Electronics(bangalore).

    That have many pins.

     

     

    IN1,IN2,IN3,IN4, EN1 and EN2. What is this ?… how to use this pins ?…

     

    April 9, 2013 at 5:49 am #9447
    Jason Jordon
    Participant

    Can you post the diagram and the code? Why have chosen PIC as the controller for this project?

    August 18, 2013 at 8:16 am #10335
    Luis Morquecho
    Participant

    What you must do is to investigate which is the secuence of the stepper motor.

    The 16 posibilities are next:

    IN1  IN2  IN3  IN4 

     0       0     0       0

     0       0     0       1

     0       0     1       0

     0       0     1       1

     

     ”        ”      ”        “

     

     1       1      1      1

     

    Get a battery or power supply of 3,6V

    1º connect GND of Power to the GND of the motor.

    2º Try all the 16 posibilities and if the motor turns note down in which direction.

    3º If for example there are 3 secuencies that turn in right direction reproduce this, but betwen out a secuence and out the next secuence put a delay that will mark the velocity of the motor. Watch out with the delay is not too small.

     

    while (1)

    {

    out port  (0100)   //Secuence 1 turn right

    delay_ms (500)    //delay 0,5 s

    out port  (1000)   //Secuence 2 turn right

    delay_ms (500)    //delay 0,5 s

    out port  (1100)   //Secuence 3 turn right

     

    delay_ms (500)    //delay 0,5 s

    }

     

    with this example the motor always turn in the right direction

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • How to power up two stereo audio amplifiers from a single source of power supply August 11, 2022
  • uc3843 Buck-boost August 11, 2022
  • Drill speed controller fault August 11, 2022
  • Code suggestion from Android Studio. Good? August 11, 2022
  • Nokia 5110 HW in Oshonsoft August 11, 2022

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools