I1: Zebra / Road Crossings

Complexity
  • Elementary
Target Level
  • P3 – P6

Objective:
To program the movement of a pedestrian / vehicle for ensuring mutual safety in zebra / road crossings. Besides learning to build the algorithm of decision making, students also acquire experience of circuitry (switch, relay, resistor, etc.), data processing (signal strength for ranging, open/close circuit for detection, etc.), coding (sequence, decision, looping, etc.) and most importantly code of practice to be responsible road users.

Description:
“Zebra / Road Crossings” provides such opportunity for students to build their algorithm of decision making (i.e. what action for what situation), aiming at avoiding the road accident from happening again.

“Zebra / Road Crossings” is also the playground for actualization in safe and interesting environment. Throughout the process of testing their algorithm, students act as engineers to build the electrical part of the pedestrian / vehicle by connecting components in a circuit, to determine how objects can be ranged and detected, and to program a micro-processor for controlling movement of the pedestrian / vehicle.

When it comes to system test, at intra-group level, it serves as a trial-and-error for fine tuning. At inter-group level, a competition can be organised in groups by taking turn to play pedestrian and vehicle.

Hardware
  • Micro- processors controlled motors
  • Micro- processors controlled lamps
  • Tablet / Laptop / PC with Internet connection
Software
  • Common programming languages like MakeCode Blocks / Scratch / Python
Cloud Services
  • N/A
Major Activities
  1. Learning session covering:
    1. Problem introduction
    2. Algorithm building
    3. Circuit connection
    4. Ranging and detection
    5. Program coding
  2. Practical session of students:
  3. Competition event
Learning Objective(s)
  • To build algorithm of decision making (i.e. a list of actions under certain conditions, with priority)
  • To make circuit using basic components (i.e. switch, relay, resistor, etc.)
  • To range and detect objects using signal strength, open/close circuit, etc.
  • To code using sequence, decision, looping, etc.
  • To be a responsible road user
Duration
  • Learning sessions: 30 hours
  • Practical sessions for students: 10 hours
  • Competition event: 5 hours
Target No. of Students
  • About 20 students per workshop