Go Back   VEX Forum > Official VEX Technical Support > UNOFFICIAL Answers - Ask the Community!

UNOFFICIAL Answers - Ask the Community! Community Members can provide UNOFFICIAL answers to the questions from the "locked" forum above.

Reply
 
Thread Tools
  #1  
Old 04-11-2012, 09:01 PM
grammatically_uncorrect's Avatar
grammatically_uncorrect grammatically_uncorrect is offline
Senior Member
VEX # 4405a
 
Join Date: Mar 2012
Location: Omaha, NE
Posts: 135
Images: 1
more fun with encoders...

Hello again everybody...

My robot's finished and after some minor problems with software, I'm almost done programming.

I have two encoders placed on the back wheels of my robot so I can drive a certain distance. I'm using 4 inch omni-directional wheels and 4 high strength motors (2 on each side). The programming language is easy c.

The question is this:

Is there a general range of values for encoders that equals an approximate distance with that wheel size?

I want to eliminate trial and error as much as possible. If you don't know, or if no such general guidelines exist, that's fine. I have no problem with trial and error. It's just annoying.
Reply With Quote
  #2  
Old 04-11-2012, 09:19 PM
Disciple855's Avatar
Disciple855 Disciple855 is offline
Senior Member
VEX # CSM
 
Join Date: Apr 2011
Location: Maryland
Posts: 233
Images: 1
Re: more fun with encoders...

If circumference equals pi times diameter, and the diameter of the wheels is 4", and you travel the circumference of your wheel in one rotation, then however many ticks equals a full rotation (90? 180? I’m not a programmer…) will mean you traveled pi times 4 inches forward, which is 12.56637… inches. From there you should be able to reduce that into a managable ratio.

I... think thats right.
__________________
Even now,” declares the Lord,
“Return to me with all your heart,
with fasting and weeping and mourning.”
Rend your heart and not your garments.
Return to the Lord your God,
for he is gracious and compassionate,
slow to anger and abounding in love,
and he relents from sending calamity.
Joel 2:12-13
Reply With Quote
  #3  
Old 04-11-2012, 09:45 PM
devinc devinc is offline
Senior Member
VEX # 569C
 
Join Date: May 2010
Location: Murrieta,CA
Posts: 536
Images: 1
Re: more fun with encoders...

Quote:
Originally Posted by Disciple855 View Post
If circumference equals pi times diameter, and the diameter of the wheels is 4", and you travel the circumference of your wheel in one rotation, then however many ticks equals a full rotation (90? 180? I’m not a programmer…) will mean you traveled pi times 4 inches forward, which is 12.56637… inches. From there you should be able to reduce that into a managable ratio.

I... think thats right.
You are on the right track. A 4" omni wheel will travel 12.5666" per rotation and there are 360 "ticks" per revolution so to go 12.56" you will set the encoders to 360. Hopes that helps
__________________
569A, B, & C Mentor
Reply With Quote
  #4  
Old 04-12-2012, 12:17 AM
Dpbailey's Avatar
Dpbailey Dpbailey is offline
Senior Member
VEX # 569C
 
Join Date: Aug 2011
Location: Murrieta, California
Posts: 304
Re: more fun with encoders...

First you need to figure out if they are regular encoders or quadrature encoders. If they are quadrature encoders they will have 2 wires and a full revolution would be 360 ticks, but if they are regular encoders they will only have one wire and a full rotation will only have 90 ticks. This is important to keep in mind when you first start programming shaft
encoders.
__________________
Team 569C YouTube Channel Facebook Page
CSUN Los Angeles Regional - Tournament Champions (569C, 599D, 599A) and Think Award
California High Desert League - TBA (9-1 with 20 more matches to be played on later dates)
Reply With Quote
  #5  
Old 04-12-2012, 07:18 PM
grammatically_uncorrect's Avatar
grammatically_uncorrect grammatically_uncorrect is offline
Senior Member
VEX # 4405a
 
Join Date: Mar 2012
Location: Omaha, NE
Posts: 135
Images: 1
Re: more fun with encoders...

Thanks for the help.

I have quadrature encoders on my bot, and thanks to everybody who helped me out, they're fully programmed for 5 different autonomous modes. I still had to deal with some trial and error, but much less than I originally thought. thanks again.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:00 PM.


VEX and VEX Robotics are trademarks or service marks of Innovation First International, Inc.
Copyright © 2002-2013. All Rights Reserved. VEX Robotics, Inc. is a subsidiary of Innovation First International, Inc.
All other product names/marks of others are the property of their respective owners.