logo.png

How to Code Snowfire

Tuesday, October 13, 2026

Coding a multi-mechanism robot like Snowfire for VEX IQ Level Up requires more than mapping buttons in default controller settings. In a 60-second match, holding down buttons to run an intake, position an arm, or crank back a slingshot wastes valuable driving time and risks motor burnout.
​
​This VEXcode IQ programming guide covers the exact setup for Snowfire:

  • Device Configuration & Motor Tuning: Mapping ports, reversing dual-motor groups, and configuring stopping modes (Coast vs. Hold) to protect your motors.
  • Driver Control Automation: Programming single-touch toggle intakes, timed arm positioning, and an automated shoot-and-reload cycle to shave 10–15% off your match cycle times.

Part 1: Device Setup

Before writing any custom behavior blocks, the brain needs to understand how the physical mechanisms are wired and how their motors behave under load.

Port Mapping & Initial Device Setup

Start by configuring your devices in the VEXcode IQ graphical device setup.  If your motors are plugged into different ports, that is fine (just make sure it is reflected here)

  • Drivetrain: 2-Motor Drivetrain plugged into Port 1 (Right) and Port 7 (Left). Select No Gyro for the standard driver configuration.
  • Slingshot / Catapult: Configured as a Motor Group across Ports 4 and 10.
  • Arm: Configured as a standard single motor on Port 11.
  • Intake: Single motor on Port 3.
  • Controller: Configure your preferred stick drive layout.  See image below

Crucial Tip on Motor Groups: Whenever you configure a dual-motor mechanism (like the slingshot motor group), you will almost always need to reverse one of the two motors so they do not fight each other and strip gears or stall out.

Tuning Stopping Modes and Velocities

A common mistake during initial testing is leaving default velocities at partial speed or misconfiguring motor brake modes, which causes arms to sag under gravity or shooter motors to overheat.

  • Set Velocities to 100%: Explicitly command the intake, arm, and slingshot velocities to 100%.
  • Configure Stopping Modes:
  • Arm → Brake: Prevents the arm from back-driving and sagging under its own weight when raised.
  • Intake → Hold: Keeps tension on captured game pieces.
  • Slingshot → Coast: Never set a "Swish" or ratchet catapult or slingshot mechanism to Hold. Holding high mechanical spring tension with motor resistance will overheat and burn out your motors within a couple of matches. Set it to Coast.

    If you use a choo choo or t-fling, set stopping to hold

Part 2: Automating Driver Controls

In a 60-second match, saving just 3 seconds per cycle across three placement cycles buys back 9 full seconds—nearly 15% of your total driving time.

​To build automated actions, first disconnect the arm, intake, and slingshot from the graphical controller interface in the Devices menu. If you leave them assigned to default buttons, your event code will fight the built-in controller handlers.

1. Hands-Free Intake & Reverse Ejection

Rather than requiring the driver to hold an intake button continuously while steering into objects, program the intake as a toggle:

  • Tap L Up: Start spinning the intake forward continuously. The driver can now focus 100% of their attention on steering and lining up shots.
  • Tap L Down: Stop the intake.
  • Press & Hold L Down: Run the intake in reverse to clear unexpected jams or eject game pieces, stopping immediately when the button is released.

2. Single-Tap Arm Deployment

During a competition run, the arm rarely needs to stop halfway—it needs to be either fully raised or fully stowed. By running the motor on an automated timer, the driver can trigger movement and drive away while the mechanism finishes the motion.

  • Tap F Up: Spin the arm up at full power for 1.5 seconds, then command the motor to stop (where the brake mode keeps it up).
  • Tap F Down: Spin the arm down for 1.5 seconds, then stop.

3. One-Touch Auto Shoot & Reload Cycle

Manually firing and then holding a reload button introduces wasted reaction time and operator error under match stress. Combine both phases into a single automated cycle assigned to a primary bumper (R up in this case)

  • Spin the slingshot forward to release the latch and shoot (approx. 0.5 seconds).
  • Immediately spin the mechanism in reverse to retract and latch the slingshot (approx. 3.0 seconds).
  • Stop the slingshot motor.

Final checks

Use this checklist to make sure all of your code is functioning properly.

  • Dual-Motor Catapult: Fire and reload manually once. Confirm both motors in the slingshot group (Ports 4 & 10) turn in unison. If they grind or stall against each other, invert the reverse toggle on one motor in the Devices menu.
  • Tap L Up: Rollers must pull game pieces inward continuously without holding the button. If the rollers eject outward, invert the motor direction block or toggle reverse in Devices.
  • Tap L Down: Intake must stop immediately.
  • Press and hold L Down: Intake must actively run in reverse (eject), stopping upon release.
  • Tap F Up: Arm must travel fully up. If it moves downward or strains against the slingshot, reverse the arm motor direction. If it doesn't go far enough, increase the time.
  • Tap F Down: Arm must travel completely down to rest position
  • Tap R Up: Slingshot must trigger forward to release the shot (~0.5s), immediately reverse to crank back the mechanism (~3.0s), and come to a complete stop. If the mechanism only reloads for about 0.5 seconds (instead of the expected 3), reverse the slingshot direction command.
  • Drive: Drive the robot and ensure it drives as expected

That's all! Snowfire should be ready for competition!

customer1 png

Ben Lipper

Teacher, Robot designer, and always an engineer at heart

I've been in competitive robotics since 2015.

Today I work with robotics coaches to get their teams unstuck so they can build world-class robots while the kids have a total blast doing it 

1 png

Build robots the easy way!

In this course, I show you the detailed process that I used to design and build each robot on my channel

Not ready to sign up?
​Learn more

© by Robotics Mastery