Introduction: The Muggle Wand

About: A harry potter fan engaged in science and technology

Guys how many of you have wanted to have a harry potter wand that really works?? I’m sure it is the dream of all the potterheads. But as per the current muggle technology it isn't possible to create wand that works entirely like a true one. But today we are going to make a partially working harry potter wand that is a mobile app. Don't worry if you are beginner to coding! we are using MIT app inventor which is block based and quite easy to use. And i am also going to include links to ready made one in Step 5.

We are going to use 4 basic spells here -

  1. Lumos (the lightning spell)
  2. Nox (the light extinguishing spell)
  3. Cantis (the music conjuring spell)
  4. Silencio (the silencing spell)

Let’s go!!

Supplies

Since this is an online coding based project it does not require much supplies. But you will need.

  • A computer/Laptop/Tablet
  • An android device
  • A stable internet connection
  • An appinventor.mit.edu account
  • and some basic knowledge of MIT app inventor

Step 1: Familiarising Yourself

Guys the first step is to familiarize yourself with MIT app inventor.

MIT app inventor is a block based online coding platform to build Android applications.

You need to know the following basics for this tutorial :

  • signing into MIT app inventor
  • accessing designer and blocks section
  • using design and block components
  • importing extensions and media

You may check the screenshot attached for understanding the interface

You may check out the following links for more

beginner's tutorial on MIT app inventor - here

MIT app inventor Wikipedia page - here

Step 2: UNDERSTANDING THE WORKING OF THE WAND

This step is not essential but i highly recommend reading it so that you can add custom spells to your mobile app after you get the hang of it.
Basically our mobile application will first recognize our voice. It will then process it and see if it matches any of the programmed spells. If it does then it will do the basic programmed functions like turning on a flashlight for the spell lumos.

Step 3: BUILDING THE APP

Open MIT App inventor and create a new project.

Now we will first use the designer option of the app inventor.
Import the flashlight extension which can be found here

The main components needed for the functioning of the app are Speech recognizer, a button,Flashlight and a player. You will also need to upload a sound/song in .mp3 format which can be played on saying the 'cantis' spell. Rename the song to 1 so that it may display it as 1.mp3

Remember these are the components for the 4 Basic spells that are Lumos, Nox, Cantis, Silencio. More spells mean more components.

Additional components like layouts should be used for aesthetic appeal. You may refer to the screenshots attached for better understanding.

Step 4: CODING THE APP

Program the app as shown in the images attached by opening the blocks section.After you are familiarized with the interface and working of the wand you may also add your custom spells. Info on what the blocks do can be found here

Step 5: DOWNLOADING THE APP

Now click on Build and then select Provide QR code for APK. Let the processing complete and then scan the QR code on your android device to download the app. After downloading install application on the device.

If the steps seem too complex then click on the links below to download the app.
Editable version (.AIA) here

Ready made version (.APK) here

Remember both these files are virus free and perfectly safe to download. Hence don’t worry.

Step 6: USING THE APP

To use the app click on the button and say the programmed spells to watch the magic happen.
Permissions may need to be granted for the first time.

And you have done it!

Any queries/suggestions can be posted in the comments section below!!

If i was able to help you please take a moment to vote this instructable in the contests.

Block Code Contest

Participated in the
Block Code Contest