Sometimes slacking off is refreshing, but continuously slacking off is even better!
Materials List
-
DFRobot Leonardo & Xbee R3
-
Gravity: Digital Wireless Switch (433MHz)
-
Gravity: 3-80cm Infrared Digital Obstacle Avoidance Sensor
-
Gravity: Digital Vibration Sensor (Arduino Compatible)
-
NOT Gate

Circuit Connection






Key Functions
Keyboard.press()
Select the keys you need to use:
Keyboard.press(KEY_LEFT_ALT);
Keyboard.press(KEY_TAB);
Keyboard.releaseAll()
Release the keys to simulate pressing combination keys:
Keyboard.releaseAll();
Usage Testing
When the transmitter detects someone passing by, the receiver automatically switches the screen.

When the vibration sensor is hit, the Leonardo simulates pressing the enter key.

Watch the effect:
Click to see the effect👆
Wake up, friend, you can’t really believe this, right?
Slacking off at work, and the boss is shouting dismissal!!! But I’m not afraid of being fired; I can go work in a factory, I have connections.
Source | DF Maker Community
Statement: The article is reproduced from the internet, and copyright belongs to the original author! If it involves your copyright, please contact us for deletion!
Recommended Reading:
Resistors: Call us resistors, this is an ancient grievance, more unjust than Dou Er
Can you distinguish between SPI, I2C, UART, I2S, GPIO, SDIO, CAN?
Is domestic TP-Link better than foreign? Once taken apart, it’s really fragrant…
Follow our public account for new knowledge every day!
👇