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 / USING OF PWM TECHNIQUE TO CONTROL SPEED OF A MOTOR ,WHEN LPC2148 MICROCONTROLLER IS USED

USING OF PWM TECHNIQUE TO CONTROL SPEED OF A MOTOR ,WHEN LPC2148 MICROCONTROLLER IS USED

|

Projects › Projects › USING OF PWM TECHNIQUE TO CONTROL SPEED OF A MOTOR ,WHEN LPC2148 MICROCONTROLLER IS USED

  • This topic has 9 replies, 4 voices, and was last updated 10 years ago by ANJUSHA.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • October 25, 2013 at 12:40 pm #2660
    ANJUSHA
    Participant

    sir,  i gone many forums,many sites….concept of pwm in lpc2148 is not understanding properly.can any one tell me,,how pwm technique is used to control speed of a motor?

    October 29, 2013 at 9:04 am #10563
    AJISH ALFRED
    Participant

    Hi Abiram,
    Suppose you have a 12V DC motor, and you are supplying 12V DC consistantly for the motro. In that case the motor will run at its maximum rated speed, say 3000rpm.
    If you apply this 12V at every one millisecond with a delay of 1ms where there is no supply, the motor will run at half the speed, 1500rpm. Here the ON TIME of the supply is 1ms and OFF TIME is also 1ms. If you increase OFF TIME to 1.5ms and reduce the ON TIME to 0.5ms the speed of the motor will again reduce to 750rpm.

    Hence if voltage is applied in pulses the speed depends on the ON TIME and OFF TIME. This is the concept of PWM or PULSE WIDTH MODULATION.

    PWM is a wave with constant pulse PERIOD which means (ON TIME + OFF TIME) is a constant. To increase the speed simply increase the ON TIME and decrease the OFF time. To decrease the speed, reduce the ON time and increase the OFF time.

    October 30, 2013 at 3:19 am #10564
    ANJUSHA
    Participant

    thank you so  much.i understand well…. sir i tried with 8051,its ok..but in ARM7 LPC2148 controller, there are two frequencies.one is crystal frequency =12MHz   and  PCLK(pheripheral clock)=30MHz, where (VPBDIV=0X02 i.e    1/4 of the default PLL output=60MHz )….now my doubt is which frequency we have to consider in  performing PWM  in this controller and let me know how? how frequency and Ton and Toff are related and with which frequency?

    November 4, 2013 at 10:52 am #10568
    AJISH ALFRED
    Participant

    Hi Abiram,

    That’s a very good question !

    Frequency is nothing but 1/ PERIOD or 1/(Ton + Toff) which will be a constant value.

    The frequency or the time period (inverse of frequency) for a PWM is decided based on where we are going to apply it. For example very high frequency PWM are used in audio output circuits, medium frequency are used in light intensity control circuits and low frequency are used for motor control circuits.

    A motor has a property called inertia of rotation and due to that the motor continue rotating even at the Toff period of a PWM wave. If the Toff is too large then the motor will come to a stop at Toff period. Similarly the Ton should be long enough for the motor to escape from the inertia of non rotation initially and start rotating. All these depends on the motor that you use.

    I suggest to keep the Ton and Toff in milliseonds range for the motor. For that you have to use the low frequency oscillator in the controller only.

    How to configure the controller, please go through the datasheet or you can find lot of sample codes from the internet.

    June 16, 2015 at 3:38 pm #12987
    Prasad Bangar
    Participant

    Hello sir,
    I am doing project in motor control I want the steps to do the programming of stepper motor in lpc2148 using pwm technique.
    can you help me sir??

    June 17, 2015 at 7:12 am #12992
    Ashutosh Bhatt
    Participant

    stepper motor does not run with PWM

    rather it will run on PRF – pulse repeatition frequency

    high PRF means more RPM (speed) and vice versa

    March 24, 2016 at 1:06 pm #13820
    Prasad Bangar
    Participant

    Hello 
    I just want control the speed DC motor will also help me guide me accordingly.
    I am working on LPC2148 using L293D driver.

    March 24, 2016 at 1:08 pm #13821
    Prasad Bangar
    Participant

    I just wanted to ask this that can I use for loop to intereupt the signal which just similar to PWM??

    March 24, 2016 at 4:44 pm #13822
    ANJUSHA
    Participant

    i dont exactly about the concept ur asking…..just refer "ocfreaks lpc2148  " it might give an idea for you.

    March 24, 2016 at 4:51 pm #13823
    ANJUSHA
    Participant

    once see the l293d driver internal circuit, its a h-bridge….

    one driver can drive 2 motors

    and for PWM technique refer "OcFreaks LPC2148 PWM TECHNIQUE". It will be very helpful….

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

RSS Recent Posts

  • Understanding reversing polarity at astable multivibrator April 19, 2026
  • Integrating 0–5V ECU Signals into a Double-DIN Setup – Module vs Custom Head Unit? April 19, 2026
  • Selection Criteria and Safe Usage of Cable Ties in Electronics Applications April 19, 2026
  • Mystery amp noise - ?? April 19, 2026
  • timing delay code statements using Swordfish April 19, 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