GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsWi-Fi rarely reaches a rooftop tank through two concrete floors; LoRa does. The EByte E220-900T22D uses the LLCC68 LoRa chip and works as a transparent serial link: bytes written into one module come out of the other, with no LoRa code needed. The roof ESP32 reads an HC-SR04-style waterproof ultrasonic sensor and sends the level every minute.
Work safely on the roof and keep the electronics in a sealed, shaded box.
Tick anything you already have and the total updates.
EByte E220-900T22D LoRa UART module with antenna
HY-SRF05 ultrasonic sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
5 V USB chargers at both ends; use a weatherproof box on the roof.
tank_lora.inoVerify & upload in Electrolark#define ROLE 1 // 1 = roof sensor, 2 = kitchen display
#if ROLE == 2
#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
#endif
const int TANK_CM = 120, FULL_CM = 20;
void setup() {
Serial2.begin(9600, SERIAL_8N1, 16, 17);
#if ROLE == 1
pinMode(5, OUTPUT); pinMode(18, INPUT);
#else
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
#endif
}
void loop() {
#if ROLE == 1
digitalWrite(5, LOW); delayMicroseconds(2); digitalWrite(5, HIGH); delayMicroseconds(10); digitalWrite(5, LOW);
long cm = pulseIn(18, HIGH, 30000) / 58;
if (cm > 0) {
int pct = constrain(map(cm, TANK_CM, FULL_CM, 0, 100), 0, 100);
Serial2.printf("TANK:%d\n", pct);
}
delay(60000);
#else
if (Serial2.available()) {
String s = Serial2.readStringUntil('\n');
if (s.startsWith("TANK:")) {
int pct = s.substring(5).toInt();
oled.clearDisplay(); oled.setTextSize(1); oled.setCursor(0, 0); oled.print("Overhead tank");
oled.setTextSize(3); oled.setCursor(0, 18); oled.print(pct); oled.print("%");
oled.drawRect(0, 52, 128, 10, WHITE); oled.fillRect(0, 52, pct * 128 / 100, 10, WHITE);
oled.display();
}
}
#endif
}
Both modules must have the same channel and address, and M0/M1 must be low.
Baud rates differ; set both modules and both sketches to 9600.
Ripples or the sensor seeing the tank wall; aim it straight down away from the inlet.
Kilometres in open air; through a few concrete floors it is still comfortable.
Yes, it is licence-free in India for low-power devices.
Yes, add a relay at the kitchen end, with proper pump wiring by an electrician.
6 parts: 2 × EByte E220-900T22D LoRa UART Module LLCC68 868/915MHz 22dBm w/ SMA-K Antenna, 2 × ESP32-WROOM-32 38-Pin Development Board, HY-SRF05 Ultrasonic Sensor Module – 5-Pin Interface, 3cm-4.5m Range, 0.96" OLED Display 128x64, 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 intermediate project and takes about 3 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (tank_lora.ino).
About ₹2,468 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Transparent LoRa serial links; Setting the channel for India's 865-867 MHz band; Turning a distance into a tank percentage.
Work safely on the roof and keep the electronics in a sealed, shaded box.
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.