Author Topic: DC Motor  (Read 2069 times)

0 Members and 1 Guest are viewing this topic.

Offline robonerd137Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 1
DC Motor
« on: July 03, 2013, 10:51:47 AM »
I am trying to control the speed of a DC motor with a micro controller. Can someone reply with some resources?

Offline nanotechopolis_gr

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 1
Re: DC Motor
« Reply #1 on: July 03, 2013, 03:23:48 PM »
you can use PMW !
the functions are:
1)PWM1_Init(constant long frequency) initialize the frequency parameter
2)PWM1_Set_Duty(unsigned short duty_ratio) to set the cycle , the value can be 0...255
3)PWM1_Start() for starting the PMW output
4)PWM1_Stop() for stoping the PMW  output

you can also google it! check this http://www.electrosome.com/dc-motor-speed-control-pic-pwm/ for further details
"On the 29th of May, the last day of the siege, our Lord God decided, to the sorrow of the Greeks, that He was willing for the city to fall on this day into the hands of Mahomet Bey the Turk son of Mu

Offline robonerd137Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 1
Re: DC Motor
« Reply #2 on: July 03, 2013, 04:05:17 PM »
thanks so much! this will really help with my project

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: DC Motor
« Reply #3 on: July 04, 2013, 02:25:57 AM »
I am trying to control the speed of a DC motor with a micro controller. Can someone reply with some resources?
You didn't tell us what microcontroller You are using.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Re: DC Motor
« Reply #4 on: July 04, 2013, 07:50:52 AM »
I am trying to control the speed of a DC motor with a micro controller. Can someone reply with some resources?
You didn't tell us what microcontroller You are using.
Or what programming language.

Or which motor and its specs: Voltage, Current draw.
And if the motor draws more than a few 10's of mA then you need a driver circuit.
Do you the motor to run in both directions (CW & CCW)? or just one direction?
This will determine if a simple transistor switch or a full H-bride is required.

 


Get Your Ad Here