View unanswered posts | View active topics It is currently Fri Oct 30, 2020 7:28 pm

 Page 1 of 1 [ 7 posts ]
 Print view Previous topic | Next topic
Vex FlyWheel Syncronization
Author Message
Rookie

Joined: Thu Nov 29, 2012 9:32 pm
Posts: 8
Vex FlyWheel Syncronization
For this years vex game nothing but net, my team is using a flywheel mechanism to launch the balls. That is where we have two wheels spinning outwards to launch a ball. Much like a baseball pitching machine.
One problem that i foresee us having is one motor spinning faster than the other and throwing off our shot. We have motors with the built in encoders on the flywheel motors to help with this problem, but I'm not really sure of the best way to solve this problem in code. I was thinking of just having it count the rotations of each motor and then lower the power of one by 10 or so if the rotation count is greater but that wouldn't be a good solution because there is no way to know for sure if that adjustment would be suitable.
How could i have the code using the encoders to maybe calculate the speed of the motors and adjust the power accordingly or just continuously raise or lower the power until the two motors are equal. Does anyone know the best way to tackle this problem? Any feedback will be much appreciated.

Thanks
Robert Brown
7361 Team Captain

Thu Oct 08, 2015 12:08 am
Expert

Joined: Thu Dec 01, 2011 12:07 am
Posts: 151
Re: Vex FlyWheel Syncronization
Consider a mechanical connection between the rollers such as gears, shaft, or chain.

Thu Oct 08, 2015 11:34 am
Rookie

Joined: Thu Nov 29, 2012 9:32 pm
Posts: 8
Re: Vex FlyWheel Syncronization
 CARBOT wrote:Consider a mechanical connection between the rollers such as gears, shaft, or chain.

We were thinking about doing that. It would just involve us changing around a lot of stuff and we just wanted to see if there was an easier solution before we started rebuilding the launcher.

Thu Oct 08, 2015 12:53 pm
Rookie

Joined: Sat Nov 29, 2014 4:51 am
Posts: 11
Re: Vex FlyWheel Syncronization
Quick Solution:
You could try PID control for a more precise speed. Have a look at (http://www.education.rec.ri.cmu.edu/pre ... hp_PID.pdf) for more info.

Quick Note:
Just a quick question what speed is your flywheel going and what type of encoder are you using. This is important since the Optical Shaft Encoder can only measure 1,133 rpm. While integrated encoded motor will have no problem since they measure the motor speed not the flywheel speed (i assume you have geared your flyweel).

Kind regards,
Asim Poptani
King Henry VIII

Thu Oct 08, 2015 2:04 pm
Rookie

Joined: Tue Nov 03, 2015 8:22 pm
Posts: 3
Re: Vex FlyWheel Syncronization
The link you provided for PID control goes to the main webpage of carnegie mellon. I need help with PID control as well so yeah.

Thu Nov 19, 2015 9:14 pm
Rookie

Joined: Sat Nov 29, 2014 4:51 am
Posts: 11
Re: Vex FlyWheel Syncronization

Sat Nov 21, 2015 2:26 am
Rookie

Joined: Thu Nov 29, 2012 9:32 pm
Posts: 8
Re: Vex FlyWheel Syncronization

Lets say I have 2 motors on each wheel and both motors are spinning one axle using small gears. Would I need to have an integrated encoder on both motors and will the PID still work properly?

Fri Dec 11, 2015 10:56 am
Display posts from previous:  Sort by
 Page 1 of 1 [ 7 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

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

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning