Skip to content

    Barrier Boulevard

    Year 5 Projek Mikropengawal

    Building microcontroller projects such as a boom barrier and a smart fan: flowchart, program, upload, test and improve.

    • Ages 9–11
    • 3 quests
    • Beginner → Getting stronger → Challenge

    Microcontroller projects bring together everything learned so far. A boom barrier (palang automatik) lifts when a car is detected or a button is pressed, waits, then lowers again. A smart fan (kipas pintar) switches itself on when a temperature sensor finds the room too hot.

    What your child will learn

    • Plan a project with a flowchart
    • Turn the flowchart into a program
    • Upload the program and connect the hardware
    • Test, debug and improve the project

    Plan, code, upload, test

    Work in order: draw the flowchart → write the program in block code → simulate it on screen → connect the hardware on the breadboard → upload through USB → test. If something goes wrong, check the program and the wiring one step at a time.

    Boom barrier logic: JIKA button pressed, MAKA turn the motor to lift the barrier, wait 5 seconds, turn the motor back to lower it. Smart fan logic: ULANG — read the temperature; JIKA it is above 30 °C, MAKA turn the fan on, JIKA TIDAK, turn it off.

    Example questions

    Here are a few questions like the ones in the first quest. Can you solve them?

    1. 1. Kipas pintar hidup sendiri apabila…

      🌡️
      • ada bunyi bising
      • pintu dibuka
      • bilik gelap
      • suhu bilik terlalu panas
      Show answer

      Answer: suhu bilik terlalu panas. Sensor suhu mengesan bilik yang panas.

    2. 2. Atur cara dipindahkan dari komputer ke mikropengawal melalui proses…

      • muat turun lagu
      • imbas
      • cetak
      • muat naik
      Show answer

      Answer: muat naik. Muat naik menyimpan atur cara dalam papan.

    3. 3. Sensor yang digunakan dalam kipas pintar ialah sensor…

      📡
      • bunyi
      • hujan
      • cahaya
      • suhu
      Show answer

      Answer: suhu. Sensor suhu mengukur kepanasan bilik.

    4. 4. Susun langkah membina projek mikropengawal.

      • Uji projek
      • Sambung perkakasan
      • Tulis atur cara
      • Muat naik atur cara
      • Lukis carta alir
      • Buat simulasi
      Show answer

      Answer: Lukis carta alir → Tulis atur cara → Buat simulasi → Sambung perkakasan → Muat naik atur cara → Uji projek. Rancang dahulu sebelum membina.

    Tips for grown-ups

    • Watch a car-park barrier together and describe its inputs and outputs.
    • Draw the flowchart for a smart fan with your child.