Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

robot driving using compass controll whit pid controller

Status
Not open for further replies.

soheil6818

Newbie level 6
Joined
Jun 27, 2011
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
IR - ESF
Activity points
1,354
hi all
i want to drive my robot and controll it by Compass(CMPS03)
the compass is working properly! means it shows an exact degree! but when i want to use it to turn my robot 90deg it has 10deg error! means if robot will stop at 90 deg , it stops at 100deg! how can i controll my robot motors to have a fix turning!
using atmega32, C language
 

This is because you cannot stop the Robot very accurately(immediately) because of physical limitations.
Try to stop the motor a bit early, for ex now if you are stopping the motor at abt 85 deg, try to stop it at 80 deg.
 

dc / 170rpm / torque 2N.m / brushed /
what do you mean by "what kind of motor you are using for wheels ? "
 

when you are saying robot motor how would we know whether that motor is stepper or the one that you have used may be inertial force may have caused your robot accuracy in turning if you have used stepper motor it can be controlled in a great accuracy i mean that
 

I think, if you applying PID, this can be do.

Now, If you read 90 degree then you give command to stop the motor, it give delay and due tu mechanical or inertia, it will over that required degree.

If you put PID, the motor will slowly automatically before it reach 90 degree and ready to stop on required degree.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top