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 / 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 13 years, 11 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

  • Can a small solar panel safely trickle-charge old NiMH AA batteries? November 15, 2025
  • ESP32-S3 started outputting NMEA GPS location frames after EMC disturbance — what mode is this? November 15, 2025
  • TraxMaker Pro? I only have the non-Pro version. Looking for the Pro version that has the integrated pick and place coordinates export. November 15, 2025
  • desoldering November 15, 2025
  • Need a fresh eye on my first PCB November 14, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 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