Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
SPARK Flex is designed to drive 12V brushed and brushless DC motors at current up to 60A continuously. It features a unique Docking Interface that ensures secure and reliable motor phase and sensor connections, reducing the chance of intermittent or poor connections affecting the commutation of the attached motor.
Power input wires are labeled as + and - with red and black wires, respectively, and consist of two 12 AWG ultra-flexible silicone-coated wires extending 45 cm from the motor controller case.
SPARK Flex is intended to operate in a 12 V DC robot system, however it is compatible with any DC power source between 4.5 V and 24 V.
Please note that the 5 V power output of the Data Port requires a 6 V minimum input voltage.
DO NOT exceed the maximum supply voltage of 30 V. Doing so will cause permanent damage to the SPARK Flex and will void the warranty.
When used in high power applications, it is recommended to use a power source that is capable of handling large surge currents, e.g. a 12V lead-acid battery. If the supply voltage drops below 4.5 V the SPARK Flex will brown out, which can result in unexpected behavior. It is also highly recommended to add a fuse or circuit breaker in between your SPARK Flex and its power source to prevent exceeding the maximum current rating.
DO NOT exceed the maximum current ratings:
60A for 3 minutes
100A for 2 seconds
Doing so will cause permanent damage to the SPARK Flex and will void the warranty.
SPARK Flex is specifically designed to dock with the NEO Vortex Brushless Motor. Docking eliminates the extra connections between the motor and motor controller that are prone to fail due to assembly issues and rough environments.
When docked into a SPARK Flex Dock (coming soon), the motor controller can also drive virtually any 12 V brushed DC motor and the existing NEO & NEO 550 brushless motors.
Instruction on how to dock a SPARK Flex can be found within the documentation of the applicable device:
SPARK Flex Dock Instructions - Coming Soon
Be sure to fully install the Docking Screws when docking the SPARK Flex. These screws ensure a robust and secure electrical connection. Operating the SPARK Flex and its attached motor or dock without these screws can cause unintended behavior and damage to the system.
Always dock and undock the SPARK Flex with both main power and USB power disconnected.
The SPARK Flex can be controlled by three different interfaces: servo-style PWM, Controller Area Network (CAN), and USB. The following sections describe the physical connections to these interfaces. For details on the operation and protocols of the PWM, CAN, or USB interfaces, please see .
CAN and PWM control connections share a set of four integrated 26 AWG twisted wires extending 45 cm from the case of the motor controller. Each wire is color coded according to its function:
The wires are terminated with two 1 x 3, 0.1 in pitch, rectangular connectors, both excluding the center pin. One connector is pinned and the other socketed to facilitate daisy-chaining between multiple CAN devices on the bus when using the CAN interface.
Each matching wire pair is physically connected to its functional counterpart within the device. Even if the SPARK Flex loses power, the CAN bus remains unbroken, leaving downstream devices unaffected.
Pay close attention when daisy-chaining devices, and make sure that the colors match from connector-to-connecter along the entire CAN bus. Mismatched connections can cause difficult-to-diagnose communications issues along the entire bus.
When using the PWM interface, only one of the two connectors should be used. In most systems this will be the socketed connector. Therefore, it is best practice to secure the unused wires and protect the exposed pins by covering them with electrical tape.
The USB-C Port is located above the CAN/PWM wires of the SPARK Flex. It supports USB 2.0 and can provide 5 V power for the SPARK Flex's internal microcontroller.
While you can configure the SPARK Flex under USB-only power, you will not be able to spin a motor unless main power is also connected.
More information about what can be configured and operated through the USB port can be found in the USB Interface section.
The mounting face of the SPARK Flex features six #10-32 threaded mounting holes on a 2 in bolt circle. Each hole has an absolute maximum depth of 0.25 in.
DO NOT exceed the maximum mounting screw depth of 0.25 in when mounting the SPARK Flex. Doing so will result in permanent damage to the SPARK Flex and will void the warranty.
Depth gauges are laser-etched into each side of the SPARK Flex body to make it easy to check that the chosen screw length will not violate the maximum depth.
Simply check the screw length against the intended stack-up of structure and motor controller, and verify that it does not violate the maximum depth.
The mode button can be used to activate basic operating modes within the SPARK Flex. For information on those modes, please see the section.
The Mode Button is specifically designed to be difficult to press inadvertently. Therefore, please follow the steps below to press the mode button successfully.
Using a small and blunt tool, like a straightened paper clip, gently press the Mode Button. You should feel and hear a soft click. If you are in a noisy environment, you may only be able to feel the click through the tool.
DO NOT use a sharp tool to press the Mode Button.
Safety pins, thumbtacks, pinbacks buttons, and other sharp tools will cause damage to the Mode Button's material.
If you do not feel the click, ensure the tool is aligned with the button.
DO NOT press with excessive force.
You should feel the click of the button with relatively gentle pressure. Pressing with excessive force can permanently damage the button.
Some early batches of SPARK Flex Motor Controllers have variances in the alignment of the Mode Button and the case hole. Misaligned buttons can still be pressed and the alignment does not affect the functionality of the SPARK Flex Motor Controller as a whole.
If your button is misaligned, please pay close attention and avoid the gap between the button and the printed circuit board (PCB):
Again, DO NOT use a sharp tool to press a misaligned Mode Button. It can easily be inserted into the indicated gap above, and permanently damage the button. Generally, a sharp tool should never be used to press the Mode Button.
Please reach out to us at support@revrobotics.com if you are still having difficulty pressing your Mode Button after following this guide.
Wire Color | CAN Function | PWM Function |
---|
When daisy-chaining or extending the connections, use the included to secure the two mating connectors together to prevent unintended disconnections.
Yellow | CAN High (CANH) | Signal |
Green | CAN Low (CANL) | Ground |
The SPARK Flex Motor Controller is a fully featured smart motor controller designed to be robust and easy to use yet fully capable of advanced motion control. The following sections describe each feature in detail.
Allows for seamless firmware updates and code uploads, facilitating quick and efficient software management through the REV Hardware Client
Allows for integration of additional sensors such as the Through Bore Encoder, analog sensors, absolute encoders, and limit switches.
Supply Input Power and Control Signals through 45cm long high-quality wires. Twisted Control wires also feature two standardized connectors to make wiring the SPARK Flex easy for PWM or CAN control.
Displays the operational status and error codes, ensuring easy troubleshooting and real-time monitoring
Precisely engineered clearance holes for docking screws provide stable and secure attachment of the SPARK Flex and NEO Vortex to your Mechanism
High-current Bullet Connectors facilitate quick and secure connections to the NEO Vortex's phases, ideal for high-performance and high-power applications
Robust Motor Interface Connector mates to the NEO Vortex's control systems to ensure efficient, secure, and reliable electrical connections and communication
The SPARK Flex features six #10-32 threaded mounting holes on a 2 in bolt circle
The SPARK Flex can be controlled by three different interfaces: servo-style PWM, Controller Area Network (CAN), and USB. The following sections describe the operation and protocols of these interfaces. For more details on the physical connections, see Control Connections.
The SPARK Flex can accept a standard servo-style PWM signal as a control for the output duty cycle. Even though the PWM port is shared with the CAN port, SPARK Flex will automatically detect the incoming signal type and respond accordingly. For details on how to connect a PWM cable to the SPARK Flex, see CAN/PWM Connections.
The SPARK Flex responds to a factory default pulse range of 1000 µs to 2000 µs. These pulses correspond to full-reverse and full-forward rotation, respectively, with 1500 µs (±5% default input deadband) as the neutral position, i.e. no rotation. The input deadband is configurable with the REV Hardware Client or the CAN interface. The table below describes how the default pulse range maps to the output behavior.
If a valid signal isn't received within a 60 ms window, the SPARK Flex will disable the motor output and either brake or coast the motor depending on the configured Idle Mode. For details on the Idle Mode, see Idle Mode - Brake/Coast Mode.
The SPARK Flex can be connected to a robot CAN network. CAN is a bi-directional communications bus that enables advanced features within the SPARK Flex.
SPARK Flex must be connected to a CAN network that has the appropriate termination resistors at both endpoints. Please see the FIRST Robotics Competition Robot Rules for the CAN bus wiring requirements.
Even though the CAN port is shared with the PWM port, SPARK Flex will automatically detect the incoming signal type and respond accordingly.
Each device on the CAN bus must be assigned a unique CAN ID number. Out of the box, SPARK Flex is assigned a device ID of 0. This ID is considered "unconfigured" and must be assigned to a unique number from 1 to 62. CAN IDs can be changed by connecting the SPARK Flex to a Windows computer and using the REV Hardware Client.
Additional information about the CAN accessible features and how to access them can be found in the SPARK Flex API Information section.
The SPARK Flex can be configured and controlled through a USB connection to a computer running the REV Hardware Client.
More information coming soon!
Located next to the SPARK Flex's power and control input wires, the Data Port allows for extra sensor input and future feature expansion. Connector details can be found below.
The keyed and locking Data Port connector ensures a secure and aligned fit when plugged into the SPARK Flex Motor Controller. Its JST-PH 6-pin connector is designed to plug directly into the REV Through Bore Encoder, connecting both the quadrature and absolute encoder outputs to the appropriate SPARK Flex Data Port pins. Additional inputs, like Limit Switch and Analog inputs, are broken out to shrouded, 1 x 3 pinned, 0.1in pitch, PWM-style connectors that provide both power and ground in addition to the input signal.
The SPARK Flex Data Port is a 0.05 in pitch, 2 x 5 pin, keyed and locking connector. Custom cables can be made with the following parts:
Connector Pin | Pin Type | Pin Function |
---|
The breaks out the default pin functions of the SPARK Flex Data Port into commonly used connectors for external sensors.
The breaks out the SPARK Flex Data Port to individual unterminated wires and is useful for connecting custom circuits or sensors without a standard connector. It features the keyed and locking Data Port connector to ensure a secure and aligned fit when plugged into the SPARK Flex Motor Controller. Each wire is uniquely color coded for easy identification.
Connector Part | Manufacturer | Part Number |
---|
1 | Digital | Reserved |
2 | Power | +5V |
3 | Analog | Analog Input |
4 | Digital | Forward Limit Switch Input |
5 | Digital | External Encoder - B Input |
6 | Digital | Absolute Encoder - Duty Cycle Input |
7 | Digital | External Encoder - A Input |
8 | Digital | Reverse Limit Switch Input |
9 | Digital | External Encoder - Index Input |
10 | Power | Ground |
Latching Housing | Samtec | ISDF-05-D-M |
Contact (28 - 30 AWG) | Samtec | CC03R-2830-01-GF CC03R-2830-01-G |
This mode is only compatible with the SPARK Flex Dock (coming soon). More information about this mode will be available once the dock is available.
When the SPARK Flex is receiving a neutral command the idle behavior of the motor can be handled in two different ways: Braking or Coasting.
When in Brake Mode, the SPARK Flex will effectively short all motor wires together. This quickly dissipates any electrical energy within the motor and brings it to a quick stop.
When in Coast Mode, the SPARK Flex will effectively disconnect all motor wires. This allows the motor to spin down at its own rate.
The Idle Mode can be configured using the Mode Button, CAN, and USB interfaces.
Follow the steps below to switch the Idle Mode between Brake and Coast with the Mode Button.
Please follow the before continuing.
Use a small straightened paper clip or other small blunt tool to press the button. Never use a sharp tool or any type of pencil, as the pencil lead can break off inside the SPARK Flex.
Connect the SPARK Flex to main power, not just USB Power.
The Status LED will indicate which Idle Mode is currently configured by blinking blue or cyan for Brake and yellow or magenta for Coast depending on the motor type.
Press and release the Mode Button
You should see the Status LED change to indicate the selected Idle Mode.
Follow the steps below to switch the Idle Mode between Brake and Coast with the USB and the REV Hardware Client application. Be sure to download and install the REV Hardware Client application before continuing.
Connect the SPARK Flex to your computer using a USB-C cable.
Open the REV Hardware Client application and verify that the application is connected to your SPARK Flex.
On the Basic tab, select the desired mode with the Idle Mode switch.
Click Update Configuration and confirm the change.
Please see the API Information for information on how to configure the SPARK Flex using the CAN interface.
In the rare case where a firmware update has been interrupted or corrupted, it may be necessary to boot the SPARK Flex into Recovery Mode. This can be done by following the steps below. Have a computer running the REV Hardware Client and a USB cable ready in order to reload the device firmware once the device is in Recovery Mode.
Use a small straightened paper clip or other small blunt tool to press the button. Never use a sharp tool or any type of pencil, as the pencil lead can break off inside the SPARK Flex.
Start with all power disconnected from the SPARK Flex.
Press and hold the Mode Button.
While still holding the Mode Button, connect power by either turning on main power or connecting the USB cable between the SPARK Flex and the computer.
Once powered, you may release the Mode Button. The LED should stay dark. The SPARK Flex is now in Recovery Mode.
If the firmware is not booting properly, it may not be easy to know if the device has entered Recovery Mode since the LED will be dark in both cases. To confirm that the SPARK Flex is in Recovery Mode:
Connect the USB cable between the SPARK Flex and computer if not already connected.
In the REV Hardware Client, the SPARK Flex should show up as a Recovery Mode Device when scanning for devices.
If the device doesn't show up, please repeat the process, ensuring that the power and button holding sequence is followed exactly. If the device still doesn't show up, please contact REV Support.
Please see the for information on how to identify the Idle Behavior configuration by the color of the Status LED!
Please follow the before continuing.