LM317 variable power supply
Turn a 12 V adapter into an adjustable 1.25–10 V supply for your experiments.
Shop by category
Shop all componentsA single LiPo cell gives 3.7 V (4.2 V when full), which an ESP32 board can run from directly. This build uses a 950 mAh 1S pouch cell, a TP4056 module with protection to charge it from USB, and a DS18B20 temperature probe. The ESP32 reads the temperature, then goes into deep sleep for five minutes, so the cell lasts much longer than if the board ran all the time.
Charge LiPo cells only with a charger made for them, watch the first charges, and stop using a cell that swells or gets hot.
Tick anything you already have and the total updates.
TP4056 charger module with protection
DS18B20 waterproof temperature probe
Resistor kit, use the 4.7k value as the probe pull-up
Follow the colours: red is power, dark grey is ground, blue is a signal.
Runs from the 1S LiPo cell. Charge it through the USB socket of the TP4056 module.
lipo_temp_node.inoVerify & upload in Electrolark#include <OneWire.h>
#include <DallasTemperature.h>
const int ONE_WIRE = 4;
const uint64_t SLEEP_US = 5ULL * 60 * 1000000; // five minutes
OneWire bus(ONE_WIRE);
DallasTemperature sensors(&bus);
void setup() {
Serial.begin(115200);
sensors.begin();
sensors.requestTemperatures();
Serial.print("Temperature C: ");
Serial.println(sensors.getTempCByIndex(0));
esp_sleep_enable_timer_wakeup(SLEEP_US);
esp_deep_sleep_start(); // sleeps, then restarts setup()
}
void loop() {}
Check the polarity and that the cell is charged. A development board needs about 3.6 V or more on VIN.
The probe is not connected or the pull-up resistor is missing; check the three wires and the 4.7k resistor.
Development boards waste power in their USB chip and LED; a bare module or low-power board lasts longer.
A TP4056 module can charge and power the load at the same time, but the cell sees both; keep the load low.
Capacity divided by average current. A development board in deep sleep still draws a few milliamps, so expect days, not months.
Use a module with protection, charge on a non-flammable surface and do not leave it unattended.
6 parts: ESP32 DevKit V1 Development Board (30-Pin, WROOM-32), WLY102535 3.7V 950mAh 1S LiPo Battery, TP4056 1A Li-ion Charger Module with Protection, SENSIT TGL-40 DS18B20 Digital Waterproof Temperature Sensor Probe, 1m PVC Cable, -30 to 105°C, IP67, 650 Pcs 1W 1% Metal Film Resistor Kit, 130 Values x 5 and Dupont Jumper Wires (40 pcs). Tools: Digital Multimeter. On this page you can tick the parts you already have and add only the rest to your cart.
No. This page has the complete, tested code (lipo_temp_node.ino).
About ₹4,156 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.
How a 1S LiPo cell is charged safely with a TP4056 module; Why polarity must be checked on small LiPo plugs; Using ESP32 deep sleep to save power; Estimating battery runtime from capacity and average current.
Turn a 12 V adapter into an adjustable 1.25–10 V supply for your experiments.
Build your own USB power bank and learn how lithium charging works.
Free power for outdoor sensors: sunlight in, 5 V USB out.
Beeps when the mains goes off at night, so the fridge and the alarm clock do not quietly die.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.