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 Arduino over UART, the same one-byte-at-a-time protocol the Serial Monitor uses. SoftwareSerial creates a second UART on ordinary digital pins so the USB Serial Monitor stays free for debugging.
Every part for this build comes in the Geekobot Explorer Kit box, a Geekobot exclusive, together with the parts for all 61 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.
The brain of every Explorer Kit project
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
1k and 2.2k resistors: drop the Nano's 5V TX signal to the 3.3V the HC-05 RXD pin expects
Nano I/O shield from the kit: every pin has its own S, V, G header, so modules plug in with jumpers
Follow the colours: red is power, dark grey is ground, blue is a signal.
explorer_kit_27_bluetooth_door_lock.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
#include <Servo.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
SoftwareSerial bt(2, 3); // RX, TX
Servo lock;
LiquidCrystal_I2C lcd(0x27, 16, 2);
bool locked = true;
void setup()
{
bt.begin(9600);
Serial.begin(9600);
lock.attach(6);
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 the kit's mini-USB cable, install the CH340 driver on Windows if no port appears, pick Tools > Board > Arduino Nano and try Tools > Processor > ATmega328P (Old Bootloader) if the upload times out.
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. Unplug TXD and RXD while uploading.
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 Arduino over UART, the same one-byte-at-a-time protocol the Serial Monitor uses. SoftwareSerial creates a second UART on ordinary digital pins so the USB Serial Monitor stays free for debugging.
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 61 in the Geekobot Explorer 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 Explorer Kit project is wired on the Nano I/O shield and the breadboard with jumper wires.
9 parts: Generic Nano CH340 Development Board (Soldered), USB Cable, Solderless Breadboard, 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, Carbon Film Resistor 1/4W 5% (Pack of 10) and Arduino Nano IO Expansion Shield (328P Compatible). 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 1 hour. The build on this page has 6 steps.
No. This page has the complete, tested code (explorer_kit_27_bluetooth_door_lock.ino).
About ₹861 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
UART and Serial communication; SoftwareSerial on ordinary digital pins; Parsing single-character commands; Two-way messaging with a phone.
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.