GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsStream live temperature, humidity and light readings to your phone, either on demand or automatically every few seconds. Sending variables over a serial link means turning them into text and giving each one a label, because the receiver has no idea what the numbers mean otherwise. The automatic mode uses millis() rather than delay() so the board keeps listening for commands while it waits, a delay(3000) here would make the dashboard ignore you for three seconds at a time.
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
10k resistor: the fixed half of the light-sensing divider
16x2 LCD with I2C backpack: four wires, two lines of text
DHT11 temperature and humidity sensor
LDR: its resistance falls as the light gets brighter
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_49_wireless_sensor_dashboar.inoVerify & upload in Electrolark#include <SoftwareSerial.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <DHT.h>
#define DHTPIN 4
#define DHTTYPE DHT11
SoftwareSerial bt(2, 3);
DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal_I2C lcd(0x27, 16, 2);
int ldrPin = A0;
bool autoSend = false;
unsigned long lastSend = 0;
unsigned long interval = 3000;
void sendReadings()
{
float temp = dht.readTemperature();
float hum = dht.readHumidity();
int light = analogRead(ldrPin);
if (isnan(temp) || isnan(hum))
{
bt.println("Sensor error");
return;
}
bt.print("TEMP=");
bt.print(temp, 1);
bt.print("C HUM=");
bt.print(hum, 0);
bt.print("% LIGHT=");
bt.println(light);
lcd.setCursor(0, 0);
lcd.print("T:");
lcd.print(temp, 1);
lcd.print(" H:");
lcd.print(hum, 0);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print("Light: ");
lcd.print(light);
lcd.print(" ");
}
void setup()
{
bt.begin(9600);
Serial.begin(9600);
dht.begin();
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Dashboard ready");
delay(2000);
lcd.clear();
bt.println("Send R to read once, A for auto, X to stop");
}
void loop()
{
if (bt.available())
{
char command = bt.read();
Serial.println(command);
if (command == 'R' || command == 'r')
{
sendReadings();
}
else if (command == 'A' || command == 'a')
{
autoSend = true;
bt.println("Auto mode ON");
}
else if (command == 'X' || command == 'x')
{
autoSend = false;
bt.println("Auto mode OFF");
}
}
if (autoSend && millis() - lastSend > interval)
{
lastSend = millis();
sendReadings();
}
}
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.
Check that DATA goes to the pin in the sketch, and wait two seconds between reads: the DHT11 is slow.
The LDR and the 10k resistor must meet at the analog pin: LDR to 5V, resistor to GND.
Sending variables over a serial link means turning them into text and giving each one a label, because the receiver has no idea what the numbers mean otherwise. The automatic mode uses millis() rather than delay() so the board keeps listening for commands while it waits, a delay(3000) here would make the dashboard ignore you for three seconds at a time.
Send R and the phone receives TEMP=28.4C HUM=61% LIGHT=742. Send A and the same line arrives every 3 seconds. Send X to stop the stream.
Yes. It is project 49 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), Carbon Film Resistor 1/4W 5% (Pack of 10), LCD1602 16x2 Character LCD Display, Generic DHT11 Digital Temperature & Humidity Sensor Module, 5 mm LDR Light Dependent Resistor, 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. The build on this page has 7 steps.
No. This page has the complete, tested code (explorer_kit_49_wireless_sensor_dashboar.ino).
About ₹824 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Sending variables over Serial with labels; Non-blocking timing with millis(); Staying responsive while streaming data; Mirroring output to two displays at once.
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.
Learning project. Check every circuit and the datasheet of each part before you power it up.