Information and Links for 06-Mar-2021

Hello again everyone.

Here are all the links and information you will need for this week’s session. If you find you are having problems joining your group, please email us at coderdojoathenry@gmail.com.

For the Explorers, here is the link for the Teams Meeting: Click here to join the meeting. You can see some of the Explorers’ work by logging into their Scratch account using the username: AthenryExplorers and the password: Explorers.

You can join Oliver and the Advancers here: Click here to join the meeting. You can also see some of the Advancers’ work by logging into their Scratch account with username: AthenryAdvancers and  password: Advancers.

You will find the worksheet, some code and images for the Bodgers group on Dropbox here: https://www.dropbox.com/sh/nq1x67r1xu1mj4m/AABAnhMbJbDpllPoAXsAlEdwa?dl=0 and here is my meeting link: Click here to join the meeting.

You can find Kieran’s video from the last session here: https://coderdojoathenry.org/2021/02/28/modelers-box-modelled-car-part-2-week-10/ and you can join this week’s Modellers session by following this link: Click here to join the meeting.

The Hackers group for older Ninjas is continuing this week with Michael and Kevin, you can join their meeting here: Click here to join the meeting.

Looking forward to seeing you all.

Declan and the CoderDojo Athenry Mentors.

Tips for CoderDojo Athenry Online Sessions

Using Teams

We are using Microsoft Teams. Each week, we will post links on the CoderDojo Athenry website and Facebook. Here is are the links for 21 November: Information and Links for week 2 | CoderDojo Athenry

When you are using Teams, please keep your microphone off unless you need to ask a question. You can have your webcam on or off, whichever you prefer.

Here are the main buttons you might need:

Two Screens

It is much easier to follow the session if you have two screens, one for the Teams window and one for your own code. Here are two ways to do this:

  1. If your laptop has a HDMI port, you could connect it to a TV with a HDMI cable, or you could connect a spare computer monitor if you have one. Then press Windows and P, and select Extend. Then you can have different windows in each screen.
  2. You could use your laptop for your own code, and connect to the Teams session with a separate phone or tablet.

Asking Questions

As well as the main mentor leading the Teams session, we have other mentors who can answer your questions at any time.

Either: press the Chat button and type your question

Or: press the Raise Hand button and wait for the mentor

If Chat Does Not Work

If you get an error when you try to press the Chat button, it might be because you are logged into a work or school Teams account that has chat restrictions. If so, here is a solution:

  • Press Leave to leave the CoderDojo session
  • Sign out of Teams – click on your picture in the top right corner to open a menu, and Sign Out is at the bottom of the menu
  • Click on the link to join the CoderDojo session again, and this time join as a guest without logging into your school/work account.

CoderDojo Athenry Information Session 07-Nov-2020

Hello again everyone.

It was great to speak to you all last Saturday.

Here are some notes with information all about CoderDojo Athenry in PDF form.

Here’s a quick recap of everyone’s notes;

Martha told us all about the Explorers group, you can contact Martha at Martha@coderdojoathenry.onmicrosoft.com and you can find her slides here.

Oliver spoke about the Advancers group and you can contact Oliver at Oliver@coderdojoathenry.onmicrosoft.com

I talked about the Bodgers group, you contact me at Declan@coderdojoathenry.onmicrosoft.com and you can read all about the Bodgers group here.

Kieran then spoke about the Modellers group. Here is his presentation.

Kieran can be contacted at Kieran@coderdojoathenry.onmicrosoft.com.

Finally Michael spoke about the Hacker Group which will be starting in the new year. Here are his slides

Mike’s email is, yes you guessed it is, Mike@coderdojoathenry.onmicrosoft.com

We will be posting information for our first session next Saturday in the next day or two, so keep an eye out for that.

Looking forward to seeing you all again next Saturday.

Declan and the CoderDojo Athenry Mentors

Mario – Scrolling Backgrounds

Hi everyone

Hope you are keeping safe and healthy. Its lovely weather at the moment so I guess you are outside as much as you can. So when the rain appears again ,maybe you can take a look at this video.

Sorry it took me so long to get another one done, but its up now. Video

Martha

 

COVID19 (coronavirus) Update

Hi All

As you all know Clarin College is closed until at least 29-Mar-2020, as a result we will not be able to run CoderDojo Athenry until the school reopens.

The CoderDojo Foundation have also announced that the Coolest Projects Showcase that was scheduled to take place on 06-Jun-2020 in the RDS has been cancelled. 

We will keep you updated by email, on Facebook, Twitter and here if the situation changes.

Enjoy St.Patrick’s weekend.

Declan

Advancers – Piano

We started with a basic plan:

  • 1 Piano Sprite
  • 3 Button Sprites
    • Record
    • Stop
    • Play
  • A list to store all the possible Piano notes.
  • A list to store the tune being played.

Luckily Scratch comes with a Piano Sprite, which we used and expanded it to fill the width of the screen.

PianoSprite

Next step was to create the list of all the notes, there are 14 keys on the Piano so we need at least 14 notes in our list.

We found out what notes are possible by using one of the Sound blocks and looking at what was possible

PossibleNotes

This gave us our list of possible notes:

NotesList

Now on to the code…

We needed to work out what key on the Piano had been clicked, and convert it to a number between 1 and 14 so we could play the correct note from the list.

This required some tricky calculations, to convert the Mouses “X” position to a positive integer between 1 and 14.

  • First we added a number to make X always positive
  • Second we divided that by the size of a note.
  • And finally we rounded it up, using the ceiling function.

This ended up with the following code and a couple of Variables to store the “Extra” number to make X positive and the size of a note:

NoteClickedBasic

Once we had the positive integer we could use it to select the correct note to play from the list:

NoteClickedMedium

We did start some of the Buttons, and we will complete them next week. Notes for the buttons will be included then.

Buttons

In order to make the Piano a bit more usable we added 3 Buttons:

  1. Record
  2. Stop
  3. Play

All three Buttons had two costumes, we used the second costume to change the colour of the Button, this made it easy to see if you had clicked the button or not.

The Record button, simply set a Data Flag to indicate to the Piano code that it should “record” the notes being played in a List variable.

It also flashed while recording was “on”, this is the code for the Record Button:

RecordButtonCode

We also had to add some additional code to the Piano to make sure the notes were recorded:

RecordPianoCode

The Stop button was quite simple, we just set the Data Flag back to 0, and changed the costume for a short while to make it clear that the button had been pressed.

StopButtonCode

The Play button was a little more complex as it need to read all the items in the List and play the correct notes. It also flashed while playing. This is the code from the Play button:

PlayButtonCode

The Final project looked something like this, you can get a copy from the Scratch Web Site, see the Notes below.

PianoStage

Notes:

Note: My version of the project has been uploaded to https://scratch.mit.edu you can Sign in using the following details:

  • Username : cdadvancers1819
  • Password : advancers
  • Project Name is : Class-Piano