Author Topic: Microcontroller Burnout  (Read 2733 times)

0 Members and 1 Guest are viewing this topic.

Offline FunkMasterBobTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Microcontroller Burnout
« on: February 19, 2009, 03:09:30 PM »
Hey, so after reading the tutorial for your first robot, I have a question. Won't hooking a motor up directly to the microcontroller cause a burnout of the microcontroller? If not, why not? I'm looking into building a device using motors and a microcontroller, and want to make sure i don't have to buy two microcontrollers because of a stupid mistake. Thanks for any help you can give.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: Microcontroller Burnout
« Reply #1 on: February 19, 2009, 03:37:07 PM »
If you are driving a DC motor then DONT connect it to the microcontroller. You will need to buy a motor controller that converts the low current from you microprocessor into the high current for the motor. Or you could one yourself - see my tutorial http://www.societyofrobots.com/member_tutorials/node/159

But you CAN connect a servo directly to the microcontroller (thiis is because a servo has a kinda mini motor controller board built into its casing).
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline HyperNerd

  • Robot Overlord
  • ****
  • Posts: 139
  • Helpful? 5
  • N3rd1n80r
Re: Microcontroller Burnout
« Reply #2 on: February 22, 2009, 04:36:55 AM »
You could use a H-Bridge, although this only allows you to use one speed for the motor, but it DOES allow forwards and backwards spinning.

 -HyperNerd
There are 10 types of people in the world - those who understand binary, and those who don't.

Offline superchiku

  • Supreme Robot
  • *****
  • Posts: 952
  • Helpful? 5
  • cooll
Re: Microcontroller Burnout
« Reply #3 on: February 22, 2009, 04:41:50 AM »
NEVER ...EVER ....connect the motor directly to the mcu..use any motor driver like l293d which can supply ypto 600 ma of current or the l298 which can supply upto 2 A of current...the schematics can be found out on the net..
JAYDEEP ...

IT AND ROBOTICS ENGINEER

"IN THE END IT DOESNT EVEN MATTER"

Offline madchimp

  • Robot Overlord
  • ****
  • Posts: 158
  • Helpful? 2
Re: Microcontroller Burnout
« Reply #4 on: February 22, 2009, 06:04:27 AM »
You could use a H-Bridge, although this only allows you to use one speed for the motor, but it DOES allow forwards and backwards spinning.

 -HyperNerd

Actually can't you use pulse width modulated signals to the H-Bridge to get variable speed? A lot of the mcus have at least a couple channels of PWM available.

Offline HyperNerd

  • Robot Overlord
  • ****
  • Posts: 139
  • Helpful? 5
  • N3rd1n80r
Re: Microcontroller Burnout
« Reply #5 on: February 22, 2009, 09:28:54 AM »
Quote
Actually can't you use pulse width modulated signals to the H-Bridge to get variable speed? A lot of the mcus have at least a couple channels of PWM available.

Madchimp,

You're right... I must have had a blank moment ;)

 -HyperNerd
There are 10 types of people in the world - those who understand binary, and those who don't.

 

SMF spam blocked by CleanTalk