GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsPick any colour on a phone and the WS2812 LED ring lights up in it, with a brightness slider. Each LED on the WS2812 ring has its own tiny controller, so one data wire sets all eight colours. The ESP32 runs its own Wi-Fi network and a page with the phone's colour picker. The picker sends a colour such as #ff8800; the sketch splits it into red, green and blue numbers and sends them to the ring.
The ESP32 is a 3.3V board: never connect a 5V signal straight to a GPIO pin.
The page has no login beyond the Wi-Fi password: change the password in the sketch before you use it in a shared space.
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
WS2812 ring of 8 colour LEDs, each one set by the sketch over one data wire
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_108_wifi_colour_lamp.inoVerify & upload in Electrolark#include <WiFi.h>
#include <WebServer.h>
#include <Adafruit_NeoPixel.h>
#define RING_PIN 18
#define LEDS 8
Adafruit_NeoPixel ring(LEDS, RING_PIN, NEO_GRB + NEO_KHZ800);
WebServer server(80);
const char* ssid = "Titan-Ring";
const char* password = "titan1234";
int r = 0, g = 80, b = 255;
int bright = 60; // 5-150: keeps the ring's current low enough for USB power
void showColour()
{
ring.setBrightness(bright);
for (int i = 0; i < LEDS; i++)
{
ring.setPixelColor(i, ring.Color(r, g, b));
}
ring.show();
}
void handleRoot()
{
char hex[8];
snprintf(hex, sizeof(hex), "#%02x%02x%02x", r, g, b);
String h = "<!DOCTYPE html><html><head><meta name='viewport' content='width=device-width, initial-scale=1'><title>Titan Ring</title>";
h += "<style>body{font-family:sans-serif;text-align:center}input{width:80%;height:60px;margin:10px}</style></head><body>";
h += "<h2>LED Ring Colour</h2><form action='/set'>";
h += "<input type='color' name='c' value='" + String(hex) + "'><br>Brightness<br>";
h += "<input type='range' name='b' min='5' max='150' value='" + String(bright) + "'><br>";
h += "<input type='submit' value='Light it'></form></body></html>";
server.send(200, "text/html", h);
}
void handleSet()
{
String c = server.arg("c"); // for example #ff8800
if (c.length() == 7)
{
long v = strtol(c.substring(1).c_str(), NULL, 16);
r = (v >> 16) & 0xFF;
g = (v >> 8) & 0xFF;
b = v & 0xFF;
}
if (server.hasArg("b"))
{
bright = constrain(server.arg("b").toInt(), 5, 150);
}
showColour();
Serial.printf("Colour %s, brightness %d\n", c.c_str(), bright);
server.sendHeader("Location", "/");
server.send(303);
}
void setup()
{
Serial.begin(9600);
ring.begin();
showColour();
WiFi.softAP(ssid, password);
Serial.print("Join ");
Serial.print(ssid);
Serial.print(" and open http://");
Serial.println(WiFi.softAPIP());
server.on("/", handleRoot);
server.on("/set", handleSet);
server.begin();
}
void loop()
{
server.handleClient();
}
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.
Join the Wi-Fi network named in the sketch first, then type the address the Serial Monitor prints (usually 192.168.4.1). Turn mobile data off if the phone keeps leaving the network.
Check that the data wire goes to the ring's DIN pad (not DOUT), that the ring has 5V and GND, and that RING_PIN is 18.
Each LED on the WS2812 ring has its own tiny controller, so one data wire sets all eight colours. The ESP32 runs its own Wi-Fi network and a page with the phone's colour picker. The picker sends a colour such as #ff8800; the sketch splits it into red, green and blue numbers and sends them to the ring.
The ring lights blue at start-up. Join the Titan-Ring Wi-Fi (password titan1234) and open 192.168.4.1. Choose a colour, press Light it and the whole ring changes; the slider dims or brightens it.
Yes. It is project 108 of 120 in the Geekobot Titan Kit, in level 16 (Wi-Fi, IoT and new sensors). 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 with jumper wires on the ESP32 expansion board and the breadboard.
5 parts: ESP32-WROOM-32 38-Pin Development Board, USB Cable, Dupont Jumper Wires (40 pcs), WS2812 RGB LED Ring 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 30 minutes. The build on this page has 4 steps.
No. This page has the complete, tested code (titan_kit_108_wifi_colour_lamp.ino).
About ₹709 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Driving addressable LEDs with the Adafruit NeoPixel library; Turning a hex colour into red, green and blue values; Using HTML form inputs (colour and range); Capping brightness to stay within the USB power budget.
The ESP32 is a 3.3V board: never connect a 5V signal straight to a GPIO pin. The page has no login beyond the Wi-Fi password: change the password in the sketch before you use it in a shared space.
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.