Skip to the notes
robocupjunior.org.nz

Junior Robotics Notes

an independent NZ guide to classroom robotics

Programming

Programming a robot is different from programming a screen. The robot lives in a world of uneven floors, flat batteries and sunlight through the classroom window, so the code has to read sensors, make a decision and correct itself many times a second.

This section starts with block editors such as Scratch and Microsoft MakeCode and works toward typed languages like Python and Arduino C++. Older training sheets that used to sit at this address are long gone; these notes are written fresh and aimed at the kits schools actually use today.

  1. Read one sensor and print it. Every project gets easier once students can see the raw numbers.
  2. Make one decision. If the reading is above a threshold, do one thing; otherwise, do another.
  3. Loop and tune. Run it, watch it, change one number, run it again.

Notes in this section

  1. N-03
    How line-following robots work

    Light sensors, thresholds, and the step from wobbly on/off steering to smooth proportional control, with a diagram and sample code.

  2. N-06
    From block coding to text coding

    When students should move from Scratch or MakeCode blocks to Python, how to make the switch less painful, and what changes for robots.

  3. N-08
    Build a soil-moisture sensor for the vege garden

    A micro:bit or Arduino project that tells you when the vege patch actually needs water, plus why the cheapest probes don't last.

  4. N-09
    A motion-sensor camera for the garden

    Build a PIR-triggered camera to watch garden wildlife, spot wasp flight paths and visiting pests, and know when to call in a professional.

  5. N-11
    A home weather station project

    Measure temperature and humidity indoors and out, and use the data to understand damp, condensation and why winter windows drip.