> For the complete documentation index, see [llms.txt](https://wiki.openelab.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.openelab.io/aiot/m5stack/m5stack-flashlight-unit.md).

# M5Stack Flashlight Unit

### M5Stack Flashlight Unit

***

### Product Link

{% embed url="<https://openelab.io/products/m5stack-flashlight-unit>" %}

### Introduction

FlashLight UNIT is an I/O Unit with built-in flash, including AW3641 driver and a white LED, with a color temperature of 5000-5700K. There is a mode selection switch on the board, which can set the flash mode and the constant lighting mode. The communication interface is GPIO. This Unit can be used as a flash or lighting applications.

<figure><img src="https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2FEQCnOYLTUTd7JNZY8USF%2Fimage.png?alt=media&amp;token=ddffee1e-cc76-4715-a5b6-811dc4928902" alt=""><figcaption></figcaption></figure>

### Features

* PWM Brightness Adjustment Method
* Over-Temperature Protection
* Over-Voltage and Short-Circuit Protection

### Specifications

| Resources                              | Parameters          |
| -------------------------------------- | ------------------- |
| Driver chip                            | AW3641EDNR          |
| Adjustment Mode                        | PWM                 |
| AW3641EDNR Operation Temperature Range | -40℃ to +85℃        |
| Unit Operation Temperature             | 0℃ to +40℃          |
| Color Temperature                      | 6000K\~6500K（Kevin） |
| Product Size                           | 32mm × 24mm × 8mm   |
| Package Size                           | 67mm × 53mm × 12mm  |
| Product Weight                         | 4.7g                |
| Package Weight                         | 9.8g                |

### Pinout

<figure><img src="https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2FrwRj9tKYyUjhwYNLZScG%2Fimage.png?alt=media&amp;token=950fd2b0-1bd1-43b4-a167-9e44cdef73fd" alt=""><figcaption></figcaption></figure>

### Dimensions

<figure><img src="https://1292444914-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtgOfPnscWebs1eh82EKq%2Fuploads%2FKJukSQjooQjKbOGEUBxk%2Fimage.png?alt=media&amp;token=1b50d2e6-c7f6-4dcf-96d6-d46135a67858" alt=""><figcaption></figcaption></figure>

### How to Use

* **Connect to M5Stack**: Plug the Flashlight Unit into an M5Stack development board using the appropriate port.
* **Power Up**: Supply power to the M5Stack board (3.3V - 5V).
* **Control**: Use GPIO pins to control the flashlight. Send a high signal to the CTRL pin to turn on the flashlight and adjust the brightness as needed.

### FAQ

<details>

<summary><strong>What is the maximum brightness of the flashlight?</strong></summary>

The maximum brightness depends on the input voltage and the control signal. It can reach up to 1W of power consumption.

</details>

<details>

<summary><strong>Can I use this flashlight with other microcontroller boards?</strong></summary>

Yes, you can use it with other microcontroller boards as long as they support 3.3V - 5V power supply and GPIO control.

</details>

<details>

<summary><strong>Is the flashlight waterproof?</strong></summary>

No, the Flashlight Unit is not waterproof. It should be used in dry environments.

</details>

<details>

<summary><strong>How do I adjust the brightness?</strong></summary>

Adjust the brightness by varying the PWM signal sent to the CTRL pin from the microcontroller.

</details>

<details>

<summary><strong>What is the lifespan of the LED?</strong></summary>

The LED has an estimated lifespan of around 50,000 hours under normal operating conditions.

</details>
