Follow+Star Public Account Number, don’t miss wonderful content
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)
-
NOR 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 the combination keys:
Keyboard.releaseAll();
Usage Test
When the transmitter detects someone passing by, the receiver automatically switches the screen.

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

Watch the effect:
Click to watch the effect👆
Wake up, friend, you can’t really believe this, right?
Slacking off at work, and the boss shouts to fire you!!! But I’m not afraid of being fired; I can go work in a factory and screw bolts, I have connections.
———— END ————

●Column “Embedded Tools“
●Column “Embedded Development”
●Column “Keil Tutorial”
●Selected Tutorials from the Embedded Column
Click “Read Original” to see more shares.