GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsControl two relay-switched appliances (a light and a fan) from a phone, with a master command to switch everything off at once. Most relay modules are active LOW: writing LOW to an input energises that relay. That inversion catches everyone out at least once, so the sketch keeps a friendly true/false state array and does the flipping in one place, inside applyStates(). The LCD then draws a compact status line where each appliance is one character, which is enough to see the whole house at a glance.
Switch only low-voltage demo loads such as the LED here. Never wire mains to these relay modules in a classroom project.
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
LEDs from the kit's red, green, yellow and blue packs (one is the lamp the relay switches)
220 ohm resistors: one in series with every LED segment
16x2 LCD with I2C backpack: four wires, two lines of text
1-channel 5V relay module (active LOW); the kit has two
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_46_bluetooth_home_automatio.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
SoftwareSerial bt(2, 3);
LiquidCrystal_I2C lcd(0x27, 16, 2);
int relayPins[2] = {4, 5}; // two single relay modules
String names[2] = {"Light", "Fan"};
bool state[2] = {false, false};
void applyStates()
{
for (int i = 0; i < 2; i++)
{
// Relay modules are active LOW
if (state[i])
{
digitalWrite(relayPins[i], LOW);
}
else
{
digitalWrite(relayPins[i], HIGH);
}
}
lcd.setCursor(0, 0);
lcd.print("Light Fan");
lcd.setCursor(0, 1);
for (int i = 0; i < 2; i++)
{
if (state[i])
{
lcd.print("ON ");
}
else
{
lcd.print("OFF ");
}
}
}
void setup()
{
for (int i = 0; i < 2; i++)
{
pinMode(relayPins[i], OUTPUT);
}
bt.begin(9600);
Serial.begin(9600);
lcd.init();
lcd.backlight();
applyStates();
bt.println("1-2 ON, 5-6 OFF, 9 all OFF");
}
void loop()
{
if (!bt.available())
{
return;
}
char command = bt.read();
Serial.println(command);
if (command >= '1' && command <= '2')
{
int index = command - '1';
state[index] = true;
bt.print(names[index]);
bt.println(" ON");
}
else if (command >= '5' && command <= '6')
{
int index = command - '5';
state[index] = false;
bt.print(names[index]);
bt.println(" OFF");
}
else if (command == '9')
{
for (int i = 0; i < 2; i++)
{
state[i] = false;
}
bt.println("All appliances OFF");
}
applyStates();
}
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 it round: the long leg (anode) goes to the pin side through the 220 ohm resistor, the short leg to GND.
Turn the small contrast pot on the back of the I2C board. If still blank, change 0x27 in the sketch to 0x3F.
These relay modules are active LOW: writing LOW switches them on. The sketch already does this, so check IN goes to the right pin.
Most relay modules are active LOW: writing LOW to an input energises that relay. That inversion catches everyone out at least once, so the sketch keeps a friendly true/false state array and does the flipping in one place, inside applyStates(). The LCD then draws a compact status line where each appliance is one character, which is enough to see the whole house at a glance.
LCD shows L F P M above a row of four zeros. Send 1: the first relay clicks, the phone reads Light ON and the display shows 1 0 0 0. Send 5 to switch it off again.
Yes. It is project 46 of 61 in the Geekobot Explorer Kit, in level 8 (Wireless control). 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.
11 parts: Generic Nano CH340 Development Board (Soldered), 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), LCD1602 16x2 Character LCD Display, 2 × 5V Relay Module with Optocoupler, HC-05 6-Pin Bluetooth Serial Module with Button, Carbon Film Resistor 1/4W 5% (Pack of 10), 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 1 hour 30 minutes. The build on this page has 7 steps.
No. This page has the complete, tested code (explorer_kit_46_bluetooth_home_automatio.ino).
About ₹928 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Relay array control over Bluetooth; Handling active-LOW hardware cleanly; Mapping command ranges to array indexes; Designing a compact status display.
Switch only low-voltage demo loads such as the LED here. Never wire mains to these relay modules in a classroom project.
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.