Warning: Cannot modify header information - headers already sent by (output started at /usr/share/nginx/wordpress_sites/aptanet_org-codeclub/wp-content/themes/blogus/inc/ansar/font/font.php:1) in /usr/share/nginx/wordpress_sites/aptanet_org-codeclub/wp-includes/feed-rss2.php on line 8
Mr Tansom – Morelands Code Club https://codeclub.aptanet.org Morelands Primary School Thu, 28 Mar 2019 14:35:20 +0000 en-GB hourly 1 https://wordpress.org/?v=6.9.11 59665447 Week Seven (Spring 2019) https://codeclub.aptanet.org/2019/03/week-seven-spring-2019/ https://codeclub.aptanet.org/2019/03/week-seven-spring-2019/#respond Thu, 28 Mar 2019 14:35:19 +0000 http://codeclub.aptanet.org/?p=265 Oh no, the last one!

Last week we had some great projects from catching snowflakes to sending Micro:bit messages, and from telling stories to rewriting projects in a slightly different way.

So to finish up, see what interesting project you can come up with, using either Scratch or the Micro:bit.

You can use the links from previous weeks for inspiration, but here are the links to the two editors:

Scratch Website: https://scratch.mit.edu/

New Micro:bit Block Editor: http://jumpto.cc/pxt-new

When we wrap up at the end, remember you can keep coding on your own. Imagine what you want to do and then experiment to work out how to do it.

]]>
https://codeclub.aptanet.org/2019/03/week-seven-spring-2019/feed/ 0 265
Week Six (Spring 2019) https://codeclub.aptanet.org/2019/03/week-six-spring-2019/ https://codeclub.aptanet.org/2019/03/week-six-spring-2019/#respond Thu, 21 Mar 2019 14:42:15 +0000 http://codeclub.aptanet.org/?p=256 This week I’m going to make a few suggestion for ways you can modify some of our previous projects.

Rock, Paper, Scissors – The Next Generation

The first one is for the Rock, Paper, Scissors project. It was written using an older version of the Micro:bit Blocks Editor. Some of the blocks have changed in the new one, so can you use the instructions (below), but actually write the project in the new editor? What has changed?

Rock, Paper, Scissors project: https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/

New Micro:bit Block Editor: http://jumpto.cc/pxt-new

Random Number Sender – With Messages

The second one is for the Random Number Sender project. The original generates a random number and sends it to another Micro:bit, so can you adapt it to send a message? Hint: you don’t need to generate a number, and instead of using a number you are sending a string of characters.

Random Number Sender project: https://codeclub.aptanet.org/2019/01/random-number-sender/

New Micro:bit Block Editor: http://jumpto.cc/pxt-new

Create an Animated Story

Use Scratch to create and animated story, a bit like a cartoon perhaps. You could make the sprites move around and use say to get them to talk to each other with speech bubbles. This one isn’t as much modifying a previous project, but you might find some useful hints in the Chatbot project.

Scratch website: https://scratch.mit.edu/

If you need any of the previous weeks links they are still available on each weeks page.

]]>
https://codeclub.aptanet.org/2019/03/week-six-spring-2019/feed/ 0 256
Week Five (Spring 2019) https://codeclub.aptanet.org/2019/03/week-five-spring-2019/ https://codeclub.aptanet.org/2019/03/week-five-spring-2019/#respond Thu, 14 Mar 2019 14:53:07 +0000 http://codeclub.aptanet.org/?p=223 Here are some useful links for this week:

For those sticking with Scratch:

If you are doing Scratch, here is a link to the website that will open in a new tab. If you can’t remember your login I have details of the club ones you can use.

https://scratch.mit.edu/

The Rock Band project:

https://projects.raspberrypi.org/en/projects/rock-band

The Chatbot project:

https://projects.raspberrypi.org/en/projects/chatbot

If you are doing a Micro:bit project:

Once you have tested the project and got it working you can download it onto one of our Micro:bits for a real life test.

Rock, Paper, Scissors

https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/

Note that this project uses the old Micro:bit block editor. See if you can work out how to adapt it to the new one.

Once you have completed the Random Number Sender below you could also adapt this one to play against another Micro:bit by sending messages between them.

Random Number Sender

https://codeclub.aptanet.org/2019/01/random-number-sender/

You will need to work in pairs for this one, with two Micro:bits.

Can you adapt the project to work with more Micro:bits and send the number to a random one?

]]>
https://codeclub.aptanet.org/2019/03/week-five-spring-2019/feed/ 0 223
Week Four (Spring 2019) https://codeclub.aptanet.org/2019/02/week-four-spring-2019/ https://codeclub.aptanet.org/2019/02/week-four-spring-2019/#respond Thu, 28 Feb 2019 14:52:23 +0000 http://codeclub.aptanet.org/?p=214 Here are the links for this week. As ever, if you are still exploring or extending a previous weeks project feel free.

We have some Micro:bits available to test the following projects on once you have got them working in the online editor.

Rock, Paper, Scissors

https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit

Note that this project uses the old Micro:bit block editor. See if you can work out how to adapt it to the new one.

Once you have completed the Random Number Sender below you could also adapt this one to play against another Micro:bit by sending messages between them.

Random Number Sender

https://codeclub.aptanet.org/2019/01/random-number-sender

You will need to work in pairs for this one, with two Micro:bits.

Can you adapt the project to work with more Micro:bits and send the number to a random one?

For those sticking with Scratch:

If you are doing Scratch, here is a link to the website that will open in a new tab. If you can’t remember your login I have details of the club ones you can use.

https://scratch.mit.edu/

Here is a link to the Boat Race project:

https://projects.raspberrypi.org/en/projects/boat-race

]]>
https://codeclub.aptanet.org/2019/02/week-four-spring-2019/feed/ 0 214
Week Three (Spring 2019) https://codeclub.aptanet.org/2019/01/week-three-spring-2019/ https://codeclub.aptanet.org/2019/01/week-three-spring-2019/#respond Thu, 31 Jan 2019 14:53:25 +0000 http://codeclub.aptanet.org/?p=207 Here are some useful links for this week:

If you are doing Scratch, here is a link to the website that will open in a new tab. If you can’t remember your login I have details of the club ones you can use.

https://scratch.mit.edu/

Here is a link to the Boat Race project:

https://projects.raspberrypi.org/en/projects/boat-race

There are two Micro:bit projects you could try.

Rock, Paper, Scissors

https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/

Random Number Sender

With this one you will need to work with somebody else using two Micro:bits so you can send the number from one to the other.

https://codeclub.aptanet.org/2019/01/random-number-sender/

]]>
https://codeclub.aptanet.org/2019/01/week-three-spring-2019/feed/ 0 207
Random Number Sender https://codeclub.aptanet.org/2019/01/random-number-sender/ https://codeclub.aptanet.org/2019/01/random-number-sender/#respond Thu, 31 Jan 2019 14:41:52 +0000 http://codeclub.aptanet.org/?p=200 Random Number Sender for the BBC Micro:bit
  • First, head to https://makecode.microbit.org/#editor
  • You will now have the code editor ready to use, so let’s get started. When we start we want to set a ‘radio group’ and show a tick so we know the Micro:bit is ready to go. In the ‘on start’ block add the blocks shown below:
Set Radio

Now we need a large block which does several things, and keeps doing them forever. You will put these blocks into the ‘forever’ block. This is what they do:

  • if button A is pressed (button A is the left one)
    • pick a random number between 0 and 9 and keep it safe in a variable
    • send the random number over the radio
    • show the number on the display (so we know what it was
    • pause for 2 seconds
    • set the display back to the tick so we are ready for the next one
Send Number

So each Micro:bit can receive the numbers as well as send we need a block for that. It uses an ‘on radio received’ block to show the number for 2 seconds and then wait for another.

Receive Number

Here are some things to try:

What happens if you change the number in the ‘radio set group’ block?

Can you send a message instead of a number?

]]>
https://codeclub.aptanet.org/2019/01/random-number-sender/feed/ 0 200
Week Two (Spring 2019) https://codeclub.aptanet.org/2019/01/week-two-spring-2019/ https://codeclub.aptanet.org/2019/01/week-two-spring-2019/#respond Thu, 24 Jan 2019 14:42:51 +0000 http://codeclub.aptanet.org/?p=194 Week two already, and since we have a mix, with some who have done Code Club before and some who are new, here is a choice of things to do:

If you are doing Scratch, here is a link to the website that will open in a new tab. If you can’t remember your login I have details of the club ones you can use.

https://scratch.mit.edu/

You can either carry on with the Lost in Space project if you didn’t finish last week:

https://projects.raspberrypi.org/en/projects/lost-in-space

Or you you can try a Boat Race one, which is hopefully something different to what you are doing with Scratch in class:

https://projects.raspberrypi.org/en/projects/boat-race

For those who are familiar with Scratch already from Code Club, you can try a Micro:bit Rock, Paper, Scissors project. No need for Scratch, but it does look fairly similar. Once you have got it working and tested on the computer I have some Micro:bits you can try downloading it onto:

https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/

]]>
https://codeclub.aptanet.org/2019/01/week-two-spring-2019/feed/ 0 194
Week One (Spring 2019) https://codeclub.aptanet.org/2019/01/week-one-spring-2019/ https://codeclub.aptanet.org/2019/01/week-one-spring-2019/#respond Thu, 17 Jan 2019 14:54:36 +0000 http://codeclub.aptanet.org/?p=188 Welcome to week one of Morelands Code Club for the 2019 Spring term.

To save you typing them, here are the links you will need today:

Here is the link to Scratch, which will open a new tab (look along the top and you should see it appear). You will need your account so you can save your project:

https://scratch.mit.edu/

Here is the project link. We will work through this together:

https://projects.raspberrypi.org/en/projects/lost-in-space

]]>
https://codeclub.aptanet.org/2019/01/week-one-spring-2019/feed/ 0 188
Rock, Paper, Scissors for the Micro:bit https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/ https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/#respond Tue, 06 Feb 2018 14:42:10 +0000 http://codeclub.aptanet.org/?p=119 Rock, Paper, Scissors for the BBC Micro:bit
  • First, head to http://jumpto.cc/pxt-new
  • You will now have the code editor ready to use, so let’s set an image for the start of the game. Drag a show leds box across into the start block.

Start image
Start image
  • We are going to shake the Micro:bit to tell it to choose between Rock, Paper and Scissors, so find and on shake block. Inside that we need to set a variable to a random number between 0 and 2 (remember variables from our Scratch projects).

  • Random number on shake
    Random number on shake
  • Depending on which number was chosen we want to show a different image. A 0 is going to be a Rock, so we need an if-then-else block. Look in the logic section to find a way to compare the variable (item) with 0, and then draw a picture of a Rock in a show leds block.

  • Is it a Rock?
    Is it a Rock?
  • We are still left with two more options, Paper or Scissors, so we need to have another if-then-else block in the else part of the block we’ve just added. This time we will check to see if item is 1 and draw a picture of a piece of Paper.

  • Is it Paper?
    Is it Paper?
  • There are only 3 options, so for our simple project we can assume that if it isn’t Rock or Paper then it must be Scissors (with bigger projects be careful about making assumptions!), so put a show leds block in with an image of some scissors.

  • It must be Scissors
    It must be Scissors
  • To finish off we need to wait for a while to see which item has been chosen and then reset the image to the one we used at the start – why do you think that is a good idea?

  • Wait and reset
    Wait and reset
  • Once you’ve tested your project try clicking on the Javascript {} button at the top. This is the same project, but showing the Javascript code behind the blocks.
  • ]]>
    https://codeclub.aptanet.org/2018/02/rock-paper-scissors-microbit/feed/ 0 119
    Welcome https://codeclub.aptanet.org/2017/12/welcome-2/ https://codeclub.aptanet.org/2017/12/welcome-2/#respond Mon, 11 Dec 2017 00:40:23 +0000 http://codeclub.aptanet.org/?p=80 Morelands Code Club is all about having fun being creative with computers. It is educational, but it is more about inspiring the children to be explore for themselves than working with a lesson plan – it is an after school club after all. We have run since 2012, but unfortunatly we had a break last year (there was a lot going on at Morelands, and the computers weren’t together and the laptop batteries were tired after a hard days work!).

    What sort of things do we do? Well Scratch is probably the main one. This is a programming language that allows you to create things by dragging coloured blocks around to tell the computer what you want to do. These are two games created by some past attendees:

    Electrick Maze

    Guide the cat through the maze avoiding the obsticles – completely from the imagination of Matthew who created it. You can try it out at: https://scratch.mit.edu/projects/16878140/

    Maze

    A three player game where two try to stop the third getting to safety – completely from the imagination of Charlie who created it. You can try it out at: https://scratch.mit.edu/projects/16877567/

    Where we have been able to carry on into extra terms we have also explored HTML, to create web pages, and Python, where you can do more, but type in the commands. I have also brought in Raspberry Pi computers and netbooks with a robotic arm, and a matrix of coloured lights that can be controlled from Python.

    Robotic Arm
    ]]>
    https://codeclub.aptanet.org/2017/12/welcome-2/feed/ 0 80