VEX Forum more fun with encoders...
 Portal Register Gallery Wiki Members Calendar Search Today's Posts Mark Forums Read Rules

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

#1
04-11-2012, 09:01 PM
 grammatically_uncorrect Senior Member VEX # 4405a Join Date: Mar 2012 Location: Omaha, NE Posts: 134 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.
#2
04-11-2012, 09:19 PM
 Disciple855 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,
with fasting and weeping and mourning.”
for he is gracious and compassionate,
slow to anger and abounding in love,
and he relents from sending calamity.
Joel 2:12-13
#3
04-11-2012, 09:45 PM
 devinc Senior Member VEX # 569C Join Date: May 2010 Location: Murrieta,CA Posts: 524 Images: 1
Re: more fun with encoders...

Quote:
 Originally Posted by Disciple855 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
#4
04-12-2012, 12:17 AM
 Dpbailey 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.
__________________
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)
#5
04-12-2012, 07:18 PM
 grammatically_uncorrect Senior Member VEX # 4405a Join Date: Mar 2012 Location: Omaha, NE Posts: 134 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.

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