Presentation Magic Wand With Arduino

by acezxn in Circuits > Arduino

1389 Views, 1 Favorites, 0 Comments

Presentation Magic Wand With Arduino

螢幕快照 2020-05-29 下午2.55.51.png
Presentation Magic Wand Using Arduino Nano 33 IoT

This device is intended to be used in a presentation to extend the presenter's access to the computer utilities without directly control the computer using a mouse or a keyboard. By swiping the magic wand in many different ways, the presenter is able to toggle a computer's workspace (screens), switch presentation pages, and execute up to two customized system commands. It also draws interest from the audience and creates fun.

How it works and how to use it:

When the magic wand power-up, the magic wand creates an access point called "Wand_presentation." To get access to the magic wand's LAN, connect to the access point with password "Wand123456." The magic wand also creates a TCP socket server with an IP of 192.168.4.1, To connect to the TCP server, executing the python client program is required. Once execute the python client program, it will ask to configure custom commands. Configure custom commands by entering the desired corresponding system commands, and the client will start connecting to the TCP server. If the magic wand is connected to the client running the python program, the LED on the tip of the magic wand will shine green. Finally, swipe a few times to verify, and you're good to go.

1. Connect to "Wand_presentation" from WIFI list in your computer GUI, enter password "Wand123456"

2. Run python client program

3. Configure first system command (the command that triggers when you swipe the magic wand two times)

4. Configure first system command (the command that triggers when you swipe the magic wand three times)

5. Swipe a few times once connected to verify the response. Your computer should switch workspace once you swipe it left or right.

How to use while presenting:

Swipe left: switch the workspace (screen) right

Swipe right: switch the workspace (screen) left

Swipe up: press and leave space button once

Swipe down x1: press and leave left button once

Swipe down x2: execute custom command 1

Swipe down x3: execute custom command 2

Materials:

1x Arduino nano 33 iot

1x short micro-USB to USB wire

1x RGB LED

1x single-celled NCR18650B battery power supply

wires

3D printed shell

Prepare Your Software

Arduino code: https://create.arduino.cc/editor/acezxn/e4c24104-e688-4dd5-8208-e558db642682/preview

Github: https://github.com/acezxn/Magic_wand

1. Open a terminal window, type the following commands:

git clone https://github.com/acezxn/Magic_wand.git

mv Magic_wand.git ~/Documents/Arduino/

2. Using Arduino editor, upload the code using either the online editor or offline editor

3. if you can not import pyautogui in the python program, run "pip install pyautogui" in terminal.

Creating the Circuit

螢幕快照 2020-05-19 下午8.30.47.png

Printing and Assembling the Shell

IMG_1074.jpg
IMG_1075.jpg
IMG_1076.jpg
IMG_1079.jpg
IMG_1080.jpg
IMG_1082.jpg
IMG_1083.jpg
IMG_1084.jpg
IMG_1087.jpg
IMG_1088.jpg
IMG_1089.jpg
IMG_1090.jpg
IMG_1131.JPG

Making the outer shell:

Using a 3D printer, print out the following stl files:

R5 x1

R6 x1

R7 x1

R8 x1

R9 x1

R10 long x1

R10 short x2

R11 x 2

R11 bumped x1

https://drive.google.com/drive/folders/1HCB-NytOKE...