View unanswered posts | View active topics It is currently Wed Jul 30, 2014 11:35 am






Reply to topic  [ 4 posts ] 
motor encoder help????? 
Author Message
Rookie

Joined: Thu Nov 06, 2008 4:35 pm
Posts: 12
Post motor encoder help?????
Hello i am haveing problems with these motor encoders i have tested them and then values that are returned are negitive for one motor and positive for the other they appear to be placed on right and both motors go in the same direction , i dont know how to fix this plz help! P.I.D control is off.

also when P.I.D. is on we cannot control the motor speed it just stays at 100

thank you!

_________________
Palm Harbor University High School, Robotics team Pandara #506


Tue Dec 09, 2008 11:45 pm
Profile
Professor

Joined: Fri Sep 19, 2008 1:22 am
Posts: 200
Post Re: motor encoder help?????
Use the "Reverse" checkbox in the Motor and Sensor Setup wizard to invert one of the two motors so that positive is forward for both motors.

You should not turn on PID control if you do not have the shaft encoders installed. Otherwise, you get the behavior you are describing.

_________________
Jeff McBride
Benson Robotics Club


Wed Dec 10, 2008 12:03 am
Profile
Rookie

Joined: Thu Nov 06, 2008 4:35 pm
Posts: 12
Post Re: motor encoder help?????
both motors are going forward but one encoder is counting negitive. if i reverse the motor then would the motors not go forward?

thank you for the reply

_________________
Palm Harbor University High School, Robotics team Pandara #506


Wed Dec 10, 2008 4:26 pm
Profile
Professor

Joined: Fri Sep 19, 2008 1:22 am
Posts: 200
Post Re: motor encoder help?????
OK. Let's see. The shafts of your motors are pointing away from each other:
=[motor] and [motor]=

Right? In order to make the robot move forward or backwards instead of spinning you either need to set the two motors to different values (one positive and one negative) or you need to set one motor to be reversed in the Motor and Sensor Setup wizard. Which of these are you doing?

You may not have any control over the positive or negative values that you get from the encoders. After all, no mater which of the above methods you pick, one motor really is going the opposite direction of the other one.

_________________
Jeff McBride
Benson Robotics Club


Wed Dec 10, 2008 6:14 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.