Back to Contents Page

Theme

The theme of this project is based on one of the main areas of research in computer science: Cryptography. Our project introduces the concept of Morse code, first on paper then moves on to code. It uses data structures such as dictionaries and introduces the idea of parsing strings. The marking scheme rewards proper naming of variables and functions as well as using loops and functions to avoid repetition of code and improving neatness to aid readability of code.

This project introduces hardware programming and circuitry, using the Raspberry Pi as a controller. It describes and explains a simple circuit that the students have to wire up to the Raspberry Pi using a bread board. It also explains the code needed to control the circuit and introduces the concept of libraries and importing code with the Raspberry Pi GPIO library that is used extensively throughout the project.

Scope

This course contains four lessons, and each lesson could be taught in about one to three hour-long classes. The difficulty of this course is specially designed for Secondary School Students who had known basic knowledge of Python from our previous course.

Learning Outcomes

By the end of the course, students should be able to:

Content

  1. Introduction to Morse Code
  2. Circuits and Setting up the Raspberry Pi
  3. Converting Text to Morse Code using Python
  4. Flashing LEDs on the Raspberry Pi

Resources required

  1. Access to PC/laptop (one per student/group)
  2. Internet connection
  3. Latest version of Python 2.x installed: download link
  4. Students should have basic knowledge of Python beforehand (should have passed our previous course on introduction to Python or equivalent)
  5. A Raspberry Pi kit for each student/group
  6. LEDs and cables suited for the Raspberry Pi