--- title: "NightLight" date: 2025-01-27 draft: false description: "a description" tags: ["nightlight"] --- # Nightlight Module The system supports a dedicated light output module, which can be used to power a small LED strip for night lighting or growth support. The module is based on the **AP63200** synchronous buck converter. It provides an adjustable output voltage, allowing it to drive various types of LED strips or other low-voltage DC loads. ### Configuration The output voltage is adjustable via a potentiometer (**RV1**). This allows you to set the brightness or the correct operating voltage for your LED strip. #### Formula The reference voltage for the AP63200 is 0.8V. The output voltage is determined by the feedback divider: - $V_{OUT} = 0.8 \times (1 + \frac{R_{high}}{R5})$ - $R_{high} = R1 + RV1 + R3$ Default values: - $R1 = 10k\Omega$ - $R3 = 1k\Omega$ - $R5 = 5k\Omega$ - $RV1 = 0\Omega$ to $50k\Omega$ (Potentiometer) With these values, the output voltage is adjustable from approximately **1.76V** to **9.76V**. ### Status LED - **I1 (White):** Indicates that the light output is enabled. # Setup {{< alert >}} Ensure the voltage is correctly set using **RV1** before connecting a load for the first time! High voltages can damage LED strips. {{< /alert >}} 1. **Power On:** Enable the light output through the software interface. 2. **Measure Voltage:** Use a multimeter to measure the voltage at the output connector (**LIGHT1**). 3. **Adjust RV1:** Turn the potentiometer until you reach the desired voltage or brightness. 4. **Connect Load:** Once the voltage is set correctly, you can connect your LED strip.