How to Create a DIY Screen Switching Tool

Follow+Star Public Account Number, don’t miss wonderful content

How to Create a DIY Screen Switching Tool

Source | DF Maker Community

Sometimes slacking off is refreshing, but slacking off all the time is even better!

Who can withstand the work modes of “996” or “715”? Even the donkeys in the production team wouldn’t dare to do that; donkeys need rest too. Proper rest can recharge the brain, allowing us to face more challenges and complete work more efficiently.

How to Create a DIY Screen Switching Tool

When we are surfing the internet and relaxing our brains (not just looking at legs, ahem), we need a colleague to help watch the boss. Even if the colleague is very reliable and reminds us on time, we still need to manually operate the keyboard to switch screens, which is not only unintelligent but also very dangerous.
So, I realized that I needed to do something…

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

How to Create a DIY Screen Switching Tool
DFRobot Leonardo
The Leonardo uses an independent USB-Serial conversion chip and a single-chip Atmega32u4 to achieve USB communication and control. The native USB support of Atmega32u4 allows Leonardo to simulate a mouse and keyboard.

Circuit Connection

How to Create a DIY Screen Switching Tool
How to Create a DIY Screen Switching Tool
Put the sensor transmitter into the box (you can cut the wires and re-solder them to reduce the size significantly).
How to Create a DIY Screen Switching Tool
How to Create a DIY Screen Switching Tool
Wrap it with stickers (instantly upgrades its style).
How to Create a DIY Screen Switching Tool
Connect the receiver to the computer:
How to Create a DIY Screen Switching Tool

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.

How to Create a DIY Screen Switching Tool

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

How to Create a DIY Screen Switching Tool

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 ————

How to Create a DIY Screen Switching Tool

●Column “Embedded Tools

●Column “Embedded Development”

●Column “Keil Tutorial”

●Selected Tutorials from the Embedded Column

Follow the public account Reply “Join Group” to join the technical exchange group according to the rules, reply “1024” to see more content.

How to Create a DIY Screen Switching Tool

How to Create a DIY Screen Switching Tool

Click “Read Original” to see more shares.

Leave a Comment

×