GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsRecord readings into memory while disconnected, then dump the whole log to a phone in one burst when it reconnects. Live streaming needs a phone present the whole time, which is rarely practical. Store-and-forward solves it: the board logs quietly into RAM and only transmits when asked. Because a bulk dump is many lines sent back to back, a short pause after each one gives the receiver time to keep up, without it, phones with small serial buffers drop lines, which is a genuinely common and confusing bug.
The ESP32 is a 3.3V board: never connect a 5V signal straight to a GPIO pin.
Every part for this build comes in the Geekobot Titan Kit box, a Geekobot exclusive, together with the parts for all 120 projects, from a first blinking LED to a smart fan and a reaction game. The wiring below is the kit's own wiring.
Tick anything you already have and the total updates.
ESP32 DevKit V1 (38-pin): the brain of every Titan Kit project, with Wi-Fi and Bluetooth
Male-to-female and female-to-female leads for the modules
DHT11 temperature and humidity sensor
HC-05 Bluetooth module: a serial link to your phone
ESP32 expansion board from the kit: every GPIO has its own S, V, G header
Follow the colours: red is power, dark grey is ground, blue is a signal.
titan_kit_082_bluetooth_data_logger.inoVerify & upload in Electrolark#include <HardwareSerial.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <DHT.h>
#define DHTPIN 14
#define DHTTYPE DHT11
#define CAPACITY 60
HardwareSerial bt(2); // UART2: RX on GPIO16, TX on GPIO17
DHT dht(DHTPIN, DHTTYPE);
Adafruit_SSD1306 display(128, 64, &Wire, -1);
int clearButton = 27;
byte logTemp[CAPACITY];
byte logHum[CAPACITY];
unsigned int logTime[CAPACITY];
int stored = 0;
unsigned long interval = 5000;
unsigned long lastLog = 0;
void addRecord(byte t, byte h)
{
if (stored >= CAPACITY)
{
// Drop the oldest to make room
for (int i = 0; i < CAPACITY - 1; i++)
{
logTemp[i] = logTemp[i + 1];
logHum[i] = logHum[i + 1];
logTime[i] = logTime[i + 1];
}
stored = CAPACITY - 1;
}
logTemp[stored] = t;
logHum[stored] = h;
logTime[stored] = millis() / 1000;
stored = stored + 1;
}
void dumpLog()
{
bt.println("=== LOG START ===");
bt.print("Records: ");
bt.println(stored);
bt.println("index,seconds,tempC,humidity");
for (int i = 0; i < stored; i++)
{
bt.print(i + 1);
bt.print(",");
bt.print(logTime[i]);
bt.print(",");
bt.print(logTemp[i]);
bt.print(",");
bt.println(logHum[i]);
delay(25); // Let the receiver keep up
}
bt.println("=== LOG END ===");
Serial.println("Log transmitted");
}
void setup()
{
pinMode(clearButton, INPUT_PULLUP);
bt.begin(9600, SERIAL_8N1, 16, 17);
Serial.begin(9600);
dht.begin();
if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { while (true) { } }
display.setTextColor(SSD1306_WHITE);
display.setTextSize(1);
bt.println("D=dump C=clear I=info");
}
void loop()
{
if (digitalRead(clearButton) == LOW)
{
stored = 0;
Serial.println("Log cleared");
delay(300);
}
if (bt.available())
{
char command = bt.read();
if (command == 'D') dumpLog();
if (command == 'C') { stored = 0; bt.println("Log cleared"); }
if (command == 'I')
{
bt.print("Stored ");
bt.print(stored);
bt.print(" of ");
bt.print(CAPACITY);
bt.print(", interval ");
bt.print(interval / 1000);
bt.println("s");
}
}
if (millis() - lastLog > interval)
{
lastLog = millis();
float t = dht.readTemperature();
float h = dht.readHumidity();
if (!isnan(t) && !isnan(h))
{
addRecord((byte)t, (byte)h);
Serial.print("Logged record ");
Serial.println(stored);
}
}
display.clearDisplay();
display.setCursor(0, 0);
display.print("DATA LOGGER");
display.setTextSize(2);
display.setCursor(0, 14);
display.print(stored);
display.setTextSize(1);
display.print(" / ");
display.print(CAPACITY);
display.setCursor(0, 36);
display.print("Next in ");
display.print((interval - (millis() - lastLog)) / 1000);
display.print("s");
if (stored > 0)
{
display.setCursor(0, 46);
display.print("Last: ");
display.print(logTemp[stored - 1]);
display.print("C ");
display.print(logHum[stored - 1]);
display.print("%");
}
display.setCursor(0, 56);
display.print("Send D to download");
display.display();
}
Use a micro-USB data cable (some cables only charge), install the CP210x or CH340 driver if no port appears, pick Tools > Board > ESP32 Dev Module and hold the BOOT button on the board until the upload starts.
The sketch uses INPUT_PULLUP, so one leg goes to the GPIO and the other to GND. Use two legs on opposite sides of the button.
Check SDA on GPIO21 and SCL on GPIO22, power from 3V3, and that the sketch uses address 0x3C (some boards are 0x3D).
Check that DATA goes to the GPIO in the sketch, and wait two seconds between reads: the DHT11 is slow.
Live streaming needs a phone present the whole time, which is rarely practical. Store-and-forward solves it: the board logs quietly into RAM and only transmits when asked. Because a bulk dump is many lines sent back to back, a short pause after each one gives the receiver time to keep up, without it, phones with small serial buffers drop lines, which is a genuinely common and confusing bug.
The board logs one record every 5 seconds with no phone connected. Connect later and send D: the whole log arrives as comma-separated lines. The dump is bracketed by LOG START and LOG END markers.
Yes. It is project 82 of 120 in the Geekobot Titan Kit, in level 13 (Bluetooth). Every part on the list comes in the kit box, and you can also buy the parts one by one from the list above.
No. Every Titan Kit project is wired on the ESP32 expansion board and the breadboard with jumper wires.
9 parts: ESP32-WROOM-32 38-Pin Development Board, USB Cable, Solderless Breadboard, Dupont Jumper Wires (40 pcs), Tactile Push Button Switch, 0.96" OLED Display 128x64, Generic DHT11 Digital Temperature & Humidity Sensor Module, HC-05 6-Pin Bluetooth Serial Module with Button and ESP32 38-Pin Expansion Board. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 45 minutes. The build on this page has 7 steps.
No. This page has the complete, tested code (titan_kit_082_bluetooth_data_logger.ino).
About ₹1,084 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Bulk data transmission; Store-and-forward instead of live streaming; Pacing a bulk dump so the receiver keeps up; CSV output that pastes straight into a spreadsheet.
The ESP32 is a 3.3V board: never connect a 5V signal straight to a GPIO pin.
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.