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
  • Advertise
You are here: Home / Topics / stepper interface to 8051

stepper interface to 8051

|

Microcontroller › 8051 › stepper interface to 8051

  • This topic has 1 reply, 2 voices, and was last updated 13 years, 11 months ago by Naveen Srivastava.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 4, 2012 at 1:40 pm #1607
    akshay ram
    Participant

    hello,

         i have interfaced my 8051 to a stepper motor with resolution 1.8. how do i make the stepper rotate for any int value ?? i tried dividing the int by 1.8 and passing it to the motor using &0x0F|0xF0 but it didnt work…

    March 4, 2012 at 3:25 pm #7243
    Naveen Srivastava
    Participant

     

    #include <stdio.h>
    #include <8051.h>  
    void delay (int time)
    {
    int i,j;
    for (i=0;i<=10;i++)
    {
    for (j=0;j<=time*10;j++)
    {
    }}}      
    void forward ( )
    {
    P1=0x11;
    delay(10);
    P1=0x22;
    delay(10);
    P1=0x33;
    delay(10);
    P1=0x44;
    delay(10);
    }    
    void main()
    {
    P1=0xff;
    while(1)
    {
    forward();
    }
    }
     
  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • analog logic of shmidt trigger bjt circuit February 15, 2026
  • Harman Kardon radio module BMW noise February 15, 2026
  • CR2/CR123A Batteries In Projects February 15, 2026
  • RC Electronic Speed Control Capacitors February 15, 2026
  • Convenient audio FFT module? February 15, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 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
  • Advertise