Seniors can Code

LearnX Community
Digital Cafe@Harbourfront
Seniors can Code
Date: 8th July 2023
Time: 2PM to 5PM
Venue: library@harbourfront (Vivo City)

Facilitator: Hewlee Ho

What is Scratch Coding?
Scratch Coding is the easiest programming language specifically designed for 8 to 14 years old (for kids around the world), but it is use by people of all ages including primary & junior school students and seniors. this Scratch programming software is made available free online or offline by MIT Media Lab. We can use this programming language to create stories, music, karaoke songs, games and art.

Coding is a computer language to tell the computer what to do. Scratch coding is one of the computer language available in computer programming.

Scratch coding is a visual way (like placing LEGO blocks one on top of another) to create interactive animation, games, music/art and presentations like telling a digital story or even creating a karaoke song.

Scratch coding is one of the means to be creative and logical in thinking, which encompasses play, imagination, create, share and reflect (what went wrong or can I do it better). To be a creator or maker of things rather (always) is a consumer.

What is required to learn Scratch Coding?

You need to create a scratch account via https://scratch.mit.edu. Don’t be too serious with creating this scratch account. Don’t use your Chinese name or complicated password. Here you are in a “Children’s” platform – no money is involved.

What you need to know about the Scratch program before you can create

Backdrop (or stage) together with the Backdrop Pane
Sprites (or characters) together with the Sprite Pane
Costumes Pane
Sound Pane
A space on the right (Scrips area) to store all your programming statements (the LEGO or Code blocks)
The left space is your stage or final output of your Scratch project
The Green flag (on the top bar) is to start running the program, you have created, by clicking with the mouse
The red button (on the top bar) is to stop the program when click

The Sprites contain many sub-folders including the following which come with colours and shapes:

– Motion
– Looks
– Sound
– Pen
– Data
– Events
– Control
– Sensing
– Operations
– More Blocks

Backpack

Backpack is the space below the Scripts area where you can store some of the useful sets of commands for future Projects. To copy and store them, just drag the set to the Backpack area. To remove any stored sets, just left click the mouse together with the Shift key, then delete.

How to navigate and use the Scratch Program?

1) To select a backdrop – click the bottom left of the Scratch main page, the “screen” icon. If you import backdrop from external, recommended size is 480 x 360 pixel.
2) To select a new Sprite – click the Sprite icon just beside the words “New Sprite”. You can obtain more information of your Sprite by clicking the “i” at the corner.
3) Learn how to import new backdrops and Sprites from external sources
4) Learn how to delete the unwanted default Sprite (the Cat)
5) Within each Sprite, you can create any interactive sequence and action with the wide range of possibilities as stated above.
6) Location of every Sprite within the Backdrop is defined by coordinates (x,y) with the Center (0,0). The horizontal (x) is from -240 (left corner) to 240 (right corner). The vertical (y) is from 180 (top) to -180 (bottom).
7) Don’t forget to give a unique project name to every Scratch program created. Just change the word “Untitled” to any appropriate name acceptable, you can click “share” and when the program turns to the next page, put a simple comment in the Comment space, like “How is my Project?” and follow by clicking “Post”.
8) After you have completed the Scratch program, tested and find it acceptable, you can click “”share” and when the. program turns to the next page, put a simple comment in the Comment space, like “How is my project?” and follow by clicking “Post”
9) To find you Project number – first open up your Scratch Project, then lightly left click the URL (web address) bar, a set of numbers will shoe up – this is the Project Number relating to the Scratch project you have created.
10) We can also see all the Scratch projects you have posted, if we know your username of your Scratch account.
11) To increase or reduce the coding area, click the small arrow at the bottom right of the stage corner
12) To write a standalone comment, you can right click in the Script and select “comment”. You can also minimise the comment by clicking the arrow on the top left-hand corner.
13) To write a block comment, do the same as (12) above, but tag it accordingly to the block set.

Sprites Interactions

Motion
To request the Sprite (or Character) to move forward, backard, glide, point, turn, go to (x,y), etc.
Looks
To request the Sprite (or Character) to say, change costume, change size, change color, change/switch backdrop, etc.
Sound
To request the Sprite (or Character) to play a sound/song, change volume, pause x seconds, set instrument to, play a note, etc. Please do not confuse this sound related to the Sprite (or Character) to the overall Sound Folder, which is the sound bite available within the Scratch program
Pen
This “tool” is to draw lines with size, color, shape, appear (show) or to disappear (hide).
Data
To make a “variable” or to make a “list”. For example, to measure a “score” or to change “speed”.
Events
To start a program, to initiate another Sprite (or Character) to start, etc. Useful for synchronisation and coordination among Sprites (or Characters).
Control
Covers all logical statements like repeat, forever, if – then -, if – then – else, wait, stop, etc.
Sensing
Covers touching, when certain keyboard key is touch, etc.
Operations
Covers computations (+, -, *, /), logical statements, like and, or & not, etc.
More Blocks
You can make (or define) your own Block (or loops) but can only use it on the same Sprite (or Character). This is useful for reducing the number of coding statements (or LEGO blocks) if you can identify identical sets of instructions within the same Sprite. A loop causes the commands contained within to repeat one or more times.

Project No.1 (To create/draw a House)
This exercise reinforces the understanding of coordinates and movement of a point or an object, like a Sprite (or Character). In this case, the “Sprite” or tool is the “pen”.

You can view the completed Project No.1 via link https://scratch.mit.edu/projects/846395335/editor.

Project No.2 Animation (To introduce a Name like “Max”)
The name “Max” is introduced, one letter at a time – starting from the top right-hand corner. Then it travels down, rotate 360 degrees and finally landed on the base.

You can view the completed Project No.1 via link https://scratch.mit.edu/projects/326869061/editor.

Project No.3 (To create a fish tank with fishes)
Put a few fishes in the tank and let then swim freely (left to right) & (right to left). Generate some air bubbles.

You can view the completed Project No.1 via link https://scratch.mit.edu/projects/337620371/editor.

NLB’s Digital Cafe@Harbourfront

Starting January 2022, I will be facilitating a NLB’s event under “Digital Cafe@Harbourfront”.

This is not a “speaker” and “participants” type of gathering (or session) with a specific topic.

It is more like – someone ASK a question relating to digital literacy or DIY or issues on sustainability or personal wellness. Those who have a view or solution can share and provide their experiences. Through asking and sharing, we all learn together.

For more details on this event, please click the quick link above (heading) “NLB’s LEARNX Learning Communities”.

The gathering is more like going to a fine dining with appetiser follow by the main course and a dessert. For the appetiser, we have DIY and sustainability matters. For the main course, we have digital literacy and for dessert we have our personal wellness. Sometimes, we may just have the main just only.

Seniors can Code (Part 2)

Check the YouTube Link to view the talk conducted on 181121.

Most of the skills on how to use the scratch program is explained in the earlier Part 1 talk.
Before you can use the Scratch program, you need to create one Scratch account with a Username and a simple password.

In Part 2, we will learn how to create a song. You need not to know music well in order to create any song of your choice. However, you need some “tools” to assist you. For me, I purchase a simple Piano Master App (small cost). There is also a free version with limited songs. This Piano Master App will help you to identify the “Scratch” keynote number on any song provided in the App.

In this Part 2 talk, we will create the song “Greensleeves”, also available in the Piano Master (paid) App. With the song and App, I have listed down all the sequence keynotes to play this song (refer to 3-slides below).

Please note, there is also one Scratch command (or LEGO block) for you to change any type of musical instrument you wish to play the song.

Because you are coding a song, if you have a long song, your coding “column” will be very long. You can use the “broadcast message x” & “when I receive message x” to break the columns into manageable length.

Another thing to note is the value of the “beat”. This is how long you want the note to vibrate or in resonance before going to the next note. This is a test how good is your musical ears to compare the original song (from Youtube?) and the one you have created using Scratch program. Some fun for your retirement challenge! Also to give your ears some exercise to fine tune your hearing. If you are on to this, I recommend you to listen to some classical music from YouTube.

To summarise, here are the steps you can check out:

1. Choose a song you like (Greensleeves)
2. Use Piano Master or any other App to identify all the keynotes for the song.
3. Start with the first command (the Green flag – When Green flag is clicked)
4. Set instrument to < > (selection of instrument to play the song)
5. Start using the keynote command “play note xx” for “xx” beat
6. Repeat until the whole song is completed.
7. You can end with some variations as stated in the keynotes tables.


Seniors can Code (Part 1)

Check the YouTube Link to view the talk conducted on 051121.

Scratch coding is the easiest programming language specifically designed for 8 to 14 years (for kids around the world), but is used by people of all ages including upper Primary to Secondary school children and seniors.

The Scratch programming software is made available free online or offline by MIT Media Lab. We can use this programming language to create digital stories, music, karaoke songs, games, art, etc.

Scratch coding is one of the means to be creative and to enhance our systematic and logical thinking which encompasses play, imagination, create, share and reflect (what went wrong or can I do it better?).

To be a Creator or Maker of things rather (always) is a consumer!.

To start doing Scratch Coding, you need to do the following first …

1) Have a laptop or desktop computer able to connect to the Internet.
2) Create a Scratch account with a simple Username and Password. No need to be too serious with the Username and Password as you are entering the “Children’s World”. A simple Username like Mango or Orange and a simple Password will do.

For this Part 1 talk, I will share with you all how to Create an “Animation” of your initials … like if your name is Tan Ah Kow, just use the three letters “T”,”A” and “K” and present them on the screen anyway you like it.

For the session’s example, I have used these three letters … “M”, “A” and “X” and present them coming from nowhere and finally landed at the bottom centre of the stage or backdrop.

You can see my finished work under my Scratch account “faberlodge”. To find my example, first you need to login to your Scratch account then under Search, type “faberlodge”.

For those interested to attend the zoom session for this Part 1 & 2 on Scratch Coding, you can register with the link given below. Note, you have to register BOTH Parts 1 and 2 separately.

Part 1:

Part 2:


Time of Your Life Celebration – 2020

Click the Youtube Link to view the talk conducted on 011020
Every year in October, the library (NLB) will organise a month long event with various talks, activities and exhibits, etc.

This year is with no exception; This year, NLB partnered with SUSS (Singapore University of Social Sciences) to come up with more exciting events.

I am requested by NLB to deliver a talk on “A Great Love for Volunteering and IT”. So, it is not a “play-play” talk with seniors alone. Other participants with varied background and experiences may be present to hear what I have to deliver. A bit shaken but not down. I take it as a challenge and summon whatever help I can get to polish what I have drafted. One of my children helped me to fine-tune my presentation.

This talk not only showed you my love for sharing but also my interests in life (the wonders of IT and photography in capturing the moment of our time).

Enjoy my talk and if you have found something to take home with you, do give me a “thumbs up”. Thank you.

Fun with Scratch Programming

Scratch coding is a visual programming language provided by Massachusetts Institute of Technology (MIT). The Lifelong Kindergarten group at the MIT Media Lab developed it and is available free online. An off-line version is also available.

The service is designed to help children (age 8 and above) learn to think creatively, reason systematically and work collaboratively. These qualities are also useful to seniors and learning this new skill is not difficult with hands-on.

Date:  19th Oct 2019 (Saturday)
Time:   2PM to 5PM (3-hours)
Venue: Jurong Regional Library (Pixel Lab at Level 2)
Admission is free (no charge) but registration with National Library Board is required.

Prerequisite: Participants to have a basic knowledge of laptop or desktop computer functions and Internet surfing.

This Scratch Workshop is meant for seniors who are interested to pick up a new IT skill on Scratch Programming or Coding in the fun way.

Direction: Nearest MRT: Jurong East. About 5 minutes walk to library.

How to Create Scratch Slides (Backdrops) for Karaoke Song

You need the following to begin:

a) Microsoft PowerPoint program
b) Set of photos (of reasonable quality) to last for whole duration of the song. Note, photos whether in portrait or landscape mode is dependent on the overall layout of the photo and the text (song lyrics) within each slide.
c) Song lyrics. If Chinese, ensure the pinyin version is available for language input.

Using PowerPoint (PP) first to create the slides then convert through PP program to individual JPEG slides

  1. Open PP program
  2. Decide on background color of slides. A good starter is using a non-reflective blue background with white text. The color code for non-reflective blue is defined as Red = 0, Green = 78 and Blue = 152 with an equivalent Hex value of #004E98.
  3. Right click on the slide and select “Format Background”
  4. Check “Hide Background Graphics” and go to “Automatic” and select “More Colors”
  5. Enter Red = 0, Green = 78 and Blue = 152 and lightly left-click on the “Hex #” value to check it has refreshed to “004E98” and then click OK.
  6. Complete the background color setting by clicking “Apply to All”
  7. At this point, do a PP file “Save as” and enter file name.
  8. Go to “Slide Sorter View” and copy/paste the required number of slides as required. This is dependent on your song and set of lyrics at hand.
  9. After the backgrounds of all sides are completed, you can start creating the first to the last slide using the PP program.
  10. For the first slide, inserting the photo is via – “Insert” –“Photo” – “Picture from File” and selects the appropriate photo.
  11. Next enter song lyrics (English/Chinese) by changing the input language accordingly.
  12. Align the photo and lyrics accordingly
  13. Repeat for all slides and test for sequencing and check for spelling or entry errors.
  14. Note, Scratch program can only accept JPEG images (as backdrops). So need to convert all PP slides to JPEG images.
  15. To do this, save PP file as “JPEG”.

 

Fun with Scratch Coding (a 3-Sessions Workshop)

Scratch coding is a visual programming language provided by Massachusetts Institute of Technology (MIT). The Lifelong Kindergarten group at the MIT Media Lab developed it and is available free online. An off-line version is also available.

The service is designed to help children (age 8 and above) learn to think creatively, reason systematically and work collaboratively. These qualities are also useful to seniors and learning this new skill is not difficult with hands-on.

Besides learning the basic of Scratch programming, the final project of this Scratch Workshop is to encourage participants to create a digital story of their life journey. It is more meaningful if the participants use their own family photos.

All participants who sign up are required to attend all the three workshop sessions. Bring along your laptop computer, if you have one.

Details of the Scratch Coding Workshop are as follows:

Title: Fun with Scratch Coding
Dates:  1/9/2018 (Session 1)
22/9/2018 (Session 2)
29/9/2018 (Session 3)

Time:   3PM to 5PM (Session 1)
2PM to 5PM (Session 2)
2PM to 5PM (Session 3)

Venue: Tampines Regional Library
(Pixel Lab at Level 4)

Course fee: free – (no charge)

Prerequisite: Participants to have a basic knowledge of laptop or desktop computer functions and Internet surfing. For those seniors who need a head-start, you can contact me to discuss further.

This Scratch Workshop is meant for seniors who are interested to pick up a new IT skill on Scratch Programming or Coding in the fun way. Registration with NLB is required.

What is Scratch?
(A video introduction from MIT Scratch Team)

 

 

Coffee Chat (28-04-2018)

Come to have your Smartphone problems answered (as best as we can). This coffee chat/IT Clinic is also intended for those participants who have attended the monthly IT classes (free) in Bukit Merah Library – to followup on the lessons (Last lesson – Microsoft Windows 10)

We gather together to share our skills, problems and to engage ourselves in lifelong learning and friendship. Coming Scratch Coding workshop can also be discussed. Details of coffee chat are as follows:

Date: 28th April (Saturday)
Time: 5PM to 9PM
Venue: 313 @ Somerset (Food Court at Level 5)

Do drop by if you are interested. All are welcome!

Coffee Chat and IT Clinic

Come to have your Smartphone problems answered (as best as I can). This coffee chat/IT Clinic is also intended for those participants who have attended the monthly IT classes (free) in Bukit Merah Library – to followup on the lessons (Last lesson – Mobile Apps)

We gather together to share our skills, problems and to engage ourselves in lifelong learning and friendship. Scratch coding matters can also be discussed. Details of coffee chat are as follows:

Date: 21st Oct (Saturday)
Time: 5PM to 8PM
Venue: 313 @ Somerset (Food Court at Level 5)

Do drop by if you are interested. All are welcome!