teachwithict
  • Home
  • Teaching & Learning
    • Tools for Teachers >
      • Web 2.0 >
        • Top 10 Web 2.0 Tools
        • Classroom Response Tools
      • Quiz Tools
      • Classroom Management Tools
      • Software >
        • Media Conversion Tools
        • Application Software
      • Multimedia >
        • Free Music
    • Digital Leaders >
      • Digital Leaders Blog >
        • DL Archive
      • DL Tips
      • Quotes
      • Links
    • BYOD
    • Flipped Learning >
      • Flipped Classroom vs. Blended Classroom
    • Gamification >
      • Gamification vs. Game Based Learning vs. Game Design
    • Game Based Learning >
      • Minecraft >
        • Minecraft in Education
        • Minecraft Lesson Ideas
        • Minecraft Literacy
        • Minecraft Coding Tutorials >
          • Minecraft Code Builder Setup
          • Minecraft Code: Walking on Air
          • Minecraft Code: Hello World
          • Minecraft Code: Functions
          • Minecraft Code: Rainbow
          • Minecraft Code: Skyscraper
          • Minecraft Pixel Art
    • The magic of >
      • The magic of Computing
      • The magic of Maths
      • The magic of Science
      • The magic of Literacy
    • Breakout Edu
    • PLN Challenge >
      • Covering your backside
      • Twitter Challenge >
        • Challenge 1
        • Challenge 2
        • Challenge 3
        • Tips for staying safe on Twitter
        • Tips for hosting Edu Twitter Chats
        • Tips for taking part in Twitter chats
        • How to storify a chat
        • How to schedule Tweets
        • Twitter Lists
        • It's all about the hashtag! Essential chats for educators
      • Facebook Challenge >
        • Challenge 4
        • Challenge 5
        • Challenge 6
        • Tips for staying safe on Facebook
      • Google Challenge >
        • Challenge 7
        • Challenge 8
        • Challenge 9
      • Pinterest Challenge >
        • Challenge 10
        • Challenge 11
        • Challenge 12
        • Tips for using Pinterest
      • Blog Challenge >
        • Challenge 13
        • Challenge 14
        • Challenge 15
        • How to create a classroom blog
      • Staffrm Challenge >
        • Challenge 16
        • Challenge 17
        • Challenge 18
      • Skype Challenge >
        • Challenge 19
        • Challenge 20
        • Challenge 21
      • Edmodo Challenge >
        • Challenge 22
        • Challenge 23
        • Challenge 24
      • TeachMeet Challenge >
        • Challenge 25
        • Challenge 26
        • Challenge 27
      • In-school challenge >
        • Challenge 28
        • Challenge 29
        • Challenge 30
      • 30 ways to grow your PLN
    • T&L Blog
  • Computing
    • Computing Blog >
      • GCSE Computer Science
      • General
    • CPD >
      • Blocks to Code
      • Tutorials >
        • How to embed Flash into PowerPoint
        • How to embed YouTube videos in to PowerPoint
        • How to create a wiki
        • How to create a classroom blog
    • Teaching Computer Science >
      • Schemes of Work
      • Programming Resources
      • Theory
      • Posters
    • Theory Lessons >
      • Theory Tests
      • Computer Hardware >
        • Input / Output
        • CPU
        • LMC
        • Storage Devices
        • Memory (RAM / ROM)
      • Binary Lessons >
        • Units of Data
        • Binary Representation
        • Binary Representation of Images
        • Binary Representation of Characters
        • Binary Representation of Sound
        • Binary Representation of Instructions
        • Binary Addition
        • Hexadecimal
      • Software >
        • Operating System
        • Types of Software
        • Utility Software
      • Programming >
        • Flowcharts
    • Game Design
    • App Creation
    • Digital Literacy >
      • Social Media (Good or Bad thing?)
      • Cyberbullying
      • Staying Safe Online
    • ICT Strand >
      • Spreadsheet Modelling
      • Superhero Movie Trailer
      • PowerPoint Task
      • Paint 3D Tutorial
    • Programming Lessons >
      • Microbit >
        • Magic 8 Ball
        • Harry Potter Sorting Hat
        • Music
        • Music (Festive)
        • Quick Start Guide
        • Microbit Simulator
      • TouchDevelop >
        • TouchDevelop Challenge
        • Scheme of Work
        • TouchDevelop Lessons >
          • 8 bit challenge
          • Turing Test
          • Turtle Power
          • 8 Ball
          • Under the hood
        • Tutorials
      • Raspberry Pi >
        • Networking the Pi
        • Minecraft Pi
        • Harry Potter Sorting Hat >
          • Harry Potter Sorting Hat (GPIO)
        • Raspberry Pi LTSP (Networked Classroom)
        • Astro Pi
      • Scratch
      • Python >
        • Chatbot
        • Coding Golf
        • Magic 8 ball
        • Python Mad Libs
        • Shakespearean Insult Generator >
          • Shakespearean Insult Generator Part 2
        • Sorting Hat
      • Little Man Computer
      • Hour of Code >
        • HoC 8-Bit Challenge
  • 21 Things
  • Microbit
    • Physical Computing >
      • micro:bit LEDs
  • About
  • Blog
  • Home
  • Teaching & Learning
    • Tools for Teachers >
      • Web 2.0 >
        • Top 10 Web 2.0 Tools
        • Classroom Response Tools
      • Quiz Tools
      • Classroom Management Tools
      • Software >
        • Media Conversion Tools
        • Application Software
      • Multimedia >
        • Free Music
    • Digital Leaders >
      • Digital Leaders Blog >
        • DL Archive
      • DL Tips
      • Quotes
      • Links
    • BYOD
    • Flipped Learning >
      • Flipped Classroom vs. Blended Classroom
    • Gamification >
      • Gamification vs. Game Based Learning vs. Game Design
    • Game Based Learning >
      • Minecraft >
        • Minecraft in Education
        • Minecraft Lesson Ideas
        • Minecraft Literacy
        • Minecraft Coding Tutorials >
          • Minecraft Code Builder Setup
          • Minecraft Code: Walking on Air
          • Minecraft Code: Hello World
          • Minecraft Code: Functions
          • Minecraft Code: Rainbow
          • Minecraft Code: Skyscraper
          • Minecraft Pixel Art
    • The magic of >
      • The magic of Computing
      • The magic of Maths
      • The magic of Science
      • The magic of Literacy
    • Breakout Edu
    • PLN Challenge >
      • Covering your backside
      • Twitter Challenge >
        • Challenge 1
        • Challenge 2
        • Challenge 3
        • Tips for staying safe on Twitter
        • Tips for hosting Edu Twitter Chats
        • Tips for taking part in Twitter chats
        • How to storify a chat
        • How to schedule Tweets
        • Twitter Lists
        • It's all about the hashtag! Essential chats for educators
      • Facebook Challenge >
        • Challenge 4
        • Challenge 5
        • Challenge 6
        • Tips for staying safe on Facebook
      • Google Challenge >
        • Challenge 7
        • Challenge 8
        • Challenge 9
      • Pinterest Challenge >
        • Challenge 10
        • Challenge 11
        • Challenge 12
        • Tips for using Pinterest
      • Blog Challenge >
        • Challenge 13
        • Challenge 14
        • Challenge 15
        • How to create a classroom blog
      • Staffrm Challenge >
        • Challenge 16
        • Challenge 17
        • Challenge 18
      • Skype Challenge >
        • Challenge 19
        • Challenge 20
        • Challenge 21
      • Edmodo Challenge >
        • Challenge 22
        • Challenge 23
        • Challenge 24
      • TeachMeet Challenge >
        • Challenge 25
        • Challenge 26
        • Challenge 27
      • In-school challenge >
        • Challenge 28
        • Challenge 29
        • Challenge 30
      • 30 ways to grow your PLN
    • T&L Blog
  • Computing
    • Computing Blog >
      • GCSE Computer Science
      • General
    • CPD >
      • Blocks to Code
      • Tutorials >
        • How to embed Flash into PowerPoint
        • How to embed YouTube videos in to PowerPoint
        • How to create a wiki
        • How to create a classroom blog
    • Teaching Computer Science >
      • Schemes of Work
      • Programming Resources
      • Theory
      • Posters
    • Theory Lessons >
      • Theory Tests
      • Computer Hardware >
        • Input / Output
        • CPU
        • LMC
        • Storage Devices
        • Memory (RAM / ROM)
      • Binary Lessons >
        • Units of Data
        • Binary Representation
        • Binary Representation of Images
        • Binary Representation of Characters
        • Binary Representation of Sound
        • Binary Representation of Instructions
        • Binary Addition
        • Hexadecimal
      • Software >
        • Operating System
        • Types of Software
        • Utility Software
      • Programming >
        • Flowcharts
    • Game Design
    • App Creation
    • Digital Literacy >
      • Social Media (Good or Bad thing?)
      • Cyberbullying
      • Staying Safe Online
    • ICT Strand >
      • Spreadsheet Modelling
      • Superhero Movie Trailer
      • PowerPoint Task
      • Paint 3D Tutorial
    • Programming Lessons >
      • Microbit >
        • Magic 8 Ball
        • Harry Potter Sorting Hat
        • Music
        • Music (Festive)
        • Quick Start Guide
        • Microbit Simulator
      • TouchDevelop >
        • TouchDevelop Challenge
        • Scheme of Work
        • TouchDevelop Lessons >
          • 8 bit challenge
          • Turing Test
          • Turtle Power
          • 8 Ball
          • Under the hood
        • Tutorials
      • Raspberry Pi >
        • Networking the Pi
        • Minecraft Pi
        • Harry Potter Sorting Hat >
          • Harry Potter Sorting Hat (GPIO)
        • Raspberry Pi LTSP (Networked Classroom)
        • Astro Pi
      • Scratch
      • Python >
        • Chatbot
        • Coding Golf
        • Magic 8 ball
        • Python Mad Libs
        • Shakespearean Insult Generator >
          • Shakespearean Insult Generator Part 2
        • Sorting Hat
      • Little Man Computer
      • Hour of Code >
        • HoC 8-Bit Challenge
  • 21 Things
  • Microbit
    • Physical Computing >
      • micro:bit LEDs
  • About
  • Blog
Search by typing & pressing enter

YOUR CART

16/12/2013

Teaching Computer Science: Day 13 - It's a Cracker!

In this week’s lesson, I continued the theme of how data is stored in computers, this week focusing on how a computer stores an image.

Learning Objectives:

  • Explain the representation of an image as a series of pixels represented in binary
  • Explain the need for metadata to be included in the file such as height, width and colour depth
  • Discuss the effect of colour depth and resolution on the size of an image file

Lesson 1: Theory (Images)

Suggested time: 50 mins

Starter:

I started by displaying a photograph of my Christmas jumper on the board and asking students what an image is made up of. I then explained that Pixel is short for Picture Element and showed the students a close up of my jumper showing each of the individual pixels:
Picture
Picture
Picture
Picture
I explained that the image in my example was 1024 pixels x 768 pixels and that we call this the picture’s resolution.


Main:

I began by displaying a simple 1-bit image on the board and asked students to suggest how it could be converted to binary:
Picture
The students, at first, suggested using 00 for “white” and 01 for “black”. I then asked if there was an even simpler way, to which the students suggested 0 for “white” and 1 for “black”. I then showed students the previous example in binary:
Picture
I explained that images are stored in “scan lines” and that each line is encoded from left to right --> top to bottom.

Next, I asked students how we could represent 4 colours in binary. Once they got the correct answer, I showed them the following example:
Picture
I followed this by displaying the following two images side-by-side on the board and explained that, for some reason, the computer had missed out two lines of code when importing the image. I then asked for volunteers to fill in the gaps:
Picture
8-bit_santa_starter.pdf
File Size: 54 kb
File Type: pdf
Download File

8-bit Santa Gap.pdf
File Size: 444 kb
File Type: pdf
Download File

I explained that we call this representation of colours a “bit-plane” and that each bit doubles the number of available colours i.e. 1-bit would give us 2 colours, 2-bits would give us 4 colours and 3-bits would give us 8 colours etc. I then asked students to suggest how we could store more colours such as 16, 256 etc.

Next, I gave each students a pre-printed computer science cracker joke, each with a different challenge attached – tasks based on level of ability. (See below). I then instructed the students to complete the challenge attached to their cracker joke.
Cracker Jokes.pdf
File Size: 132 kb
File Type: pdf
Download File

bitmaps-blank.pdf
File Size: 75 kb
File Type: pdf
Download File

bitmaps-large.pdf
File Size: 29 kb
File Type: pdf
Download File

binary 2 hex helpsheet.pdf
File Size: 108 kb
File Type: pdf
Download File

Extension task:

I asked some students to share the hexadecimal / binary code of their favourite bitmap image with a classmate to see if they could convert it back to the original image.

Next I wrote an example binary code on the board and asked the students how the computer would interpret the numbers (the idea being for the students to ask questions such as how many colours etc.)

I followed this by asking students what does a computer need to know to be able to convert the image. I then explained that, in order for the computer to interpret the file, the computer needs to know:

  • Colour depth – how many bits represent each pixel
  • Resolution - Width & Height (in pixels)

I then explained that we call this “metadata”

I finished by recapping the learning objectives using the Pose, Pause, Pounce and Bounce method.

Example:

Pose a question to the whole class e.g. Explain how a 16 colour image can be represented in binary 

Pause to give students time to digest the question and think of their answer. If the students are engaged, try holding the pause for a little while longer to build up the tension.

Pounce: Quickly, select a student to answer the question. i.e. Insist the answer to the question comes from student A and possibly student B, directly and fast! Obviously, plan in your mind who you are going to direct the questions to before hand.

Bounce the question or student's response on to another student (immediately after the pounce). e.g. Ask them if they agree with the students previous answer and to explain why.

For more information about the Pose, Pause, Pounce and Bounce technique, visit: @teachertoolkit - http://teachertoolkit.me/2013/01/04/pppb-version2/

Keywords:
Picture
Created using Tagxedo

Resources:
5_min_lesson_plan.pdf
File Size: 70 kb
File Type: pdf
Download File


Lesson 2: TouchDevelop Festive Pixel Challenge

Suggested time: 50 mins

Main:

Keeping the theme of pixels, students were shown an 8-bit image created using touchdevelop. Click here to see example. 

Students were then directed to the TouchDevelop Challenge Hour of Code tutorials (touchdevelop.weebly.com/hoc) and asked to create a festive 8-bit image of their very own.

Once completed, students where asked to submit their apps to the TouchDevelop Challenge website: http://touchdevelop.weebly.com/student-blog.html

Below is a sample of some of the artwork created by the students during the lesson:

  • 8-bit Santa
  • 8-bit Space Invader
  • 8-bit Santa Hat

8/12/2013 0 Comments

Teaching Computer Science: Day 12 - It's all about Hex!

In this week’s lesson, I introduced my students to Hexadecimal - explaining why it’s used and how to convert to binary / denary and back again.

Learning Objectives:

  • Convert positive denary integers (0‐255) into 2‐digit hexadecimal numbers and vice versa
  • Convert between binary and hexadecimal equivalents of the same number
  • Explain the use of hexadecimal numbers to represent binary numbers


Lesson 1: Theory (Hexadecimal)

Suggested time: 50 mins

Starter:

I started by showing two numbers on the board (one in binary and one in hex).

1101 1001
 
C9

I then asked the students, “Which is easiest to remember?”

I explained to students that we often find it difficult to remember long sequences of numbers so, to make life easier, we can break the number down from 4 bits (a nibble) to 1-bit.


Demonstration (Hexadecimal):

Next, I explained that the smallest value we can have in 4-bits (nibble) is 0000 (0 in denary) and the largest value is 1111 (15 in denary) and that we needed to represent each value with a single digit. I then displayed the following table on the whiteboard and asked students to fill in boxes 0-9:

Denary

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I then explained that when we reach 10, we hit a problem as we can only use the numerical values 0 – 9.

I then asked the students to suggest ways we would represent the last 6 numbers without using numbers.

I then explained that, to get around this problem, we substitute the numbers 10 to 15 with the letters A to F. I explained that we call this system Hexadecimal (or Hex for short). I followed this by showing the students the following table:

Denary

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

Hex

0

1

2

3

4

5

6

7

8

9

A

B

C

D

E

F

Next, I showed the students, using the following table, what happens when we get to the number 16:

Denary

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

Hex

10

11

12

13

14

15

16

17

18

19

1A

1B

1C

1D

1E

1F

I explained that when we get to 16, a 1 is added to the front of the next number (highlighting the similarity to the denary system when we go from 9 to 10).

Next, I split the class into groups of three and gave each group a copy of the following table. I then asked them to fill in the blanks:

Denary

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

Hex

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

starter.pdf
File Size: 104 kb
File Type: pdf
Download File

I finished by displaying the following table on the board and explained how it could help them in their exam:

Hex

Denary (Decimal)

0F

15

10

16 (1x16)

20

32 (2x16)

30

48 (3x16)

40

64 (4x16)

50

80 (5x16)

60

96 (6x16)

70

112 (7x16)

80

128 (8x16)

90

144 (9x16)

A0

160 (10x16)



Activity 1 (Denary <--> Hex):

Next I explained that, for the exam, students are expected to be able to convert binary to hexadecimal.

I then showed the students the following video:
I then showed them an example exam question and challenged them solve it:

(a)  Convert the hexadecimal number 6A to denary. (You must show your working out).

.................................................................................................................................

.................................................................................................................................

............................................................................................................................ (2)

I followed this by giving students a series of mini challenges (See answer sheet at bottom of this page):
activity_1.pdf
File Size: 415 kb
File Type: pdf
Download File



Activity 2 (Binary <--> Hex):

Finally I explained that, also for the exam, students are expected to be able to convert binary to hexadecimal.

I explained that, in the exam, students are expected to be able to convert 8-bit binary numbers to hex. I then demonstrated how to do this using the following example:
Picture
This was supported by the following help sheet:
bin2hex.pdf
File Size: 108 kb
File Type: pdf
Download File

I then showed the students another example exam question and challenged them solve it:

(a)  Convert the binary number 00111101 to hexadecimal.

.................................................................................................................................

.................................................................................................................................

............................................................................................................................ (2)

Plenary:

I finished by putting this all into context. I displayed the following table on the board and asked students if they recognised it. I then asked if they spotted anything familiar (based on the lesson).
Picture
I explained that  #FFFFFF = 1111 1111 1111 1111 1111 1111 in Binary which is 16,777,215 in Denary which also happens to be the same number of colours in a web palette! I then asked students to think what it would be like to have to use binary to change the colour of a webpage in HTML!


Homework:

Students were instructed to update their class revision wiki.


Answer Sheets:
Starter:

Denary

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

Hex

30

31

32

33

34

35

36

37

38

39

3A

3B

3C

3D

3E

3F

Activity 1:
activity_1_answers.pdf
File Size: 418 kb
File Type: pdf
Download File


Useful Links:
How to do Decimal to Hexadecimal Conversion
How to do Binary to Hexadecimal Conversion

Lesson 2: Raspberry Pi - Introduction to Python

Suggested time: 50 mins

Main:

Students were instructed to setup their Raspberry Pis and to launch IDLE 3.

Students were then asked to follow Mark Clarckson’s Introduction to Python booklet: (http://community.computingatschool.org.uk/resources/14)


Alternative:

Alternatively, if you do not have access to a set of Raspberry Pis, students can still complete the Python challenges:

To install Python for FREE, go to the python.org website and download a standard installation of the latest version of Python. This will provide you with everything you need.
0 Comments

1/12/2013

Teaching Computer Science: Day 11 - "1 + 1 = 10"

In this week’s lesson, I continued the theme of how data is stored in computers, this week focusing on binary addition.

Learning Objectives:

  • add two 8‐bit binary integers and explain overflow errors which may occur

Lesson 1: Theory (Binary Addition)

Suggested time: 50 mins

Starter:

I started with a fun starter activity courtesy of Mark Ward via CAS called Binary Bingo. To download the activity, click here. 

Each student was given a bingo card and numbers were picked at random using a free random name selector (see Classroom Management Tools). The first student to get a full house was the winner.

Main:

I began by writing a simple sum (adding to denary numbers together) on the board:
Picture
I then asked for a volunteer to solve it (showing all working out).

Next, I introduced a simple binary sum:
Picture
I explained that adding binary numbers is exactly the same as adding denary numbers however, instead of carrying groups of ten, you carry groups of 2. I followed this by writing a couple more simple binary sums on the board and asked for volunteers to attempt to solve these.

Next I explained that when we add two 1s we need to carry over to the next column. I demonstrated this using the following sum:
Picture
I followed this by asking students to work out the following (explaining their working out):
Picture
Finally, I wrote the following binary sum on the board and asked the students to solve it. I then asked the students if they spotted the problem.
Picture
I explained that, if we only have 4 bits to store the result, there would be no room for the final carry – resulting in the wrong answer. I explained that when there isn’t room to store the resulting calculation, we get an error which we call overflow.

Finally, I gave students a series of binary addition challenges courtesy of Chris Barnard via CAS. You can download the worksheet and answer sheet here: Binary Addition Exercise 


Extension:

Students were directed to the following YouTube video explaining binary subtraction:
Plenary:

Students played the CISCO Binary Game: http://forums.cisco.com/CertCom/game/binary_game_page.htm    


Resources:

Useful resources:

Binary Calculator – http://gwydir.demon.co.uk/jo/numbers/binary/add.htm

Binary Arithmetic Task - http://www.allaboutcircuits.com/worksheets/bin_math.html


Lesson 2: Raspberry Pi - Python Challenge

Suggested time: 50 mins

Main:

Students were instructed to setup their Raspberry Pis and to launch IDLE 3.

Students were then asked to attempt a series of introductory Python challenges courtesy of Tom Gilmour via CAS: http://community.computingatschool.org.uk/resources/332

Alternative:

Alternatively, if you do not have access to a set of Raspberry Pis, students can still complete the Python challenges:

To install Python for FREE, go to the python.org website and download a standard installation of the latest version of Python. This will provide you with everything you need.

    Author 

    Simon Johnson​

    Picture
    Microsoft Innovative Educator Expert / MIE Trainer
    Picture
    ​Minecraft Cert. Educator / Global Mentor
    Picture
    ​CAS Master Teacher
    Picture
    ​Raspberry Pi Cert. Educator
    Picture
    ​Tickle Ambassador

    Archives

    June 2017
    March 2017
    December 2016
    November 2016
    November 2015
    July 2015
    June 2015
    May 2015
    March 2015
    February 2015
    January 2015
    December 2014
    July 2014
    June 2014
    May 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013
    October 2013
    September 2013

    Categories

    All Algorithms Cpu Fundamentals Hardware Input & Output Memory OCR A451 Software Storage

    RSS Feed

Powered by Create your own unique website with customizable templates.