Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 5th December 2005, 02:05 AM   (permalink)
Default matching PWMs

Im working on this project in my microcontrollers class that involves constructing a Lego tank robot that has 2 small unmatched motors.
The bot has to navigate obsticles and whatnot, and I have pretty much everything figured out except for how to get the PWM's matched to get the bot to go in a straight line.
I know this should be in the robotics section, but there isnt much activity over there and its due in a couple days.
so what would be the easiest way to do this?
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Old 5th December 2005, 08:12 AM   (permalink)
Default Re: matching PWMs

Quote:
Originally Posted by jrz126
Im working on this project in my microcontrollers class that involves constructing a Lego tank robot that has 2 small unmatched motors.
The bot has to navigate obsticles and whatnot, and I have pretty much everything figured out except for how to get the PWM's matched to get the bot to go in a straight line.
I know this should be in the robotics section, but there isnt much activity over there and its due in a couple days.
so what would be the easiest way to do this?
There's no way to do it accurately without some kind of feedback, even with perfectly matched motors the loads on them will be slightly different and it won't go straight. You need to measure the exact distance the wheels move, and keep them both the same - bear in mind though, this doesn't account for wheel slip, so it still might not go straight!.

Probably the simplest way is to use steppers rather than DC motors!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 5th December 2005, 11:49 AM   (permalink)
Default

oh yeah, I forgot to mention that I have an opical encoder connected to the one side to give me a tachometer feedback.

I was using a long piece of network cable to power the bot while testing, maybe I'll just kepp the wire on there and give it slight adjustments by pulling on the wire.
__________________
Jeff Zimmerman
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
jrz126 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes




All times are GMT. The time now is 04:56 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.