GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsStream live sensor readings to a phone as they happen, with the phone able to start, stop and set the rate. Telemetry means sending measurements as they happen, and the awkward part is that the board must keep measuring while it listens for commands. Nothing here blocks: the sensor is read on its own schedule, transmissions happen on theirs, and the incoming buffer is checked every pass. Sending a packet counter with each line lets the receiver notice if anything went missing, a small addition that turns a stream of numbers into a stream you can trust.
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
10k resistor: the fixed half of the light-sensing divider
DHT11 temperature and humidity sensor
LDR: its resistance falls as the light gets brighter
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_081_bluetooth_sensor_monitorin.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
HardwareSerial bt(2); // UART2: RX on GPIO16, TX on GPIO17
DHT dht(DHTPIN, DHTTYPE);
Adafruit_SSD1306 display(128, 64, &Wire, -1);
float temp = 0, hum = 0;
int light = 0;
bool streaming = false;
unsigned long interval = 2000;
unsigned long lastSend = 0;
unsigned long lastRead = 0;
long packets = 0;
void readSensors()
{
float t = dht.readTemperature();
float h = dht.readHumidity();
if (!isnan(t)) temp = t;
if (!isnan(h)) hum = h;
light = map(analogRead(34), 0, 1023, 0, 100);
}
void sendPacket()
{
packets = packets + 1;
bt.print("#");
bt.print(packets);
bt.print(",T=");
bt.print(temp, 1);
bt.print(",H=");
bt.print(hum, 0);
bt.print(",L=");
bt.print(light);
bt.print(",t=");
bt.println(millis() / 1000);
}
void setup()
{
analogReadResolution(10); // ESP32 is 12-bit; use 0-1023 like the examples
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);
readSensors();
bt.println("READY. S=start X=stop F=fast N=normal R=read once");
}
void loop()
{
if (millis() - lastRead > 2000)
{
lastRead = millis();
readSensors();
}
if (bt.available())
{
char command = bt.read();
Serial.println(command);
if (command == 'S') { streaming = true; bt.println("Streaming ON"); }
if (command == 'X') { streaming = false; bt.println("Streaming OFF"); }
if (command == 'F') { interval = 500; bt.println("Rate 0.5s"); }
if (command == 'N') { interval = 2000; bt.println("Rate 2s"); }
if (command == 'R') { sendPacket(); }
}
if (streaming && millis() - lastSend > interval)
{
lastSend = millis();
sendPacket();
}
display.clearDisplay();
display.setCursor(0, 0);
display.print("TELEMETRY STATION");
display.setCursor(0, 14);
display.print("T ");
display.print(temp, 1);
display.print("C H ");
display.print(hum, 0);
display.print("% L ");
display.print(light);
display.setCursor(0, 28);
display.print("Link: ");
display.print(streaming ? "STREAMING" : "IDLE");
display.setCursor(0, 40);
display.print("Rate: ");
display.print(interval / 1000.0, 1);
display.print("s");
display.setCursor(0, 52);
display.print("Packets sent: ");
display.print(packets);
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.
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.
The LDR and the 10k resistor must meet at the analog GPIO: LDR to 3V3, resistor to GND.
Telemetry means sending measurements as they happen, and the awkward part is that the board must keep measuring while it listens for commands. Nothing here blocks: the sensor is read on its own schedule, transmissions happen on theirs, and the incoming buffer is checked every pass. Sending a packet counter with each line lets the receiver notice if anything went missing, a small addition that turns a stream of numbers into a stream you can trust.
Pair with the HC-05 and the phone receives a command list. Send S and lines like #1,T=28.4,H=61,L=74,t=12 arrive every 2 seconds. Send F to speed up to twice a second, N to return to normal.
Yes. It is project 81 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.
10 parts: ESP32-WROOM-32 38-Pin Development Board, USB Cable, Solderless Breadboard, Dupont Jumper Wires (40 pcs), Carbon Film Resistor 1/4W 5% (Pack of 10), 0.96" OLED Display 128x64, Generic DHT11 Digital Temperature & Humidity Sensor Module, 5 mm LDR Light Dependent Resistor, 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_081_bluetooth_sensor_monitorin.ino).
About ₹1,094 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Real-time telemetry; Non-blocking send and receive together; Packet counters for detecting loss; Letting the receiver control the sample rate.
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.