The CN3065 is a small linear charger for one 4.2 V lithium-ion or LiPo cell, designed to be fed by a solar panel (or 5 V from micro-USB). Most hobby boards carry a CN3065 chip, a charge-current resistor, two JST connectors for the panel and the battery, a micro-USB socket and a red/green status LED pair. It charges the cell and nothing else: there is no 5 V or 3.3 V output, and a basic module has no battery protection. To run an Arduino or ESP32 from it you add a protected cell and a boost converter such as the MT3608.
What sets it apart from a plain USB charger is how it behaves when the sun fades. If the panel cannot supply the set current, the chip's input monitor lowers the charge current instead of letting the panel voltage collapse, so charging continues at whatever the panel can give. This guide covers the specifications, every connection, how the charge cycle works, how to set the current, how to size a panel, how to power a project from it safely, and the faults you are most likely to meet. When you are ready to build, the Arduino Uno guide and the ESP32 guide add battery monitoring and a solar sensor node.
CN3065 at a glance
CN3065 in ten seconds. Use it for a small 5 V to 6 V panel (about 1 to 3 W) charging one Li-ion/LiPo cell in a low-power outdoor sensor. Skip it for USB-only charging (a protected TP4056 is simpler), for 12 V or larger panels, or when you need real maximum-power-point tracking (look at the CN3791). Always add cell protection, and never wire your project straight across the battery terminals while it charges.
Specifications
| Parameter | Value |
|---|---|
| Input voltage | 4.4 to 6 V (absolute maximum 6.5 V) |
| Battery | One Li-ion/LiPo cell |
| Charge voltage | 4.2 V ±1 % |
| Charge current | 500 mA typical, up to 1 A |
| Charge current formula | ICH = 1800 / RISET (ohms, amps) |
| Precharge | 10 % of the set current, below about 3.0 V |
| Termination | At 10 % of the set current |
| Recharge threshold | Restarts below about 4.1 V |
| Thermal regulation | Reduces current at about 115 °C |
| Sleep current | Under 3 µA from the battery |
| Solar behaviour | Lowers the charge current when the input sags (not MPPT) |
| Status outputs | CHRG and DONE, open-drain, drive the LEDs |
| Temperature input | TEMP pin for an NTC thermistor (disabled by tying it low) |
| Typical module | About 40 × 20 mm, two JST PH2.0 connectors plus micro-USB |
Figures from the Consonance CN3065 datasheet. Modules differ: the charge-current resistor, connectors, LEDs and protection vary by seller and revision, so measure your own board rather than trusting the listing.
How the charge cycle works
The CN3065 uses the standard lithium-ion routine in four stages, shown for a typical 2,000 mAh cell charging at 500 mA:
- Precharge. If the cell is deeply discharged (below about 3.0 V) the chip first feeds it only 10 % of the set current, here about 50 mA, to wake it up gently.
- Constant current. Above 3.0 V the full set current flows and the cell voltage climbs steadily. This is where most of the energy goes in.
- Constant voltage. When the cell reaches 4.2 V the chip holds that voltage and the current tapers off as the cell fills.
- Termination. When the current falls to 10 % of the set value the chip ends the charge and the green DONE LED lights. If the cell later sags below about 4.1 V, charging restarts by itself.
Everything depends on the panel being able to deliver the current. When it cannot, stage 2 simply runs at a lower current for longer.
Pinout
| Pin | Name | Description |
|---|---|---|
| 1 | SOLAR+ | Panel positive (JST PH2.0). Open-circuit voltage must stay at or below 6 V |
| 2 | SOLAR− | Panel negative |
| 3 | BAT+ | Battery positive (JST PH2.0). Connect the cell here, not a load |
| 4 | BAT− | Battery negative and common ground |
| 5 | USB | Micro-USB 5 V input, an alternative to the panel |
Check the polarity yourself. JST PH2.0 connectors have no standard pin order between sellers, and a panel or battery lead bought separately often has red and black swapped relative to the board. Read the + and − printed beside each connector and confirm with a multimeter on the panel and the cell before plugging in. Reversing the battery on an unprotected board can destroy the chip and the cell.
Panel and USB together. Many boards put the micro-USB and the panel on the same input node. Unless the schematic shows isolation, do not plug in a panel and a USB charger at the same moment.
Setting the charge current
The resistor from the ISET pin to ground sets the fast-charge current: ICH = 1800 ÷ RISET (current in amps, resistance in ohms). Most modules ship with about 3.6 kΩ for 500 mA. To change it, replace the resistor on the board (identify it from the datasheet circuit or the schematic if the seller gives one; measure it out of circuit).
ISET resistor and charge current
| RISET | Charge current | Typical use |
|---|---|---|
| 1.8 kΩ | 1,000 mA | Large cell (2,000 mAh or more) and a strong panel; check heat first |
| 2.4 kΩ | 750 mA | Large cell with a good 3 to 5 W panel |
| 3.6 kΩ | 500 mA | The usual factory value; suits cells of 1,000 mAh and up |
| 7.2 kΩ | 250 mA | Small cells (500 to 1,000 mAh) or 1 to 2 W panels |
| 18 kΩ | 100 mA | Tiny cells and very small panels |
Match the current to the cell. The usual rule for a lithium cell is a charge rate of 0.5 C or lower (500 mA for a 1,000 mAh cell, up to 1 A for 2,000 mAh), but your cell's datasheet decides. A cheap unbranded 18650 sold as 3,000 mAh is often much smaller than it claims; when in doubt, charge more gently.
A linear charger turns the difference into heat. The chip drops the excess voltage as heat: power ≈ (VIN − VBAT) × ICH. Worked example: a 5.5 V panel charging a 3.7 V cell at 500 mA dissipates (5.5 − 3.7) × 0.5 = 0.9 W inside a chip the size of a fingernail. At 1 A that doubles, and the chip protects itself by cutting current at about 115 °C, so a hot module charges slower rather than dangerously. If your module gets too hot to touch, lower the current, add copper or a heatsink, or use a panel closer to the cell voltage.
Choosing a solar panel
Three numbers matter, and the listing wattage is the least useful of them:
- Open-circuit voltage (Voc) must stay below 6 V, in cold bright sun too, because Voc rises as the panel gets cold. A panel marked "6 V" often has a Voc near 7 V and can exceed the chip's 6.5 V absolute maximum.
- Voltage under load (Vmp) must stay above about 4.4 V so the charger keeps running. A "5 V" panel that sags to 4 V in weak light will simply stop charging.
- Current decides how fast the cell fills. A panel rated 1 W at 5.5 V supplies at most about 180 mA in full sun.
Because this is a linear charger, the current from the panel equals the current into the cell, so a 1 W panel will not give 500 mA. Plan for the real figure, as in the table. These are rough estimates for a 2,000 mAh cell filling from empty, with about 4 hours of full sun per day and no losses counted:
What a panel gives you
5.5 V, 1 W
- Current in full sun
- About 180 mA
- Time to fill a 2,000 mAh cell
- About 11 hours of full sun, so 3 days
- Comment
- Fine for a sleeping sensor node
5.5 V, 2 W
- Current in full sun
- About 360 mA
- Time to fill a 2,000 mAh cell
- About 5.5 hours of full sun, so 1 to 2 days
- Comment
- A good size for a weather station
6 V, 3 W (Voc under 6 V)
- Current in full sun
- 500 mA (the set limit)
- Time to fill a 2,000 mAh cell
- About 4 hours of full sun
- Comment
- Needs a matching 500 mA setting and good cooling
Cloudy day, any panel
- Current in full sun
- 10 to 25 % of the rating
- Time to fill a 2,000 mAh cell
- Several days
- Comment
- Size the cell for days of poor weather, not one sunny day
Tip
Measure instead of guessing. Put a multimeter in series between the panel and the module (current mode) at midday, and note the voltage across the panel at the same time. Those two readings tell you the real charge rate, and a 5-minute test beats any datasheet figure.
Warning
The CN3065 chip has no complete battery protection. A basic module does not cut off at over-discharge, over-current or a short circuit. Use a cell that has its own protection circuit (a PCM/BMS board, as in most flat LiPo packs and protected 18650s), or add a correctly rated protector. Never charge a swollen, damaged or unknown cell. The TEMP input can monitor an NTC thermistor, but on many modules it is tied to ground, which switches the function off, so do not rely on it as temperature protection unless your board actually fits the thermistor.
Where the CN3065 fits in a solar project
The module is one block in a chain, not a power supply. The cell sits between the charger and your electronics, and a boost converter lifts the cell's 3.0 to 4.2 V to the 5 V most boards expect:
Why not wire the load straight to BAT+? The charger decides when to stop by measuring the current flowing out of its BAT pin. A load drawing from that same point is counted as "battery current", so the current never tapers to the 10 % termination level while the load is running, and the charge may never finish. The cell is also cycled constantly. For a project that must run while charging, use a power-path (load-sharing) circuit instead; for a sensor node that sleeps most of the time, a small load is usually tolerable but not ideal.
Pick the regulator carefully.
- A boost converter such as the MT3608 gives 5 V from the cell, but it idles at roughly 100 to 200 µA, which can use more energy than a sleeping ESP32 does. Set its output with a meter before connecting your board: modules often ship set near their maximum.
- A 3.3 V linear regulator like the AMS1117-3.3 has a dropout of about 1.1 V, so it needs at least 4.4 V in. A Li-ion cell never gets there (4.2 V full), so it cannot hold 3.3 V from a cell. Use a low-dropout regulator instead.
- To see where the energy goes, measure the load with an INA219 current sensor, and read the ESP32 deep sleep guide for realistic budgets.
CN3065 vs the alternatives
CN3065 module
- Input
- 4.4 to 6 V
- Solar behaviour
- Eases the current when the panel sags (not MPPT)
- Protection
- None on the basic module
- Pick it when
- You have one small 5 V to 6 V panel and a protected cell
TP4056 (with DW01)
- Input
- 4.5 to 5.5 V
- Solar behaviour
- None; expects a steady 5 V
- Protection
- Over-discharge and short-circuit with DW01
- Pick it when
- USB-only charging, the simplest and cheapest option
CN3791 (MPPT)
- Input
- Wider range, 12 V-class panels
- Solar behaviour
- True maximum-power-point tracking
- Protection
- Depends on the module
- Pick it when
- A larger or higher-voltage panel, or you want the most from weak sun
Power-path modules
- Input
- 5 V
- Solar behaviour
- Varies
- Protection
- Often included
- Pick it when
- The project must run while the cell charges
Test it before you build
Do this on the bench with a multimeter before the module goes outdoors:
- 1Identify the polarity of the panel, the battery and each JST connector with a multimeter, and mark them on the board.
- 2Measure the panel's open-circuit voltage in sunlight. It must be under 6 V; if it is higher, the panel is not suitable.
- 3Connect the protected battery first, then the panel (or USB). The red LED should light while charging.
- 4Measure the charge current with the meter in series with the panel lead. Compare it with the value the ISET resistor should give.
- 5Feel the chip after 10 minutes. Warm is normal; too hot to hold means lower the current.
- 6Leave a partly charged cell on charge until the green LED lights, then check the cell reads close to 4.2 V with the charger removed.
Troubleshooting
No LED at all
- Likely cause
- Panel or USB polarity reversed, or the panel is too weak
- Fix
- Check polarity with a meter; measure the panel voltage under load (must stay above about 4.4 V)
Red LED flickers or charging keeps stopping
- Likely cause
- The panel sags below the minimum input as the current rises
- Fix
- Use a larger panel, shorten and thicken the wires, or lower the charge current with a bigger RISET
Charge is much slower than the module's rating
- Likely cause
- The panel is the limit, not the module
- Fix
- Measure the current in series; a 1 W panel cannot deliver 500 mA
The module gets very hot
- Likely cause
- A large gap between panel voltage and cell voltage at high current
- Fix
- Lower the current, add cooling, or use a panel nearer the cell voltage
Green LED never lights
- Likely cause
- A load on the battery pins keeps the current above the termination level
- Fix
- Remove the load, or use a load-sharing circuit
Cell stops at about 4.0 V
- Likely cause
- Load connected, a poor-quality cell, or a different module revision
- Fix
- Disconnect everything else and measure the voltage at the BAT pins with the charger on
Cell does not charge from a very low voltage
- Likely cause
- The cell has been over-discharged, or its protection board has tripped
- Fix
- Do not force it; replace a cell that stays below about 2.5 V
Battery gets hot, swollen or smells
- Likely cause
- Damaged or wrong cell, short circuit or wrong chemistry
- Fix
- Disconnect the source safely and stop using the cell
Works at the bench, fails outdoors
- Likely cause
- Cold raises the panel's Voc above 6 V, or shade lowers the output
- Fix
- Re-measure Voc in cold bright sun; keep the panel unshaded
Project ideas
- Solar weather station. An ESP32 that wakes every 10 minutes, posts temperature and humidity, and sleeps; a 2 W panel and a 2,000 mAh cell keep it going through cloudy spells. See the ESP32 guide.
- Garden soil-moisture logger. A moisture probe and a low-power microcontroller that reports daily.
- Solar-powered camera trap or gate sensor. Short bursts of activity, long sleeps; size the cell for several days.
- Battery-voltage telemetry. Add a voltage divider and report the cell level with the Arduino Uno sketches.
- Solar phone charger. Not recommended: the module has no 5 V output, so add a protected boost converter and expect low current.
Frequently asked questions
Is the CN3065 an MPPT charger? No. It lowers the charge current when the panel voltage sags, which keeps charging going, but it does not search for the panel's maximum-power point. For a real MPPT controller look at the CN3791.
Can I charge a LiFePO4 battery with it? No. The chip charges to 4.2 V, which is wrong for LiFePO4 (3.6 V) and would overcharge it. Use a charger made for that chemistry.
Can I charge two cells in series? No. The CN3065 is a single-cell charger. A two-cell pack needs a charger designed for 8.4 V.
What panel should I use? One with an open-circuit voltage under 6 V in the cold, a voltage under load above 4.4 V, and a current rating that fits your cell: about 1 to 3 W for a single 18650.
Can the CN3065 power my Arduino or ESP32 directly? No, it has no regulated output. Use a protected cell and a boost converter (see the power-chain diagram above), and read the Arduino and ESP32 guides for the wiring.
What happens at night? The charger stops. Its own drain from the cell is under 3 µA, so it will not flatten the battery, but your load will.
Can I use USB and the panel together? Not on most boards unless the schematic shows input isolation. Use one source at a time.
How long will the battery last? Divide the cell capacity by your average current. A 2,000 mAh cell and a node averaging 1 mA lasts about 2,000 hours (around 83 days) before losses, and the panel refills it on sunny days.
Is it safe to leave charging unattended? Lithium cells need respect. Use a protected cell, charge at a sensible rate, and keep the setup away from anything flammable.
Datasheets and references
- Consonance CN3065 datasheet (REV 1.0): the source for the electrical figures, the charge-current formula and the thermal behaviour on this page.
- MT3608 boost converter: to lift the cell voltage to 5 V.
- INA219 current sensor: to measure what your project really draws.
- ESP32 deep sleep and battery life: realistic energy budgets for solar nodes.
Ready to build? Each guide adds battery-voltage monitoring and a working sketch:
- CN3065 with Arduino Uno: battery level readout, a sun-and-battery logger for the Serial Plotter and a low-battery guard
- CN3065 with ESP32: battery monitor, a deep-sleep solar node and a web status page
Tip
Charging from USB instead of solar? The TP4056 module is the standard 1 A USB charger for a single lithium cell, with optional over-discharge protection.
Wiring & code
Board integration
The CN3065 charges a cell; it does not power anything. This guide shows how to run an Arduino Uno from a solar-charged cell through a boost converter, and how to read the battery and panel voltage so the Uno knows how much energy is left. Three sketches build up from a battery-level readout to a sun-and-battery logger and a low-battery guard. For the module itself, specifications and panel sizing, read the CN3065 overview first.
What you need
1Arduino Uno R3 (or Nano)
- Notes
- Any 5 V Arduino uses the same wiring
1CN3065 solar charger module
- Notes
- Set to a charge current that suits your cell
1Small solar panel
- Notes
- Open-circuit voltage under 6 V, about 1 to 3 W
1Protected single Li-ion/LiPo cell
- Notes
- A protected 18650 or flat LiPo pack, 4.2 V full
1MT3608 boost converter
- Notes
- Set to exactly 5.0 V with a meter before connecting the Uno
4100 kΩ resistors
- Notes
- Two voltage dividers: battery on A0, panel on A1
2100 nF capacitors
- Notes
- One from each analog pin to GND, steadies the readings
1Breadboard and jumper wires
Wiring
Cell → CN3065 BAT+/BAT−—
- Notes
- Connect the protected cell to the module's battery connector, polarity checked
Panel → CN3065 SOLAR+/SOLAR−—
- Notes
- Check polarity and Voc (below 6 V) before plugging in
Cell BAT+ → MT3608 IN+; BAT− → IN−—
- Notes
- Powers the converter from the cell
MT3608 OUT+ (5.0 V)5V
- Notes
- Into the 5V pin, not VIN. Bypasses the Uno's regulator, so set 5.0 V first
MT3608 OUT− and BAT−GND
- Notes
- All grounds joined
BAT+ → 100 kΩ → A0 → 100 kΩ → GNDA0
- Notes
- Divider halves the cell voltage (4.2 V reads as 2.1 V). Add a 100 nF capacitor from A0 to GND
SOLAR+ → 100 kΩ → A1 → 100 kΩ → GNDA1
- Notes
- Halves the panel voltage (up to 6 V reads as 3 V). Add a 100 nF capacitor from A1 to GND
Warning
Set the MT3608 output to 5.0 V with a multimeter before it is connected to the Uno. These modules often ship with the trimmer near maximum (up to roughly 28 V), which would destroy the board. Feed the 5 V into the 5V pin, never VIN, and never connect USB and the boost converter to the Uno at the same time.
How the readings work
The Uno's ADC reads 0 to 5 V, but a full cell is 4.2 V and a panel can reach 6 V, so each is divided by two with two equal resistors. The sketch multiplies the reading back by two. With the 5 V rail at exactly 5.00 V, A0 = 430 means 2.1 V at the pin, so the cell is at 4.2 V.
Two details make the readings trustworthy:
- Calibrate VREF. The ADC measures against the 5 V rail, which the boost converter holds only roughly. Measure the rail with a multimeter and enter the value as
VREF. - Add the capacitor and average. A 100 kΩ divider has high source impedance, so the 100 nF capacitor and averaging 16 samples stop the reading wandering.
The divider also draws a small current: 4.2 V ÷ 200 kΩ ≈ 21 µA, constantly. For a long-life battery node use 1 MΩ resistors (about 2 µA), at the cost of a little accuracy.
Sketch 1 - Battery level readout
Prints the cell voltage and an estimated percentage every two seconds. The percentage is an estimate from a resting-cell lookup, so it reads low under heavy load and high just after charging.
const int BAT_PIN = A0;
const float R_TOP = 100000.0; // BAT+ to A0
const float R_BOTTOM = 100000.0; // A0 to GND
const float VREF = 5.00; // measure the 5V pin with a multimeter and enter it here
// Resting-cell lookup: approximate, depends on the cell and the load
const float V_TABLE[] = {3.30, 3.50, 3.60, 3.70, 3.80, 3.90, 4.00, 4.10, 4.20};
const int P_TABLE[] = { 0, 10, 20, 35, 50, 65, 80, 90, 100};
const int N = 9;
int percentFromVolts(float v) {
if (v <= V_TABLE[0]) return 0;
if (v >= V_TABLE[N - 1]) return 100;
for (int i = 1; i < N; i++) {
if (v <= V_TABLE[i]) {
float f = (v - V_TABLE[i - 1]) / (V_TABLE[i] - V_TABLE[i - 1]);
return P_TABLE[i - 1] + f * (P_TABLE[i] - P_TABLE[i - 1]);
}
}
return 100;
}
float readBatteryVolts() {
long sum = 0;
for (int i = 0; i < 16; i++) { sum += analogRead(BAT_PIN); delay(2); }
float adc = sum / 16.0;
float vPin = adc * VREF / 1023.0;
return vPin * (R_TOP + R_BOTTOM) / R_BOTTOM;
}
void setup() {
Serial.begin(9600);
}
void loop() {
float v = readBatteryVolts();
Serial.print("Battery: ");
Serial.print(v, 2);
Serial.print(" V (about ");
Serial.print(percentFromVolts(v));
Serial.println(" %)");
delay(2000);
}Sketch 2 - Sun and battery logger
Prints the panel and battery voltages in the format the Serial Plotter understands, so you can watch a charge as it happens. Open Tools > Serial Plotter and cover or uncover the panel.
const int BAT_PIN = A0;
const int PANEL_PIN = A1;
const float VREF = 5.00; // measure the 5V pin with a multimeter
float readDivided(int pin) {
long sum = 0;
for (int i = 0; i < 16; i++) { sum += analogRead(pin); delay(2); }
return (sum / 16.0) * VREF / 1023.0 * 2.0; // both dividers are 1:2
}
void setup() {
Serial.begin(9600);
}
void loop() {
float bat = readDivided(BAT_PIN);
float panel = readDivided(PANEL_PIN);
Serial.print("Panel:");
Serial.print(panel, 2);
Serial.print(",Battery:");
Serial.println(bat, 2);
delay(1000);
}Reading the graph. In full sun the panel line sits well above the battery line (5 V or more against 3.7 to 4.2 V) and the battery line creeps upward as it charges. In shade the panel line drops towards the battery voltage and the battery stops rising. At night the panel reads near zero. If the panel line collapses below about 4.4 V whenever the charge current rises, the panel is too weak for the set current.
Sketch 3 - Low-battery guard
Flashes the onboard LED when the cell drops low, with hysteresis so it does not flicker around the threshold. This is a warning, not protection: a protected cell is still required.
const int BAT_PIN = A0;
const int LED_PIN = 13;
const float VREF = 5.00;
const float LOW_ON = 3.50; // warn below this
const float LOW_OFF = 3.70; // clear above this
bool low = false;
float readBatteryVolts() {
long sum = 0;
for (int i = 0; i < 16; i++) { sum += analogRead(BAT_PIN); delay(2); }
return (sum / 16.0) * VREF / 1023.0 * 2.0;
}
void setup() {
pinMode(LED_PIN, OUTPUT);
Serial.begin(9600);
}
void loop() {
float v = readBatteryVolts();
if (!low && v < LOW_ON) low = true;
if (low && v > LOW_OFF) low = false;
if (low) {
digitalWrite(LED_PIN, HIGH); delay(100);
digitalWrite(LED_PIN, LOW); delay(100);
Serial.println("Battery LOW: shut loads down");
} else {
digitalWrite(LED_PIN, LOW);
Serial.print("Battery OK: ");
Serial.println(v, 2);
delay(1000);
}
}Uno power notes
- An Uno draws roughly 45 mA when running, so a 2,000 mAh cell lasts about two days without sun, before converter losses. For longer runs use the Uno's sleep modes or move to a low-power board.
- The 5V pin feeds the board directly. There is no polyfuse or reverse-polarity protection on that path, so double-check the polarity at the MT3608 output.
- If the Uno resets when a motor or relay starts, the boost converter or cell cannot supply the surge. Add a 470 µF capacitor across the 5 V rail.
- See the Arduino Uno pinout guide for analog pin numbers and limits.
Uno-specific problems
Battery reads half the real voltage, or double
- Likely cause
- Divider ratio does not match the sketch
- Fix
- Check both resistors are 100 kΩ, and that the sketch multiplies by 2
Reading jumps around
- Likely cause
- High-impedance divider without a capacitor
- Fix
- Add 100 nF from the analog pin to GND; keep the averaging
Reading is a few percent off
- Likely cause
- 5V rail is not exactly 5.00 V
- Fix
- Measure the 5V pin and set VREF
Uno does not power up
- Likely cause
- MT3608 not set to 5 V, or polarity reversed
- Fix
- Check the converter output with a meter before connecting
Uno resets under load
- Likely cause
- Boost converter or cell cannot supply the surge
- Fix
- Add a 470 µF capacitor; check the cell and wiring
Percentage seems wrong under load
- Likely cause
- Voltage sags while the Uno is running
- Fix
- Treat the percentage as an estimate; log voltage for a fuller picture
Arduino Uno FAQ
Why not connect the module straight to the Uno? The CN3065 has no regulated output. It charges a cell; the cell voltage (3.0 to 4.2 V) is below what the Uno needs, so a boost converter brings it to 5 V.
Can I use the VIN pin? No. VIN expects 7 to 12 V and feeds the Uno's own regulator. Feed regulated 5 V into the 5V pin.
Can I measure the panel voltage safely? Yes, with the divider shown. Keep the panel under 6 V and never connect it straight to an analog pin.
Does this work with a Nano? Yes. The wiring and code are the same, using the Nano's A0 and A1.
Next: the CN3065 overview covers panel sizing and the charge cycle. For a node that sleeps and reports over Wi-Fi, see the ESP32 guide.
