Microcontrollers and Artificial Intelligence

Halocode is the new single-board computer that introduces the fundamental block-based coding and internet of things (IoT). This microcontroller has a built-in Wi-Fi that works with block-based programming software mBlock. Halocode provides a broad range of electronic modules with its compact design. Students will get the opportunity to create their own AI & IoT application while reinforcing their knowledge of coding blocks at the same time.  


No prior understanding of coding is required for this course

Programming Language(s) Involved: -

Recommended Age: 11+ yr

Duration: 12 hours




Course objective:

  • Develop students in their systemic thinking through coding

  • Learn coding in relation to Artificial Intelligence (AI) and Internet of Things (IoT), especially in areas of machine learning and voice/speech recognition

  • To integrate the input and output components with the coding, in relation to image and speech recognition

  • Allow students to apply coding in relation to image and speech recognition in a fun and engaging way


Course outcome:

  • Students will be familiarised with Halocode and mBlock 5 user interface
  • Understand the functions of Halocode and the different code block programming in mBlock
  • Students get to learn coding in relation to Artificial Intelligence (AI)
  • Create a Smart Home with Halocode

Course curriculum

  1. 1
    • Introduction to course

  2. 2
    • Introduction to Halocode

    • Activity: Programming a Smiley face

    • If-else and Forever Loops

    • Activity: Volume Detector

    • Activity: Colour Mixer

    • Quiz

    • Summary

  3. 3
    • Recap

    • Activity: Rainbow Lights

    • Activity: Meteor

    • Activity: Shaking Strength

    • Activity: Programming Halocode to smile

    • Summary

  4. 4
    • Variables

    • Activity: Build an Energy Wristband

    • Activity: Connecting Halocode to Wifi

    • Activity: LAN Broadcast

    • Activity: Voice Controlled Colours

    • Quiz

    • Summary

  5. 5
    • Recap

    • Introducing Internet of Things (IoT)

    • Internet of Things (IoT)

    • Activity: IoT Remote Control I

    • Activity: IoT Remote Control II

    • Program the Halocode using Activity 1

    • Summary

  6. 6
    • Recap

    • Activity: Making Halocode a Steering Wheel

    • Activity: Using Global Variables to interact with Sprites

    • Quiz

    • Summary

  7. 7
    • Recap

    • What is Artificial Intelligence (A.I.)?

    • Introduction to Artificial Intelligence (A.I.)

    • How Image Recognition Works

    • What is Image Recognition

    • Activity: Pictionary

    • Activity: Emotion Detector

    • Summary

  8. 8
    • Recap

    • Activity: Facial Recognition I

    • Activity: Facial Recognition II

    • Summary

  9. 9
    • Course recap

    • The Final Project

    • Suggested Code for Final Project