Tech Toolbox
  • Please Visit https://ftc-tech-toolbox.vercel.app/ for the new tech toolbox!!
    • Introduction
    • Choosing an IDE
    • Creating an OpMode
    • Motors and Encoders
    • Servos
    • Gamepad Controls
    • Drive Systems
    • Lynx Modules
    • Telemetry
    • Wireless Download
    • The Sleep Command
  • Please Visit the New Link
    • Tank Drive / Skid Steer (Part 1)
    • Mecanum Drive (Part 1)
    • Turrets
    • Linear Slides
    • Kicker
    • Active Intake / Sweepers
    • Flywheels / Shooters
  • Please Visit the new Link
    • Base Class (Step 1)
    • Module Classes (Step 2)
    • OpMode Classes (Step 3)
  • This domain is now depreciated and is no longer updated!
  • This domain is now depreciated and is no longer updated!
    • What is Localization?
    • General Odometry Logic
    • Tank (No Deadwheels)
    • Mecanum (No Deadwheels)
    • Deadwheel Odometry (Mecanum and Tank)
    • VSLAM
  • This domain is now depreciated and is no longer updated!
    • What is Control Theory?
    • Custom PID Loops
    • Essential Control Theory Concepts
    • Resources for Learning Advanced Control Theory
  • This domain is now depreciated and is no longer updated! Please visit this domain for the new TT!
    • Introduction
    • Mecanum Drive (Part 2)
    • Tank Drive (Part 2)
    • Introduction to Pure Pursuit
    • Pure Pursuit: Mecanum
    • Pure Pursuit: Tank
    • Advanced Pure Pursuit
    • Guided Vector Fields
    • Autonomous Movement Libraries
  • Sensors
    • IMU
    • Color Sensors
      • Advanced Sensing Code
    • Distance Sensors
    • Touch Sensor
  • Computer Vision
    • Setting up Camera/Intro to Computer Vision Tools
      • Intro to OpenCV
      • Vuforia
    • Streaming Frames
    • Color Thresholding
    • April Tags
    • Linear Regression
    • Machine Learning Toolchain
    • Object Distance Estimation
    • Object Tracking / Driving to an Object
    • Computer Vision Simulators
  • Simulators
    • Beta8397 Simulator
    • VRS
  • Cool Codebases
Powered by GitBook
On this page
  • Implementation
  • Automatically Clearing Blockages
  • Case Study
  1. Please Visit the New Link

Active Intake / Sweepers

Commonly used intake mechanism

PreviousKickerNextFlywheels / Shooters

Last updated 1 year ago

Resoruces

  • - terminology/what is a sweeper

A sweeper is a general term for a mechanism designed to pick up game elements using some component of rotational motion powered by a motor.

A sweeper is very easy to program, in most cases it is as simple as setting power to a motor. However, there you can implement certain features in your code which can make the sweeper more robust. Here are some examples:

  • Velocity control via encoders and PID

  • Monitoring the sweeper motor's voltage to automatically detect any blockages and automatically rev the sweeper to resolve the issue.

Implementation

Note that hooking an encoder up to the motor will automatically trigger the SDK's library to run, keeping your motor at a constant speed and greatly reducing the impact of battery level!

sweeperMotor.setPower(0.5)

Automatically Clearing Blockages

Sometimes your sweeper can get blocked due to various reasons. We can automatically resolve these blockages by constantly monitoring the sweeper voltage to see if it spikes beyond a certain amount. If the voltage exceeds the threshold then a blockage is detected and the sweeper rotates in the opposite direction to eliminate the blockage.

You will need to experiment with the sweeper to find the proper voltage threshold. You can find this value by blocking your sweeper on purpose and recording the voltage your sweeper goes up to through telemetry, finally, copy this telemetry value into your threshold variable.

Paste this into your opMode, replacing variables as needed:

if(sweeperMotor.getCurrent(CurrentUnit.AMPS)>currentThreshold){
    sweeperMotor.setPower(reversePower); 
}

Case Study

Take a look at how another top FTC team: TechNova makes use of their sweeper by implementing some of these techniques seen in this module.

GM0's page on active intake