Wireless Tripwire with Machine Vision

A wireless "tripwire" that switch your desktop app when motion is detected

Similar projects worth following
Wanna slack off abit in office but scared to be busted? Here is the all-in-one wireless tripwire that help you switch your computor program when motion is detected! Best of all, it uses MicroPython to program OpenMV so you can even add some "whitelist" using face recognition, and it also use RTL8722DM_MINI as the Bluetooth Keyboard, so you can even trigger a custom script upon motion detected~😎

A summary:

A hearty combination of "Machine Vision" and "Bluetooth HID" function yields this "Office Tripwire" device.

How it works:

Essentially, it works by letting the OpenMV device to constantly comparing the current frame captured with the last frame, if the difference is greater than a set threshold, then a signal will be generate on a GPIO pin to alert the Ameba (AMB23 RTL8722DM), which then functions as a bluetooth keyboard and send a "Alt + Tab" keystroke over bluetooth to the connected device whose primary program will be switch to the next program.

Future Improvement:

The same function can be achieved by just using a PIR sensor. However, with OpenMV, you may add in a hint of AI by enabling the Face Recognition feature on OpenMV, then this device could potentially only triggers when a face that is not on the whitelist  is detected, making it actually useful and fun.

ino - 1.31 kB - 01/28/2022 at 10:36


  • 1 × Ameba AMB23 RTL8722DM
  • 1 × OpenMV module

View all 3 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates