GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe HC-06 is a Bluetooth Classic serial module: once paired, anything a phone app sends arrives on its TX pin as plain serial. A Nano listens with SoftwareSerial and switches a relay on '1' and off '0', and replies with the state. The HC-06's RX pin is 3.3 V logic, so a simple 1 kΩ / 2 kΩ divider protects it from the Nano's 5 V TX.
Anything connected to 230 V mains must be installed by a qualified electrician in a closed, earthed enclosure. Test with a low-voltage lamp first.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB for the Nano; 12 V adapter for the lamp side only.
bt_relay.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
SoftwareSerial bt(10, 11); // RX, TX
const int RELAY = 7;
void setup() {
pinMode(RELAY, OUTPUT);
digitalWrite(RELAY, LOW);
bt.begin(9600); // HC-06 factory default
}
void loop() {
if (bt.available()) {
char c = bt.read();
if (c == '1') { digitalWrite(RELAY, HIGH); bt.println("Lamp ON"); }
if (c == '0') { digitalWrite(RELAY, LOW); bt.println("Lamp OFF"); }
}
}
The HC-06 LED blinks fast when waiting; it is Bluetooth Classic, so iPhones cannot use it.
TXD must go to D10 and RXD (through the divider) to D11. Check the baud rate is 9600.
Some relay boards switch on LOW; swap HIGH and LOW.
About 10 m indoors.
No, iPhones do not support Bluetooth Classic SPP; use a BLE module for iOS.
Only inside a proper enclosure installed by an electrician.
7 parts: Generic Nano CH340 Development Board (Soldered), HC-06 Bluetooth 2.0 Slave Module (4-Pin, CSR BC04), 5V Relay Module with Optocoupler, Resistor Assortment Kit (30 Values), DC Power Adapter (5.5x2.1mm), Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 1 hour. The build on this page has 6 steps.
No. This page has the complete, tested code (bt_relay.ino).
About ₹907 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Bluetooth SPP serial modules; Level shifting with a resistor divider; Simple text command protocols.
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.