# Integration & Control Logic

PWM input controls the strobe’s behavior in real time.

| Mode   | PWM Sent | Drone State                         | LED Pattern                          | Color               |
| ------ | -------- | ----------------------------------- | ------------------------------------ | ------------------- |
| Mode 1 | 1200 µs  | Disarmed / Idle (default)           | Solid ON                             | Hall-selected color |
| Mode 2 | 1000 µs  | Armed                               | Blink once (200 ms), pause 1.5 s     | Hall-selected color |
| Mode 3 | 1800 µs  | Battery voltage low or failsafe     | Blink twice (2× 200 ms), pause 1.5 s | Hall-selected color |
| Mode 4 | 1900 µs  | RC override active (manual trigger) | Rapid red flicker (alert mode)       | Forced red          |

#### Color Switching with Hall Sensor

* Pass a magnet over the Hall sensor to cycle LED color:
  * Green → Red → Blue → White → Green....

#### Use Cases

* Night flying / Visual ID
* Failsafe Indication
* Custom payload activation
* Hobbyist builds using RC gear only

