GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsChange a running system's settings wirelessly, thresholds, intervals and modes, without touching the hardware or re-uploading. Hard-coded settings mean a laptop and a cable every time a threshold needs adjusting. Sending set commands instead makes the device configurable in place, and saving those values to EEPROM makes them survive a power cut. The parsing pattern is worth noting: split at the first space to get the setting name, split again for the value, the same technique that scales all the way up to real configuration files.
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
LEDs from the kit's red, green, yellow and blue packs
220 ohm resistors: one in series with every LED
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_090_bluetooth_remote_configura.inoVerify & upload in Electrolark#include <HardwareSerial.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <DHT.h>
#include <EEPROM.h>
#define DHTPIN 14
#define DHTTYPE DHT11
#define MAGIC_ADDRESS 100
#define MAGIC_VALUE 42
HardwareSerial bt(2); // UART2: RX on GPIO16, TX on GPIO17
DHT dht(DHTPIN, DHTTYPE);
Adafruit_SSD1306 display(128, 64, &Wire, -1);
int led = 25;
int buzzer = 33;
// Configurable settings
int highLimit = 30;
int lowLimit = 18;
int checkSeconds = 3;
bool alarmEnabled = true;
float temp = 0;
bool alarmActive = false;
unsigned long lastCheck = 0;
String input = "";
void saveSettings()
{
EEPROM.update(MAGIC_ADDRESS, MAGIC_VALUE);
EEPROM.update(MAGIC_ADDRESS + 1, highLimit);
EEPROM.update(MAGIC_ADDRESS + 2, lowLimit);
EEPROM.update(MAGIC_ADDRESS + 3, checkSeconds);
EEPROM.update(MAGIC_ADDRESS + 4, alarmEnabled ? 1 : 0);
bt.println("Settings saved to EEPROM");
}
void loadSettings()
{
if (EEPROM.read(MAGIC_ADDRESS) != MAGIC_VALUE)
{
return; // Never saved - keep the defaults
}
highLimit = EEPROM.read(MAGIC_ADDRESS + 1);
lowLimit = EEPROM.read(MAGIC_ADDRESS + 2);
checkSeconds = EEPROM.read(MAGIC_ADDRESS + 3);
alarmEnabled = EEPROM.read(MAGIC_ADDRESS + 4) == 1;
Serial.println("Settings loaded from EEPROM");
}
void showConfig()
{
bt.println("--- Configuration ---");
bt.print("high "); bt.println(highLimit);
bt.print("low "); bt.println(lowLimit);
bt.print("interval "); bt.println(checkSeconds);
bt.print("alarm "); bt.println(alarmEnabled ? "on" : "off");
bt.println("Use: set high 32");
}
void handle(String line)
{
line.trim();
line.toLowerCase();
if (line.length() == 0) return;
if (line == "config") { showConfig(); return; }
if (line == "save") { saveSettings(); return; }
if (line == "load") { loadSettings(); showConfig(); return; }
if (line.startsWith("set "))
{
String rest = line.substring(4);
rest.trim();
int space = rest.indexOf(' ');
if (space < 0)
{
bt.println("Use: set <name> <value>");
return;
}
String name = rest.substring(0, space);
String value = rest.substring(space + 1);
value.trim();
if (name == "high") { highLimit = value.toInt(); }
else if (name == "low") { lowLimit = value.toInt(); }
else if (name == "interval") { checkSeconds = constrain(value.toInt(), 1, 60); }
else if (name == "alarm") { alarmEnabled = (value == "on"); }
else
{
bt.println("Unknown setting. Send config");
return;
}
bt.print(name);
bt.print(" is now ");
bt.println(value);
Serial.print("Config change: ");
Serial.println(line);
return;
}
bt.println("Commands: config, set <name> <value>, save, load");
}
void setup()
{
pinMode(led, OUTPUT);
pinMode(buzzer, OUTPUT);
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);
loadSettings();
bt.println("Remote config ready. Send config");
}
void loop()
{
while (bt.available())
{
char c = bt.read();
if (c == '\n') { handle(input); input = ""; }
else if (c != '\r') { input = input + c; }
}
if (millis() - lastCheck > (unsigned long)checkSeconds * 1000)
{
lastCheck = millis();
float t = dht.readTemperature();
if (!isnan(t)) temp = t;
alarmActive = alarmEnabled && (temp > highLimit || temp < lowLimit);
if (alarmActive)
{
tone(buzzer, 1400, 150);
bt.print("ALARM: ");
bt.print(temp, 1);
bt.println("C is outside limits");
}
}
digitalWrite(led, alarmActive && (millis() / 400) % 2);
display.clearDisplay();
display.setCursor(0, 0);
display.print("REMOTE CONFIG");
display.setTextSize(2);
display.setCursor(0, 12);
display.print(temp, 1);
display.setTextSize(1);
display.print(" C");
display.setCursor(0, 34);
display.print("Limits ");
display.print(lowLimit);
display.print(" to ");
display.print(highLimit);
display.print("C");
display.setCursor(0, 44);
display.print("Every ");
display.print(checkSeconds);
display.print("s alarm ");
display.print(alarmEnabled ? "on" : "off");
display.setCursor(0, 56);
display.print(alarmActive ? "** OUT OF RANGE **" : "Within limits");
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.
Turn it round: the long leg (anode) goes to the GPIO side through the 220 ohm resistor, the short leg to GND.
This project needs the passive buzzer (the one that plays notes), not the active one.
Check SDA on GPIO21 and SCL on GPIO22, power from 3V3, and that the sketch uses address 0x3C (some boards are 0x3D).
Hard-coded settings mean a laptop and a cable every time a threshold needs adjusting. Sending set commands instead makes the device configurable in place, and saving those values to EEPROM makes them survive a power cut. The parsing pattern is worth noting: split at the first space to get the setting name, split again for the value, the same technique that scales all the way up to real configuration files.
Send config and the phone lists every current setting. Send set high 32 and the limit changes immediately, with the OLED updating. Send save and the settings survive a power cycle.
Yes. It is project 90 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.
11 parts: ESP32-WROOM-32 38-Pin Development Board, USB Cable, Solderless Breadboard, Dupont Jumper Wires (40 pcs), Through-Hole LED Pack (Pack of 10), Carbon Film Resistor 1/4W 5% (Pack of 10), Buzzer Module 3.3–5V, 0.96" OLED Display 128x64, Generic DHT11 Digital Temperature & Humidity Sensor Module, HC-05 6-Pin Bluetooth Serial Module with Button, plus 1 more. On this page you can tick the parts you already have and add only the rest to your cart.
It is a advanced project and takes about 45 minutes. The build on this page has 8 steps.
No. This page has the complete, tested code (titan_kit_090_bluetooth_remote_configura.ino).
About ₹1,128 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Wireless variable tuning; Parsing set name value commands; Persisting configuration to EEPROM; Using a magic byte to detect unwritten EEPROM.
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.