Skip to content

ronibandini/UNOQOpenClawAntiOCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Stove safety checker with Arduino UNO Q and OpenClaw

1small

AI stove safety checker using Arduino UNO Q, OpenClaw, computer vision, and an MQ-2 gas sensor.

status platform ai


Overview

In countries where gas stoves are common, a frequent OCD-related behavior is repeatedly checking stove knobs before sleeping or leaving home.

This project combines:

  • Computer vision
  • Gas sensing
  • Natural language interaction
  • Linux + MCU hybrid processing

to create an AI-powered stove monitoring device.

The system checks whether stove knobs appear closed and cross-validates the result using a gas sensor.

The result is delivered through Telegram or WhatsApp in plain language.

Example:

"The stove appears to be off. Gas levels are normal."


Features

  • πŸ”₯ Detects possible open stove knobs using AI vision
  • πŸ§ͺ Cross-checks with MQ-2 / FC-22 gas sensor
  • πŸ€– Natural language interaction through OpenClaw
  • πŸ“· USB webcam support
  • πŸ“‘ Telegram or WhatsApp integration
  • 🧠 Optional offline ML model via Edge Impulse
  • ⚑ Uses Arduino RouterBridge between Linux and MCU
  • 🟩 Compatible with Arduino ecosystem

Hardware

Main board

  • Arduino UNO Q (4 GB recommended)

The UNO Q contains:

Processor Purpose
STM32U585 MCU Real-time sensor handling
Qualcomm DragonWing QRB2210 MPU Debian Linux + AI agent

This allows Linux applications and real-time microcontroller tasks to run simultaneously.


Parts List

Part Qty
Arduino UNO Q 1
USB webcam 1
USB-C hub with power delivery 1
MQ-2 / FC-22 gas sensor 1
Female-male jumper wires 3

Wiring

UNO Q MQ-2
A0 AOUT
5V VCC
GND GND

How It Works

The device uses two independent methods:

1. Vision analysis

A webcam captures the stove knobs.

OpenClaw analyzes the image using a vision-capable AI model to determine whether knobs appear open or closed.

2. Gas sensing

An MQ-2 sensor measures combustible gas concentration.

The sensor acts as a secondary validation layer.


Gas Sensor Calibration

MQ-type sensors require calibration.

A fixed threshold is unreliable because readings vary due to:

  • Temperature
  • Humidity
  • Sensor tolerances
  • Altitude

Recommended process:

  1. Power the sensor for at least 2 minutes
  2. Measure clean-air baseline for 60 seconds
  3. Average the readings
  4. Trigger alerts above ~130% of baseline

Adjust sensitivity depending on environment.


RouterBridge Example

Arduino side

#include <Bridge.h>

int readSensor() {
    return analogRead(A0);
}

void setup() {
    Bridge.begin();
    Bridge.provide("readSensor", readSensor);
}

void loop() {
    delay(100);
}

Python side

from arduino.app_utils import Bridge

value = Bridge.call("readSensor")

print(value)

The RouterBridge transparently handles RPC communication between the MCU and Linux processors.


Software Setup

1. Configure Wi-Fi and SSH

Install Arduino App Lab and configure:

  • Wi-Fi
  • Password
  • SSH access

SSH example:

ssh arduino@BOARDNAME

2. Install OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash

3. Install Webcam Utilities

sudo apt-get update -y
sudo apt-get install -y fswebcam v4l-utils
sudo usermod -aG video arduino

4. Test Webcam

fswebcam -d /dev/video0 -r 1280x720 --no-banner test.jpg

Telegram Setup

  1. Open Telegram
  2. Search for @BotFather
  3. Run /newbot
  4. Save the token
  5. Start the bot
  6. Get your chat ID from @userinfobot
  7. Configure OpenClaw

Example Commands

Is the stove off?
Did I leave the gas on?
Check the burners.
Check the knobs before sleep.

Offline ML Option

For fully offline inference:

  • Train a model using Edge Impulse
  • Use kitchen-specific images
  • Deploy locally on the UNO Q

Advantages

  • No Internet dependency
  • Environment-specific training

Disadvantages

  • Model training required
  • More deployment complexity

Possible Improvements

  • Historical logs
  • Local-only inference

3D Printed Enclosure

A basic enclosure is included.

Features:

  • Tripod mount
  • Front-facing camera position
  • MQ-2 mounting support

Recommended material:

  • PLA
  • Supports enabled

Disclaimer

This project is experimental.

It should not be considered a certified gas safety device.

Always follow proper gas safety practices.


References


License

MIT

About

Anti-OCD Stove Checker with Arduino UNO Q and OpenClaw

Topics

Resources

License

Stars

3 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages