GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe HM-10 is a Bluetooth 4.0 Low Energy module that behaves like a serial cable: whatever the phone writes appears on the Nano's serial pins and the other way round. Unlike the older HC-05, it works with iPhones as well as Android, through any app that supports BLE serial (the HM-10's FFE0/FFE1 service).
Mains wiring is dangerous; have a qualified electrician connect the lamp to the relay.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB charger.
ble_switch.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
SoftwareSerial ble(10, 11); // RX, TX
const int RELAY = 7;
const bool ACTIVE_LOW = true;
void setRelay(bool on) { digitalWrite(RELAY, ACTIVE_LOW ? !on : on); }
void setup() {
pinMode(RELAY, OUTPUT); setRelay(false);
ble.begin(9600);
}
void loop() {
if (ble.available()) {
char c = ble.read();
if (c == '1') { setRelay(true); ble.println("Light ON"); }
if (c == '0') { setRelay(false); ble.println("Light OFF"); }
}
}
Use a BLE app, not the phone's normal Bluetooth settings; BLE devices do not pair there.
TX/RX swapped or wrong baud; the default is usually 9600.
Set ACTIVE_LOW to false.
Yes, BLE works with iPhones; the older HC-05 does not.
About 10 m indoors.
Set a PIN with the HM-10's AT commands so others cannot connect.
6 parts: HM-10 BLE Bluetooth 4.0 CC2541 Wireless Module, Generic Nano CH340 Development Board (Soldered), 5V Relay Module with Optocoupler, Resistor Assortment Kit (30 Values), 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 5 steps.
No. This page has the complete, tested code (ble_switch.ino).
About ₹658 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
BLE serial modules; Talking to a phone with a terminal app; Driving a relay module safely.
Mains wiring is dangerous; have a qualified electrician connect the lamp to the relay.
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.