GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsDFRobot's FireBeetle 2 ESP32-E is built for battery projects: it has a LiPo charger and a low sleep current. The Gravity IO shield brings out each GPIO as a 3-pin VCC-GND-signal header and an I2C header, so sensors plug in without a breadboard. The sketch wakes, reads a BME280, sends the values over Wi-Fi with an HTTP request, then goes back to deep sleep.
LiPo cells can burn if shorted; keep the cell in a case away from heat.
Tick anything you already have and the total updates.
Gravity IO shield for FireBeetle 2
BME280 I2C module
Follow the colours: red is power, dark grey is ground, blue is a signal.
3.7 V LiPo on the battery socket, charged by USB-C.
sleep_logger.inoVerify & upload in Electrolark#include <WiFi.h>
#include <HTTPClient.h>
#include <Adafruit_BME280.h>
const char* SSID = "your-wifi";
const char* PASS = "your-password";
const char* URL = "http://192.168.1.10:8000/log"; // your server
const uint64_t SLEEP_US = 10ULL * 60 * 1000000;
Adafruit_BME280 bme;
void setup() {
Serial.begin(115200);
bme.begin(0x76);
float t = bme.readTemperature(), h = bme.readHumidity(), p = bme.readPressure() / 100.0;
Serial.printf("%.1f C %.0f %% %.1f hPa\n", t, h, p);
WiFi.begin(SSID, PASS);
for (int i = 0; i < 40 && WiFi.status() != WL_CONNECTED; i++) delay(250);
if (WiFi.status() == WL_CONNECTED) {
HTTPClient http;
http.begin(URL);
http.addHeader("Content-Type", "application/json");
http.POST("{\"t\":" + String(t, 1) + ",\"h\":" + String(h, 0) + ",\"p\":" + String(p, 1) + "}");
http.end();
}
Serial.println("sleeping");
esp_sleep_enable_timer_wakeup(SLEEP_US);
esp_deep_sleep_start();
}
void loop() {}
Try address 0x77, and check SDA/SCL are not swapped.
Wi-Fi is not connecting and the board waits; check the password, and keep the 10 s timeout.
Press reset just as the upload starts, or hold BOOT while plugging in.
With a 10-minute interval, weeks on a 1000 mAh cell; the Wi-Fi connection uses most of the energy.
Yes, add a small 5-6 V panel through a solar LiPo charger.
Any server that accepts an HTTP POST, such as Node-RED or Home Assistant's webhook.
5 parts: DFRobot FireBeetle 2 ESP32-E IoT Development Board, DFRobot Gravity IO Shield for FireBeetle 2 ESP32-E/M0 – Expansion Board, Generic ZY-BME280 Pressure Temperature Humidity Sensor Module – I2C Interface, Lithium Polymer (LiPo) Cell 3.7V and Dupont Jumper Wires (40 pcs). 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 (sleep_logger.ino).
About ₹1,944 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
ESP32 deep sleep and wake timers; Keeping Wi-Fi time short to save battery; Using an IO expansion shield.
LiPo cells can burn if shorted; keep the cell in a case away from heat.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
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.