Witty Fox 3.7V 6000mAh Li-Ion Battery Documentation
The Witty Fox 3.7V 6000mAh Li-Ion Battery is a high-capacity rechargeable lithium-ion battery designed for use in a wide range of IoT applications. With its compact size and reliable performance, this battery is ideal for powering devices that require a long-lasting power source.
Voltage: 3.7V
Capacity: 6000mAh
Chemistry: Lithium-Ion (Li-Ion)
Dimensions: 68.5mm x 40mm x 12.5mm
Weight: 120g
Operating Temperature: -20C to 45C
Charging Cycles: Up to 500 cycles
### Example 1: Arduino Uno - Powering an IoT Sensor Node
In this example, we'll demonstrate how to use the Witty Fox 3.7V 6000mAh Li-Ion Battery to power an Arduino Uno-based IoT sensor node.
Witty Fox 3.7V 6000mAh Li-Ion Battery
Arduino Uno Board
DHT11 Temperature and Humidity Sensor
Breadboard and Jumper Wires
Code
```c
#include <dht.h>
#define DHT_PIN 2 // pin for DHT11 sensor
void setup() {
Serial.begin(9600);
}
void loop() {
int temperature = dht.readTemperature();
int humidity = dht.readHumidity();
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" C");
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println(" %");
delay(1000);
}
```
Description
In this example, we connect the Witty Fox 3.7V 6000mAh Li-Ion Battery to the Arduino Uno board, which powers the DHT11 temperature and humidity sensor. The code reads the temperature and humidity values from the sensor and prints them to the serial console.
### Example 2: ESP32 - Powering a Wi-Fi Enabled IoT Device
In this example, we'll demonstrate how to use the Witty Fox 3.7V 6000mAh Li-Ion Battery to power an ESP32-based Wi-Fi enabled IoT device.
Witty Fox 3.7V 6000mAh Li-Ion Battery
ESP32 Dev Board
Wi-Fi Antenna
Breadboard and Jumper Wires
Code
```c
#include <WiFi.h>
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
Serial.println("Initializing Wi-Fi...");
}
void loop() {
// Add your Wi-Fi enabled IoT code here
delay(1000);
}
```
Description
In this example, we connect the Witty Fox 3.7V 6000mAh Li-Ion Battery to the ESP32 Dev Board, which powers the Wi-Fi module. The code establishes a Wi-Fi connection using the provided SSID and password, and then enters a loop where you can add your Wi-Fi enabled IoT code.
Note: Make sure to modify the SSID and password to match your Wi-Fi network credentials.