LPG gas leak alarm
A kitchen gas sniffer that beeps and flashes the moment LPG levels climb.
Shop by category
Shop all componentsRising vibration is the first sign of a worn bearing or loose mount. The WTVB01-485 has a magnetic base, measures vibration velocity, displacement, frequency and temperature, and speaks Modbus RTU over RS485. A USB-RS485 adapter connects it straight to a PC. WitMotion's free software shows the values; this Python script logs them every second with minimalmodbus. Register numbers in the script follow WitMotion's manual for this sensor; check them against the manual for your firmware.
Fit the sensor only when the machine is stopped and locked off; keep cables clear of moving parts.
Tick anything you already have and the total updates.
WitMotion WTVB01-485 vibration sensor
Follow the colours: red is power, dark grey is ground, blue is a signal.
12 V adapter for the sensor; the adapter is powered by USB.
vib_logger.pyimport csv, time, minimalmodbus
s = minimalmodbus.Instrument("/dev/ttyUSB0", 0x50) # port, address
s.serial.baudrate = 9600
s.serial.timeout = 0.5
# Registers from WitMotion's WTVB01 manual: velocity X/Y/Z (mm/s), temperature (C x100)
REG_VX, REG_TEMP = 0x3A, 0x40
with open("vibration.csv", "a", newline="") as f:
w = csv.writer(f)
while True:
try:
vx, vy, vz = s.read_registers(REG_VX, 3)
temp = s.read_register(REG_TEMP, signed=True) / 100
row = [time.strftime("%Y-%m-%d %H:%M:%S"), vx, vy, vz, temp]
w.writerow(row); f.flush()
print(row)
except Exception as e:
print("read error:", e)
time.sleep(1)
Check address and baud in WitMotion's software first, then swap A and B.
Check the scaling for each register in the manual for your firmware.
Normal during start-up; trend steady running values.
Standards such as ISO 10816 give limits by machine size; for small motors a few mm/s is normal.
Yes, with a MAX3485 module and ModbusMaster, as in the RS485 soil and CO2 projects.
Yes, give each its own address.
3 parts: WTMotion WTVB01-485 RS485 Vibration Sensor Adjustable Baud 4800–230400bps – Magnetic Attachment, USB to RS485 Converter Adapter and DC Power Adapter (5.5x2.1mm). 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 6 steps.
No. This page has the complete, tested code (vib_logger.py).
About ₹7,832 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Vibration velocity as a machine-health number; Modbus RTU from Python; Logging to CSV for trend charts.
Fit the sensor only when the machine is stopped and locked off; keep cables clear of moving parts.
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.