> For the complete documentation index, see [llms.txt](https://docs.swyftrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.swyftrobotics.com/electronics/swyft-ranger/led-patterns.md).

# LED Patterns

## Boot

when Ranger boots, it will display a pattern on the LED to indicate which mode it is starting in.

| LED Pattern                                              | Description                           |
| -------------------------------------------------------- | ------------------------------------- |
| Single <mark style="color:orange;">Amber</mark> Blink    | 20° FOV Mode                          |
| Double <mark style="color:orange;">Amber</mark> Blink    | 15° FOV Mode                          |
| Triple <mark style="color:orange;">Amber</mark> Blink    | 27° FOV Mode                          |
| Quadruple <mark style="color:orange;">Amber</mark> Blink | DETECT mode                           |
| Continuous <mark style="color:red;">Red</mark> Blink     | Sensor failure, contact SWYFT support |
| <mark style="color:blue;">No LED</mark>                  | Power failure, contact SWYFT support  |

## Ranging (FOV Mode)

After boot, when in any FOV mode, ranger will use the LED to display the status of the data it receives.

| LED Pattern                              | Description                                                                                                                |
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| <mark style="color:green;">Green</mark>  | Ranging data is <mark style="color:green;">**good**</mark>, the strength of the green LED represents the distance measured |
| <mark style="color:orange;">Amber</mark> | Ranging data is <mark style="color:orange;">**ok**</mark>, either noisy or weak signal                                     |
| <mark style="color:red;">Red</mark>      | Ranging data is <mark style="color:red;">**bad**</mark>, target is missing or target is highly reflective                  |

## DETECT Mode

After boot, when in DETECT mode, ranger will use the LED to display if there is an object within its configured measurement window.

| LED Pattern                              | Description                                           |
| ---------------------------------------- | ----------------------------------------------------- |
| <mark style="color:green;">Green</mark>  | Object is present in the configured window.           |
| <mark style="color:orange;">Amber</mark> | Object is present, but outside the configured window. |
| <mark style="color:red;">Red</mark>      | Ranging data is bad, or no object is detected.        |

## DETECT Mode Configuration

| LED Pattern                                                    | Description                                                                                                             |
| -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| Continuous Slow <mark style="color:orange;">Amber</mark> Blink | Ranger is preparing to take ***minimum*** distance measurement                                                          |
| Continuous Fast <mark style="color:orange;">Amber</mark> Blink | Ranger is preparing to take ***maximum*** distance measurement                                                          |
| Solid <mark style="color:orange;">Amber</mark> LED             | Ranger is currently taking the measurement                                                                              |
| Quadruple <mark style="color:green;">Green</mark> Blink        | Measurement is <mark style="color:green;">**good**</mark>, and ***has*** updated previous measurement in flash memory.  |
| Quadruple <mark style="color:red;">Red</mark> Blink            | Measurement is <mark style="color:red;">**bad**</mark>, and ***has not*** updated previous measurement in flash memory. |
