18650 Battery Holder


Pictured with an 18650 cell in the holder.
Power · SKU TP-P01
Power TinkerPie from a common 18650 Li-ion cell – with the right polarity, always.
₹299
Works with TinkerPie V1 · same JST-PH cables as the board · Delivery across India: ₹100, 3–7 days · 7-day replacement for damaged or defective kits
About this kit
The 18650 Battery Holder powers TinkerPie from one common 18650 Li-ion cell. Its output plugs into the TinkerPie BATTERY socket with the right polarity, a red REVERSED light warns if the cell is put in the wrong way, and a 3 A self-resetting fuse protects the circuit. It works with the board's built-in charger and protection.
Features
- Holds one 18650 Li-ion cell
- Output matches the TinkerPie BATTERY socket (pin 1 = +)
- Red REVERSED light if the cell is put in the wrong way
- 3 A self-resetting fuse
- Works with the board's built-in charger and protection
Specifications
| Size | 104 x 32 mm |
|---|---|
| Cell | 1 x 18650, 3.7 V |
| Output | JST-PH 2-pin |
| Protection | PTC fuse + reverse-cell indicator |
How to use it with TinkerPie
- Put one 18650 Li-ion cell into the holder: + to +. If the red REVERSED light comes on, turn the cell round.
- Plug the holder’s cable into the TinkerPie BATTERY socket.
- Charge it by plugging TinkerPie into USB-C. Switch the board on with its power switch.
Libraries: TinkerPie and TinkerPieBricks (Arduino IDE: Sketch → Include Library → Add .ZIP Library). Full guide: getting started with TinkerPie Bricks.
Quick start
Upload this, open the Serial Monitor at 115200 baud and watch the TinkerPie matrix.
Quick-start sketch (Arduino C++)
// 18650 Battery Holder (TP-P01): quick start
// Reads the brick and shows the value on the TinkerPie matrix and in the Serial Monitor (115200 baud).
#include <TinkerPie.h>
#include <TinkerPieBricks.h>
using namespace tinkerpie;
void setup() {
Serial.begin(115200);
tinkerpie::begin(); // also starts the SENSOR ports (I2C bus Wire1)
}
void loop() {
Serial.printf("battery %.2f V %.0f %% USB %d charging %d\n", input::batteryVoltage(), input::batteryLevel(), input::usbPowered(), input::isCharging());
led::plotBarGraph(input::batteryLevel(), 100, Colors::Green);
basic::pause(2000);
}
Project: Battery gauge
Shows the 18650 cell level as a bar and beeps once when it gets low. The board charges the cell while USB-C is plugged in.
Battery gauge (Arduino C++)
// Battery gauge: 18650 Battery Holder (TP-P01)
// Shows the 18650 cell level as a bar and beeps once when it gets low. The board charges the cell while USB-C is plugged in.
#include <TinkerPie.h>
#include <TinkerPieBricks.h>
using namespace tinkerpie;
bool warned = false;
void setup() {
Serial.begin(115200);
tinkerpie::begin(); // also starts the SENSOR ports (I2C bus Wire1)
}
void loop() {
double level = input::batteryLevel(); // 0-100 %
led::plotBarGraph(level, 100, level < 20 ? Colors::Red : Colors::Green);
if (level < 20 && !warned && !input::usbPowered()) { music::playTone(440, 300); warned = true; }
if (level > 30) warned = false;
Serial.printf("%.2f V %.0f %% %s\n", input::batteryVoltage(), level, input::isCharging() ? "charging" : "");
basic::pause(2000);
}
More TinkerPie Bricks
TinkerPie V1 boardThe all-in-one coding, robotics and AI board, designed in India.₹7,999Pre-order
IO-4 Smart BrickTP-B01Connect any analog or digital sensor to TinkerPie – 4 ports, each analog, digital or PWM.₹499Pre-order
Line Follower 5TP-B02Five IR sensors in one bar – build a fast line-following robot in minutes.₹499Pre-order
Ultrasonic BrickTP-B03HC-SR04 distance sensor made safe and simple – distance in mm over one cable.₹499Pre-order