Source | DF Maker Community
Sometimes slacking off is refreshing, but slacking off all the time 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 keys and simulate pressing a combination of keys:
Keyboard.releaseAll();
Usage Testing
When the transmitter detects someone passing by, the receiver automatically switches the screen.

When the vibration sensor is tapped, Leonardo simulates the Enter key.

Watch the effect:
Click to see the effect👆
Wake up, buddy, you can’t really believe this, right?
Slacking off at work, the boss shouts to fire you!!! But I’m not afraid of being fired; I can go work in the factory, I have connections.
———— END ————
More
-
Step-by-step guide to building an ARM Cortex-M3 soft core on FPGA
-
Everyone says FPGA is advanced; what can it actually do?
-
How to create a high-efficiency Verilog editor
-
How to write maintainable Verilog code?
-
This Verilog syntax you definitely don’t know