update: improve documentation and restructure code for modular hardware integration, add CAN communication to HAL, and update KiCad layouts
This commit is contained in:
@@ -5,11 +5,36 @@ draft: false
|
||||
description: "a description"
|
||||
tags: ["nightlight"]
|
||||
---
|
||||
# Nightlight
|
||||
The board has a adjustable light output, which can be used to power a small led strip.
|
||||
In the configuration, the working hours can be set, as well as if the light is allowed to be turned on, even if the solar panel still supplies power.
|
||||
The supply should theoretically be able to supply up to 2A with a voltage lower than the battery.
|
||||
# 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, before connecting a load the first time!
|
||||
{{< /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.
|
||||
Reference in New Issue
Block a user