Christmas Tech

Christmas is here! There are so many projects to try:

Micro:Bit Snowflakes

To decorate your windows!

You’ll Need:

  1. Micro:Bit (Preferably more than one)
  2. A Mac, PC or Raspberry Pi

Open Micro Bit Make Code and make a new project and name it: Christmas Snowflake.

Open the Radio menu:

Drag a ‘Radio Set Group’ block into ‘On Start’. Click the 1 on the ‘Radio Set Group’ block and type 100 in.

Now open the ‘Basic’ menu and drag a ‘Show String’ block in:

Replace ‘Hello’ with ‘Press A to start’

Next, you need to drag a ‘On Button Pressed’ in from the ‘Input’ menu:

Drag a ‘Radio Send Number’ block in from the Radio menu. Next you need to drag a ‘Show LEDs’ block from ‘Basic’ into the ‘Press Button’ block and create this pattern:

You have now completed the first piece of code! Now we need to create the slave code.

Create a new project and name it ‘Christmas Snowflakes Slave’.

Like before, put a ‘Radio Set Group’ block from the Radio menu in ‘On Start’ and set it to 100.

Next you must get a ‘On Radio Received’ block from the ‘Radio’ menu:

Drag a ‘Show LEDs’ block into the ‘On Radio Received’ block. Recreate the image as before:

You have now written the code. Click ‘Home’ in the top left of your screen. Enter the ‘Christmas Snowflakes’ code and click ‘Download’ in the bottom left of your screen and follow the instructions. For the other Micro:Bits repeat with the Slave code.

Wireless Speaker

For playing all your Christmas songs!

You will need:

  1. Raspberry Pi that’s been set-up (With WIFI or ethernet)
  2. Speakers with 3.5 Jack plug
  3. 3.5 MM Jack cable
  4. Apple device
  5. Ethernet cable (if needed)
  6. Raspberry Pi case (optional)

Open the command line on your Raspberry Pi and type or copy:

sudo apt install shairport-sync

That will install all the needed software to play music from your Apple device.

Open the Raspberry Pi settings and change the ‘Hostname’ to what you would like your speakers to be called (the default hostname is raspberrypi).

If you are using Command Line only enter: sudo raspi-config and select option 2: ‘Network Options’. Once you are in Network Options select N2: Hostname and follow onscreen instructions.

Play some music on your device and use AirPlay to play it through your speaker. Click here to find out how to. If the music is playing through your speakers (you may need to tell your computer to play JUST through your Raspberry Pi speakers) you have completed this week’s challenge. You can have an unlimited amount of speakers in your house. Bear in mind, the more speakers you add, the more congested (and thus slower) your internet will become.