LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsA Doppler radar sends out 10.525 GHz microwaves; anything moving towards or away from it reflects them at a slightly different frequency. The difference (the Doppler frequency) is about 19.5 Hz for every km/h of speed at this radar frequency. The DFRobot Gravity 10.525 GHz microwave sensor (an HB100-style module with an amplifier) gives a digital pulse train at that frequency, so the Nano just counts pulses for a quarter of a second.
Stand well away from bowlers and moving vehicles while measuring.
Tick anything you already have and the total updates.
DFRobot Gravity 10.525 GHz microwave motion sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB power bank so you can carry it.
speed_gun.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
volatile unsigned long pulses = 0;
void onPulse() { pulses++; }
float top = 0;
void setup() {
pinMode(2, INPUT); pinMode(4, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), onPulse, RISING);
oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE);
}
void loop() {
noInterrupts(); pulses = 0; interrupts();
delay(250);
noInterrupts(); unsigned long n = pulses; interrupts();
float hz = n * 4.0;
float kmh = hz / 19.49; // 10.525 GHz: about 19.49 Hz per km/h
if (kmh < 2) kmh = 0;
if (kmh > top) top = kmh;
if (digitalRead(4) == LOW) top = 0;
oled.clearDisplay(); oled.setTextSize(3); oled.setCursor(0, 8); oled.print((int)kmh);
oled.setTextSize(1); oled.print(" km/h");
oled.setCursor(0, 50); oled.print("Top "); oled.print(top, 1); oled.print(" km/h");
oled.display();
}
Fans, fluorescent lights or vibration; point it away and hold it steady.
You are measuring at an angle; get in line with the movement.
The module's amplifier may limit high frequencies; check its datasheet and count for a shorter time.
Within a few km/h when aimed straight; good for fun and comparisons.
Yes, its output power is a few milliwatts, far below a phone.
For learning only; it is not a calibrated speed enforcement device.
6 parts: DFRobot Gravity Digital 10.525 GHz Microwave Sensor Motion Detection Module, Generic Nano CH340 Development Board (Soldered), 0.96" OLED Display 128x64, Tactile Push Button Switch, 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 2 hours. The build on this page has 5 steps.
No. This page has the complete, tested code (speed_gun.ino).
About ₹1,507 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
The Doppler effect; Measuring frequency by counting pulses with an interrupt; Converting Doppler frequency to speed.
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
See the smoke level live on a crisp screen and get a loud warning when it spikes.
An infrared eye that spots an open flame and raises the alarm.
Walk into the room and it sounds the alarm: the classic first security build.
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.