Jedi Academy With Micro:bit!

by Elenavercher in Teachers > Science

2049 Views, 16 Favorites, 0 Comments

Jedi Academy With Micro:bit!

Jedi Lightsaber with Micro:bit and Tinkercad
IMG_BF45D3C46912-1.jpeg
Screenshot 2021-10-11 at 13.26.05.png
IMG_6557.jpg
Prova bona eleJedi LightSaber.png

The Jedi Academy were a series of projects that we created to work with the students' feelings and practise their use of English as a Foreign Language. It includes Math, Language, Science and Arts activities.

We created the Jedi Academy to deal with some problems that the students were facing at home, so we created Jedi Code posters where we stated that those people that left us where still in the Force (which was thinking that the knowledge and experiences that we lived with them will always stay within us), also that there is no ignorance, there is knowledge... And the best part of the project was inside the Science subject where we designed a Lightsaber in Tinkercad and build it using Cura and a 3D printer

Supplies

microbit.png
Screenshot 2021-10-13 at 18.10.06.png
Screenshot 2021-10-13 at 18.10.21.png
IMG_6557.jpg

As seen in the pictures:

- Micro:bit V2

- Addressable led lights (WS2812E)

- Transparent PVC tube

- 3d printer and filament

Watch the Trailer and Create Your Jedi Code Poster

IMG_6826.jpg
IMG_5670.jpg
IMG_5667_censored.jpg
download (5).png

Before starting the Jedi Academy, we will watch this trailer with the Jedi Code and decide the aspects that we will use to create our own code, the colours of our Force and, if we've got time we will colour some pixel art related to Star Wars with operations: multiplications, divisions, etc. Here is a link with some worksheets to colour and also the trailer.

Design the Lightsaber in Tinkercad

Prova bona eleJedi LightSaber.png
IMG_6561.jpg
IMG_6557.jpg

In this step, we will design the physical lightsaber that will contain the micro:bit when being used.

Using different forms

Here is an example of the lightsaber we created using Tinkercad and then exported it using Ultimaker Cura to print it.

Create the Code for the Addessable LED Lights in Makecode

cbeiulzkyrdxzj8mm85y.png

Using the library named as Neopixel, we can code the lightsaber so that it will bright more when it is shaken, or when someone has hit it, using the V2 of the micro:bit and its touch sensor. We created a function called "The Force" for when it was shaken, so that it would be called when shaken.

  1. The first part to create the coding part is to decide whether it will be activated with an input (Pressing button A...), when starting the micro:bit or as a never ending program.
  2. Then, we need to set the LED strip in the pin we will be using and also the number of LED lights we have.
  3. After that, we need to use condition blocks to decide when the different animations will be happening, for example:
  4. If the logo is pressed, show a rainbow.
  5. If the A button is pressed, turn the LEDs blue.
  6. If the lightsaber is shaken, make the LEDs rotate by 1 and repeat it several times so that it will create an animation.

Remember you can add as many conditions as inputs you have, so that will define your force. Here attached you will find an example of the HEX code.



Your imagination is the limit!

Build the Lightsaber

IMG_6769.jpg
IMG_6799.jpg
vnnzwsgkaat1d8xccw21.jpeg
IMG_7F3584B3B566-1.jpeg

Once the code has been created now it's the time to build it using the PVC tube and the printed part, paint it and use it.

May the force be with you!