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 / C codes for generating pulse width for servo motor.

C codes for generating pulse width for servo motor.

|

Microcontroller › 8051 › C codes for generating pulse width for servo motor.

  • This topic has 5 replies, 3 voices, and was last updated 13 years ago by AJISH ALFRED.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • May 4, 2012 at 2:00 pm #1783
    Nabeela Rahman
    Participant

    Please provide me the C codes for generating pulses for servo motor with pulse width varying from 1-2ms.Please help me, Im doing the project of servo motor control using keypad, everything is done as per given in the site but the motor isn’t running….its really urgent,Help me!!

    May 8, 2012 at 11:06 am #7632
    Amrith
    Participant

    hello rahman,

     

    kindly let me know which controller and oscillator you are using. If possible, share your schematics Will provide you needed support to complete your task.

     

    thank you!!!

    May 8, 2012 at 11:06 am #7651
    Amrith
    Participant

    hello rahman,

     

    kindly let me know which controller and oscillator you are using. If possible, share your schematics Will provide you needed support to complete your task.

     

    thank you!!!

    May 14, 2012 at 5:39 am #7774
    Nabeela Rahman
    Participant

    Hello,

     

           Thanks for your reply….my project is controlling of the servo position to user defined value entered through a matrix keypad. I’ve used 89c51 with 12 MHz oscillator circuit, I’ve interfaced a 3×4 matrix keypad and have used LCD in 4 bit mode. I’m using Futuba S3003 servo motor which has a specification of 1520usec(neutral position)….I just need the codes for the timer part to generate the required ON-OFF pulses according to the angle entered from 0 to 180 degree.

     

            I also need to know if suppose we need to generate 25usec delay using overflow of timer 1 in mode 2,do we need to load TH1= -25 for 12 MHz crystal?

     

            I’ll be very thankful if you can kindly help me, I need it urgently by this week….plz help!

    May 14, 2012 at 5:39 am #7791
    Nabeela Rahman
    Participant

    Hello,

     

           Thanks for your reply….my project is controlling of the servo position to user defined value entered through a matrix keypad. I’ve used 89c51 with 12 MHz oscillator circuit, I’ve interfaced a 3×4 matrix keypad and have used LCD in 4 bit mode. I’m using Futuba S3003 servo motor which has a specification of 1520usec(neutral position)….I just need the codes for the timer part to generate the required ON-OFF pulses according to the angle entered from 0 to 180 degree.

     

            I also need to know if suppose we need to generate 25usec delay using overflow of timer 1 in mode 2,do we need to load TH1= -25 for 12 MHz crystal?

     

            I’ll be very thankful if you can kindly help me, I need it urgently by this week….plz help!

    May 17, 2012 at 6:20 pm #7850
    AJISH ALFRED
    Participant

     

    Please share the link of the project from the site here.

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

RSS Recent Posts

  • Telegram Based Alarm - Sensor cable protection May 21, 2025
  • Chinese Tarrifs – 104%!?! May 21, 2025
  • An Update On Tarrifs May 21, 2025
  • Tariff Updates from JLCPCB as of Today May 21, 2025
  • Solar lighting motion detector May 21, 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