The Digital LED Indicator (REV-31-2010) is a LED signal module that is digitally controlled (active low) and offers three colors: red, green, and amber. The Digital LED Indicator is designed to directly interface with the DIO ports of the Control Hub and Expansion Hub.When using the Digital LED Indicator outside of the REV Hub environment, make sure to check that your device GPIO pins’ current sink rating can handle 20mA.
Part Number
Description
Qty
-
Digital LED Indicator
4
REV-31-1407
JST PH 4-Pin Sensor Cable
4
​Parameters
​Value and Units
Operating Voltage
3.3V
Current Draw (at 3.3V)
20mA - single LED40mA - both LEDs
Input Type
DIO (Active Low)
Color Modes
Red (Single LED on) Green (Single LED on) Amber (both LEDs on)
Forward Voltage
2.2V (Green)2.1V (Red)
Viewing Angle
170 degrees
Dimensions
28mm x 13.5mm
Mounting Hole Diameter
3.81mm (0.15")
n Digital Input
n+1 Digital Input
LED Mode
High
High
Off
High
Low
Green
Low
High
Red
Low
Low
Amber
The Digital LED Indicator produces light that is usable as visual feedback for a human user. Using the Digital LED Indicator to show what state the robot is in is useful for debugging autonomous and teleoperated programs. Other sensors used with the LED Indicator can let robot operators know a variety of things, from if the robot has game elements to the robot being blocked from completing an action.
Configure the green LED on port 0 as "green." Configure the red LED on port 1 as "red."
Each digital port on the Control (or Expansion) Hub is capable of acting as two separate ports, thanks to the two channels of communication. This is why the ports are marked as 0-1, 2-3, etc. The n+1 channel operates on odd-numbered ports 1-7 and the n channel operates on the even number ports 0-6. Due to the two channels of communication, the green and red LED must be configured on the ports that correspond with their respective channel of communication.
The sample code below changes the color of the Digital LED Indicator based on the state of a Touch Sensor (REV-31-1425).
More information on digital ports and the channels of of communication on the Control and Expansions Hubs can be found in the Digital Sensor documentation. More information on the communication channels that the LED Indicator uses can be found in the .