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 / Angular rotation of 50 degrees

Angular rotation of 50 degrees

|

Microcontroller › 8051 › Angular rotation of 50 degrees

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by Dexter.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • November 24, 2011 at 4:37 pm #1414
    Cosmonavt
    Participant

    I want to interface a motor with 8051 microcontroller so that it would rotate 50 degree from a fixed point and then stop. First off, woul I be using a stepper motor or a servo motor?

     

    Could anyone please make a simple schematic diagram of how this is to be done using 8051? I am using C for programming purpose. Please also specify the code which will need to be installed in the microcontroller.

    December 2, 2011 at 2:08 am #6892
    Dexter
    Participant

     

    this circuit showes how to interface the servo motor with 8051.

    whenever it is switched on for 50degree rotation give a time delay for the servo to stop the motor.

    void PRESSUR_DELAY(unsigned char TIME)

     

    {
        int Y;
        Y= TIME;
        x++;
         switch (Y)
        {
        case 1:           
        Delay_in_1s(182);    //182
        break;
        case 2:           
        Delay_in_1s(189);    //189
        break;
        case 3:           
        Delay_in_1s(200);    //200
        break;
        case 4:           
        Delay_in_1s(222);    //222
        break;
        case 5:       

        }
    }

     

    wysiwyg_imageupload:3287:

     

     

  • 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

  • Nokia 5110 HW in Oshonsoft August 17, 2022
  • Digital Display Information August 17, 2022
  • Seeking Help to compile code August 17, 2022
  • 2nd pcb design program? August 17, 2022
  • Door exit button August 17, 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