taonas.blogg.se

Motors with speed control
Motors with speed control







All we need to do is set the following registers with the specified values. Apart from these, we also need to use the PLL for clock generation.Īs explained in our PLL Tutorial, setting up PLL module for generating system clock is a very simple task. CodeĪs mentioned earlier, we need to use ADC and PWM modules of the LPC2148 MCU. The working of the project can be understood better if we analyze the programming part of it. More information about PWM in LPC2148 can be found here. The output of the ADC will determine the duty cycle of the PWM signal. This is done by setting the duty cycle of the PWM output signal. In this project, the PWM signal will control the speed of rotation of the DC motor. PWM signal can determine the amount of power that gets delivered to a device. The next important module is the PWM generator. More information about ADC in LPC2148 can be found here. Using the registers corresponding to ADC module, the ADC is setup, values are converted and the result is obtained. This must be converted to a digital signal using the on – chip ADC module of the ARM7 MCU LPC2147. The working of the project is explained here.Īs mentioned earlier, the output of the potentiometer is an analog signal. The project involves ADC and PWM modules of the LPC2148 MCU. Speed control of a simple DC motor is demonstrated in this project. Hence, 2N2222 Transistor can handle the requirements of the motor. Note: The current required for a simple 12V DC Motor will be in the range of 400mA to 600mA (this is a typical range and the actual requirements may vary with the type of motor). It is an NPN transistor with a maximum collector – to – emitter voltage of 30V and a maximum collector current of 800mA.

Motors with speed control driver#

Since we cannot connect the motor directly to the LPC2148 (as a matter of fact to any microcontroller), we need to use a driver circuit.Īs this is a simple speed control of the DC motor, we can connect the motor with a transistor provided the transistor can handle current requirements of the motor. AD0.1 channel.Īfter connecting potentiometer, we need to connect the motor to the MCU. On the development board we are using, a Potentiometer is already present and the output of the potentiometer is connected to pin P0.28 i.e. Since the input from the potentiometer is an analog signal, we need to connect the output of the potentiometer to one of the analog input pins i.e. The design of the circuit involves connecting the potentiometer and the motor to the MCU. We are using an LPC2148 development board in this project. Power supply (Separate for MCU and Motor).Lpc2148 MCU based Development board or stand – alone board.Depending on the type of MCU board you are using, you might need some or all the components mentioned below.







Motors with speed control