go away spammer

Author Topic: Why need motor controller if an MCU has PWM output?  (Read 2039 times)

0 Members and 1 Guest are viewing this topic.

Offline MaltiKTopic starter

  • Robot Overlord
  • ****
  • Posts: 300
  • Helpful? 2
Why need motor controller if an MCU has PWM output?
« on: January 23, 2009, 02:57:18 PM »
.?
Warranty

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,650
  • Helpful? 21
  • narobo.com
    • Narobo.com - Mechatronics and related
Re: Why need motor controller if an MCU has PWM output?
« Reply #1 on: January 23, 2009, 03:14:07 PM »
because a MCU pin can only handle around 40mA of current and motors draw much more than 40mA
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline MaltiKTopic starter

  • Robot Overlord
  • ****
  • Posts: 300
  • Helpful? 2
Re: Why need motor controller if an MCU has PWM output?
« Reply #2 on: January 23, 2009, 07:02:30 PM »
Ahhh, ok and can any output pin on a MCU connect to an h-bridge to create a PWM cycle to be used by a motor, or does it have to be a PWM pin?
Warranty

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
    • izua electronics
Re: Why need motor controller if an MCU has PWM output?
« Reply #3 on: January 23, 2009, 07:28:14 PM »
You can create the PWM signal in software, but that ties the MCU to that task.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline MaltiKTopic starter

  • Robot Overlord
  • ****
  • Posts: 300
  • Helpful? 2
Re: Why need motor controller if an MCU has PWM output?
« Reply #4 on: January 24, 2009, 08:32:37 AM »
Ahh right so it doesnt have to be a PWM Output made by the manufactorer, I can check the C++ library on this site and dedicate a couple of outputs to PWM right?
Warranty

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
    • izua electronics
Re: Why need motor controller if an MCU has PWM output?
« Reply #5 on: January 24, 2009, 09:24:23 AM »
Unless you do somthing like SSC-32, you'll be limited to a few. And by limited, I mean your MCU can't do anything else but software PWM.
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: Why need motor controller if an MCU has PWM output?
« Reply #6 on: January 29, 2009, 08:26:21 PM »
Open up the datasheet of your mcu and *read* it ;)

Probably on the first 2-3 pages you will see a pin out. Look for the pins that say PWM or OC01A or OC01B . . . stuff like that.
« Last Edit: January 29, 2009, 08:26:53 PM by Admin »

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: Why need motor controller if an MCU has PWM output?
« Reply #7 on: January 29, 2009, 10:28:56 PM »
Ahh right so it doesnt have to be a PWM Output made by the manufactorer, I can check the C++ library on this site and dedicate a couple of outputs to PWM right?

My C++ library in the member tutorials generates PWM in software, for DC motor controllers, so can actually use ANY output pin.

The library also includes hardware PWM for driving servos on the dedicated PWM output pins.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

 


Get Your Ad Here