Code Monkey home page Code Monkey logo

anti-infiltrator's Introduction

Are you worried your boss will catch you watching YouTube during work hours? If so, here's a setup for you!

This program will return you to your desktop when a distance sensor is triggered. This way, to a third party, it would appear that you were just passionately inspecting your wallpaper.


Using the program

This program has two parts: the code running on the Arduino and the code running on your PC.

Arduino

  • Requires an Arduino UNO or an equivalent microcontroller and a HC-SR04 sensor. Connect like below.

  • Using the Arduino IDE or the PlatformIO IDE VSCode extension, open the /src/distanceReporter.cpp file and upload it to the board. Position the board by your door.

Contraption anatomy

Python

  • Must have Python installed.

  • Requires the pyserial and the pynput libraries.
    Run python -m pip install -r requirements.txt to install them.

  • Open the receiver.py file or run python /src/receiver.py to run the receiver program.

anti-infiltrator's People

Contributors

mateimarica avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.