English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to control a DC motor using Atmega8515.I want to know details about controlling motors using PWM.Another question, I want to know if there is faster motor than DC motor.

2007-09-17 12:25:19 · 3 answers · asked by Islam Refaat 1 in Science & Mathematics Engineering

3 answers

The Atmel can not provide all the current the motor will need so it is used just for the control signal. The on/off output from one I/O pin of the Atmel is brought into a driver IC that can switch heavier current. You get the speed while still being able to get the power.

As far as PWM you can do it in the Atmel. Pick an interval over which you want to refresh the current to the motor, like a second or so. Then set a timer to interrupt at a small fraction of that time, like 1/100th of second (10ms). Now look at the speed command number you have calculated. Use that value compared to the full speed number to see what fraction of full speed it is. Then take that fraction and use it with the interrupt time to determine the width of the interval that the drive signal will be a full-on voltage. For example if you want to control at 25% of full speed, set a counter to 25 and each time that the timer interrupt comes on make a yes/no decision as to whether to turn the signal off or on and count down that counter. You now have a motor pulse that will be on for 25% of the time and off for 75% of the time (where in this example the time period is a full second). It is an easy approach that doesn't need much computing power. You have control over the two timers so you can tweak their periods to get the desired motor action.

2007-09-17 12:54:16 · answer #1 · answered by Rich Z 7 · 0 0

The Atmel Microcontroller can be used to control a step motor, not a DC motor.

2007-09-17 12:30:52 · answer #2 · answered by Anonymous · 0 0

I easily have controller 8051 as one among my difficulty perfect now, so i'm additionally gaining wisdom of that, yet i probably might desire to guess in this rely. you ought to use and of port 0,a million,2,3 pin, make tcon and tmod as consistent with the requirement of timer 0 or timer a million, then and them with 0cfh(hex) . D4 bit is for timer 0 commencing you connect exterior port with relay and then to motor, so as quickly because of the fact the timer bit d4 gets a million relay will initiate and in turn initiate the motor, and then once you desire to offer up which you and that with 20hex and it will supply up. you could carry out this under someones supervision.

2016-10-18 22:34:09 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers