# Hardware Configuration

This page contains only the brief summary of the OpenLED hardware.

Latest and greatest complete hardware schematic is available at [GitHub repository](https://github.com/SasaKaranovic/OpenLED/blob/master/Hardware/Schematic.PDF).

## Hardware components

| Part            | Part Number |
| --------------- | ----------- |
| Microcontroller | ESP32-C3    |

## Hardware Connections

| Block         | MCU Pin | Comment                                                                    |
| ------------- | ------- | -------------------------------------------------------------------------- |
| 12V CH1       | GPIO0   | Inverted (0→ON / 1→OFF)                                                    |
| 12V CH2       | GPIO1   | Inverted (0→ON / 1→OFF)                                                    |
| 12V CH3       | GPIO3   | Inverted (0→ON / 1→OFF)                                                    |
| WS281x DOUT   | GPIO6   | Data out for addressable LED strips                                        |
| RF UART RX    | U0TXD   | RX and TX should be crossed / (RX on the sensor goes to TX on the OpenLED) |
| RF UART TX    | U0RXD   | RX and TX should be crossed / (RX on the sensor goes to TX on the OpenLED) |
| PIR Interrupt | GPIO4   | Could also be used as GPIO                                                 |
| PIR Aux       | GPIO5   | Could also be used as GPIO                                                 |

## Powering the board

![OpenLED Power Diagram](https://docs.sasakaranovic.com/openled/openled_an_pwr.png)

You can power OpenLED board by providing 5V, 12V or both.

In order to power 12V LEDs, you will have to provide 12V.

To power 5V LED strip, you will have to provide 5V OR if you intend to draw less than ~1A, you can provide 12V and use the on-board regulator.

It's recommended to provide both 5V and 12V unless you intend to use a short/low-power 5V LED strip.
