# Hardware

<figure><img src="/files/TudG3XUjqnO2sgH3R0Aq" alt=""><figcaption></figcaption></figure>

## **Overview**

The Picoclick-C3 is - as the name suggests - based on the ESP32-C3 which is a 32-bit RISC-V processor running at up to 160MHz.

#### Features

* Pico size: 18x22mm
* MCU: ESP32-C3FH4
* Single button interface
* Two APA102-2020 RGB LEDs
* Embedded battery protection
* Embedded battery charging with status LED
* Optimized battery monitoring
* Extension port with two GPIOs and power pins
* Ultra low power device
* Includes an onboard chip antenna

#### Block diagram

<figure><img src="/files/C8ZromocXtevdqcZaD6J" alt=""><figcaption></figcaption></figure>

### **Front side**

On the front side there are mainly three things only: The 12mm button, two APA102-2020 LEDs and the 6p FPC connector. Additionally there are two soldering jumpers.

<div><figure><img src="/files/gvc9eTenBkSqv6BS58LU" alt=""><figcaption></figcaption></figure> <figure><img src="/files/RPc2LHyzTwe1Phz5uXAI" alt=""><figcaption></figcaption></figure></div>

### **Back side**

The back side is the main component side. It holds the USB Type-C jack, the ESP32-C3, the battery charging as well as the battery protection circuit, a voltage regulator, the antenna with its matching network and the power latching circuit. And the best: A golden logo :)

<div><figure><img src="/files/VAVL1SLjevQ6YkQ8FH1i" alt=""><figcaption></figcaption></figure> <figure><img src="/files/EJaGrkM8Bgl2vQUYNFH1" alt=""><figcaption></figcaption></figure></div>

### Technical drawing

<figure><img src="/files/HjA9cmtShTRyveMnWbbt" alt=""><figcaption><p>Measurements in mm, grid is 0.5mm</p></figcaption></figure>

* PCB: 18mm x 20mm
* Thickness: 1mm
* Corner radius: 2mm

## Main components

<table><thead><tr><th width="190">Function</th><th width="233">Component</th><th>Note</th></tr></thead><tbody><tr><td>MCU</td><td>ESP32-C3FH4</td><td>Main processor, 4MB flash</td></tr><tr><td>Battery protection</td><td>XB6042I2SV</td><td></td></tr><tr><td>Battery charging</td><td>WS4518D</td><td>Charging current set to 20mA</td></tr><tr><td>Voltage regulator</td><td>MIC5504</td><td>3.3V LDO</td></tr><tr><td>LEDs</td><td>APA102-2020-256-8</td><td></td></tr><tr><td>RTC crystal</td><td>CM9V-T1A</td><td>32.768kHz</td></tr><tr><td>Main crystal</td><td>S2140000091070JY</td><td>40MHz, 2016</td></tr><tr><td>Antenna</td><td>SLDA31-3R400G-S1TF</td><td>2.4GHz</td></tr><tr><td>FPC connector</td><td>FH34SRJ-6S-0.5SH(50)</td><td></td></tr></tbody></table>

## **Pinout/Connection**

<table><thead><tr><th width="230">Function</th><th width="160">GPIO ESP32-C3</th><th>Note</th></tr></thead><tbody><tr><td>APA102 SDI (LED)</td><td>GPIO7</td><td>Output</td></tr><tr><td>APA102 CLK (LED)</td><td>GPIO6</td><td>Output</td></tr><tr><td>Button state</td><td>GPIO5</td><td>Input</td></tr><tr><td>Battery voltage</td><td>GPIO4</td><td>Input, includes an 1:1 voltage divider</td></tr><tr><td>Battery voltage trigger</td><td>GPIO3</td><td>Output</td></tr></tbody></table>

#### Battery connections

<figure><img src="/files/OXpxnq2qmF9oGzRx37UD" alt=""><figcaption></figcaption></figure>

## Current consumption

All the current consumptions below are measured with my [PowerProfilerKit 2](https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2).

<table><thead><tr><th width="293">Mode</th><th width="100">Average current</th><th>Note</th></tr></thead><tbody><tr><td>WiFi activated </td><td>74mA</td><td>Peaks can be up to 200mA</td></tr><tr><td>WiFi disabled and LEDs fading</td><td>27mA</td><td></td></tr><tr><td>Picoclick deactivated</td><td>2µA</td><td></td></tr></tbody></table>

The current consumption in active mode can be reduce with the following steps:

* Turn WiFi only on when really needed.
* Reduce CPU frequency. With the embedded clock (40MHz) you can set the frequency to 10, 20 and 40MHz. 10MHz is great for just LED applications.
* Reduce APA102 LED brightness.

## Jumper

There are two soldering jumpers with two different functions. The BOOT and the USB jumper.

<figure><img src="/files/NeE0YPIoJxQ25Ta4AZCH" alt=""><figcaption></figcaption></figure>

#### Boot jumper

The left jumper connects the boot strapping pin of the MCU to GND and therefore forces to enter the boot mode of the ESP32. More infos are described [here](/picoclick-c3/software/important-note.md).

#### USB jumper

The right jumper connects the USB voltage to the battery voltage, so that the Picoclick can be powered directly over the USB port without the need of connecting another power supply. The battery charger is not in use then (of course).

*<mark style="color:red;">**NOTE!:**</mark>* Do not connect a battery to the Picoclick if this jumper is closed, else you would destroy  the Picoclick, your battery or both of them.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://makermoekoe.gitbook.io/picoclick-c3/hardware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
