Many occasions whereas giving shows to an enormous viewers, we’d like the assistance of a keyboard or mouse to navigate by way of completely different slides. However it isn’t simple to make use of and appears a bit odd as effectively. 

So right this moment we are going to make a gesture-based sensible HID gadget that permits you to management your PC or laptop computer whereas giving a presentation or previewing slides. This gadget additionally lets you play, pause and skip songs and movies utilizing hand gestures. One other finest a part of this gadget is that it’s contactless so you possibly can management the PC even when your arms are messy.

So let’s begin the venture.

Invoice Of Materials

Coding

To begin with, set up the library for sensors in order that we will retrieve the info from gestures. Right here we’re going to use the APDS 9960 gesture sensor. Within the Arduino IDE, set up the library utilizing the next steps:

Sketch → Library supervisor → Search APDS9960 → Set up

After putting in the library, you can begin coding.

First embody the keyboard library in order that the HID functionality of Arduino Professional Micro can be utilized. 

Additionally embody the Arduino APDS9960 library within the code. 

Subsequent, create the setup perform with which a two-wire communication for APDS9960 and keyboard for HID may be established.

Now create a loop perform for checking the hand gestures. Utilizing completely different switches/keys, set the actions for various gestures. For example, right here, I’ve used the left arrow to set the HID motion for the left gesture. So, each time we give a left gesture, the PPT slides or photos are moved to the following. On this approach, we will set the HID motion for different gestures as effectively to carry out varied features resembling play, pause, subsequent, skip and so forth.  

Connection 

After importing the code, join the parts as proven within the following diagram: 

Testing 

Open any PPT slides or photos to preview. Plug the gadget into the pc and watch for a number of seconds. After that, utilizing hand gestures, you possibly can transfer the PPT slides forwards or backwards as per your alternative. 

Now you can provide a presentation with none difficulties.

Code