GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsUnlock the servo latch from a phone by sending a single character over a Bluetooth link. Bluetooth here is nothing more exotic than a wireless serial cable. The HC-05 receives characters from a phone app and hands them to the ESP32 over UART, the same one-byte-at-a-time protocol the Serial Monitor uses. The ESP32 has three hardware UARTs, so the sketch simply claims UART2 on GPIO16 and GPIO17 and leaves UART0 free for the USB Serial Monitor. That is a real peripheral rather than the bit-banged SoftwareSerial an Uno would need.
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
16x2 LCD with I2C backpack: four wires, two lines of text
SG90 servo: turns to the angle the sketch asks for
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_027_bluetooth_door_lock.inoVerify & upload in Electrolark#include <HardwareSerial.h>
#include <ESP32Servo.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
HardwareSerial bt(2); // UART2: RX on GPIO16, TX on GPIO17 // RX, TX
Servo lock;
LiquidCrystal_I2C lcd(0x27, 16, 2);
bool locked = true;
void setup()
{
bt.begin(9600, SERIAL_8N1, 16, 17);
Serial.begin(9600);
lock.attach(26);
lock.write(0);
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Status: LOCKED");
}
void loop()
{
if (!bt.available())
{
return;
}
char command = bt.read();
Serial.println(command);
if (command == 'U' || command == 'u')
{
lock.write(90);
locked = false;
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Status: UNLOCKED");
bt.println("Door unlocked");
}
else if (command == 'L' || command == 'l')
{
lock.write(0);
locked = true;
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Status: LOCKED");
bt.println("Door locked");
}
}
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 the small contrast pot on the back of the I2C board. If still blank, change 0x27 in the sketch to 0x3F.
A servo can pull more current than USB gives when it starts. Keep the servo wires short and avoid moving it under load.
Pair with the HC-05 using PIN 1234 (or 0000), then connect in a Bluetooth serial terminal app. TXD goes to GPIO16 (RX2), RXD to GPIO17 (TX2).
Bluetooth here is nothing more exotic than a wireless serial cable. The HC-05 receives characters from a phone app and hands them to the ESP32 over UART, the same one-byte-at-a-time protocol the Serial Monitor uses. The ESP32 has three hardware UARTs, so the sketch simply claims UART2 on GPIO16 and GPIO17 and leaves UART0 free for the USB Serial Monitor. That is a real peripheral rather than the bit-banged SoftwareSerial an Uno would need.
Pair with the HC-05 (default PIN 1234 or 0000) in any serial terminal app. Send U: the servo turns and the LCD reads Status: UNLOCKED. Send L: the servo returns and the LCD reads Status: LOCKED.
Yes. It is project 27 of 120 in the Geekobot Titan Kit, in level 6 (Security and access). 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.
7 parts: ESP32-WROOM-32 38-Pin Development Board, USB Cable, Dupont Jumper Wires (40 pcs), LCD1602 16x2 Character LCD Display, TowerPro SG90 9g Micro Servo (180°), 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 30 minutes. The build on this page has 6 steps.
No. This page has the complete, tested code (titan_kit_027_bluetooth_door_lock.ino).
About ₹1,083 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
UART and Serial communication; Hardware UART2 on GPIO16 and GPIO17; Parsing single-character commands; Two-way messaging with a phone.
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.