We developed a 3D gesture based presentation pointer for presenters using an IMU and NodeMCU.
The code utilizes filters in order to generate an accurate pose from the users hand orientation. Tweaking may be required to suit the code to your application.
This was done for the EE-221 Electronic Devices course at IIT Gandhinagar.