Witty Fox 3.7V 4000mAh Li-Ion Battery Documentation
The Witty Fox 3.7V 4000mAh Li-Ion Battery is a rechargeable lithium-ion battery designed for IoT applications. It features a high capacity of 4000mAh, a nominal voltage of 3.7V, and a compact design. This battery is suitable for powering various IoT devices, including wireless sensors, wearable devices, and small robots.
Nominal Voltage: 3.7V
Capacity: 4000mAh
Dimensions: 52 x 34 x 5.5 mm
Weight: approximately 60g
Operating Temperature: -20C to 50C
Charging Method: CC/CV (Constant Current/Constant Voltage)
The Witty Fox 3.7V 4000mAh Li-Ion Battery has a standard JST-XH connector, which can be easily connected to most IoT development boards and modules.
Example 1: Powering an ESP32 Board with the Witty Fox Battery
In this example, we'll demonstrate how to power an ESP32 board using the Witty Fox battery.
Witty Fox 3.7V 4000mAh Li-Ion Battery
ESP32 DevKitC board
JST-XH connector
Code Example:
```c
#include <WiFi.h>
void setup() {
Serial.begin(115200);
WiFi.begin("your_wifi_ssid", "your_wifi_password");
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
}
void loop() {
// Your IoT application code here
delay(1000);
}
```
Connecting the battery to the ESP32 board:
1. Connect the JST-XH connector to the battery.
2. Connect the other end of the JST-XH connector to the ESP32 board's battery input pins (VIN and GND).
Example 2: Powering a Bluetooth Low Energy (BLE) Module with the Witty Fox Battery
In this example, we'll demonstrate how to power a BLE module using the Witty Fox battery.
Witty Fox 3.7V 4000mAh Li-Ion Battery
nRF52840 BLE module (e.g., Adafruit nRF52840 Feather)
JST-XH connector
Code Example:
```c
#include <BLE.h>
void setup() {
Serial.begin(115200);
BLE.begin();
Serial.println("BLE initialized");
}
void loop() {
// Your BLE application code here
delay(1000);
}
```
Connecting the battery to the BLE module:
1. Connect the JST-XH connector to the battery.
2. Connect the other end of the JST-XH connector to the BLE module's battery input pins (VIN and GND).
Always follow proper safety precautions when handling lithium-ion batteries.
Ensure the battery is charged using a suitable charger, and avoid overcharging or undercharging.
The Witty Fox battery is designed for IoT applications and may not be suitable for high-power devices.
By following these examples, you can effectively use the Witty Fox 3.7V 4000mAh Li-Ion Battery to power your IoT projects.