Skip to content
  • [✓] Task 1: Build and simulate a basic LED control circuit with SPDT switch, resistor and battery pack in Cirkit Designer
  • [✓] Task 2: Troubleshoot wiring faults and record the debugging process until the LED works correctly

Process

  • Steps followed
    1. Place components: 2×AA battery pack (3V), SPDT 3-pin switch, 220Ω current-limiting resistor and LED on the canvas.
    2. Make initial wiring: Connect battery positive to the COM pin of the switch, switch terminal 1 to resistor, resistor to LED, LED back to battery positive.
    3. Test the circuit, find the LED did not light up.
    4. Diagnose the fault: No closed loop, LED connected to positive on both sides.
    5. Rewire: Connect the cathode of LED to the negative terminal of the battery pack to form a complete loop.
    6. Test again, still failed. Check LED polarity and switch position.
    7. Adjust LED anode/cathode direction and toggle the SPDT switch to connect COM and terminal 1. The LED lights up successfully.
  • Photos / screenshots of key stages Screenshots of wrong wiring (open loop / both ends to positive), intermediate revised version, and final working circuit.
  • Challenges and solutions
    1. Challenge: The circuit had no closed loop, LED received no current. Solution: Re-route the wire from LED cathode to battery negative to complete the circuit loop.
    2. Challenge: LED did not light up after the loop was closed. Solution: Learned LED is polarity-sensitive; swapped LED pins to match anode to high voltage and cathode to GND.
    3. Challenge: SPDT switch could not turn on the light. Solution: Understand the COM public terminal; toggle the switch to connect COM with terminal 1.
    4. Challenge: Excessively large resistance caused insufficient current. Solution: Replace 1kΩ resistor with 220Ω suitable for this 3V circuit.

Reflection

  • Key learnings
    1. A closed conductive loop is the fundamental requirement for any working circuit. Current flows out from battery positive and must return to battery negative.
    2. LED is a diode with unidirectional conductivity. It will block current if connected backwards.
    3. A SPDT switch has a common COM pin; it only connects to one output terminal at a time.
    4. The current-limiting resistor protects the LED. Resistor value directly controls current and brightness. Too large a resistance makes the LED unable to light.
  • How it applies to your teaching / context This hands-on simulation debugging process is a great model for maker & electronics lessons. I can let students build circuits first, discover faults by themselves, and practise systematic troubleshooting instead of only copying standard schematics. It helps learners build intuitive understanding of electricity.
  • Next steps or improvements
    1. Try to build the same physical hardware circuit with real components to compare simulation and real-world behaviour.
    2. Design an extended task: use the SPDT switch to toggle between two LEDs.
    3. Prepare a simple fault checklist for students to self-check their circuits.

Tools

  • Tools or software used Cirkit Designer
  • References or tutorials followed Basic electronics tutorial for LED circuits, SPDT switch introduction

Week 1 Assignments

  • [✓] Task 1: Build a physical circuit with DFRobot Boson modules to identify input and output modules
  • [✓] Task 2: Observe current flow, and understand the logic between inputs, outputs, button signals and actuators

Process

  • Steps followed

  • Prepare Boson modules: main control module (pink), push button, potentiometer, LED, buzzer, fan motor, and matching cables.

  • Plan wiring logic: The main controller is powered by USB. Buttons and potentiometers work as input modules to send signals to the main controller. LEDs, buzzers and fans are actuators (output modules) that respond to signals from the controller.
  • Connect the cables one by one: Plug input modules into the IN ports of the main controller, and output actuators into the OUT ports. Complete the physical circuit.
  • Power on and test: Press the button and check the response of output devices. Turn the potentiometer to observe changes in fan speed and LED brightness.
  • Debug repeatedly: Check ports carefully, distinguish input and output ports, fix reversed or wrong connections until the circuit works stably.
  • Trace current and signal flow: Power feeds the main controller. Input modules collect signals, the controller processes signals and sends commands to actuators.

  • Photos / screenshots of key stages Full photo of the assembled circuit, close-ups of wiring, photos showing working status when pressing the button or turning the potentiometer.

  • Challenges and solutions

  • Challenge: Could not tell inputs from outputs. The fan was connected to an input port and failed to run. Solution: Learn the rule — buttons, knobs and sensors are inputs; lights, buzzers and motors are outputs. Inputs connect to IN ports, actuators connect to OUT ports.

  • Challenge: Confused signal flow and current flow. Initially thought current travelled directly from the button to the fan. Solution: Clarify the logic: the button only sends control signals to the main controller. The controller receives the signal, makes logic decisions and separately powers the actuators. The signal path and power path are separate.
  • Challenge: Wrong port connections caused some modules to have no response. Solution: Check labels on the main controller, verify each connection, and test inputs and outputs one by one to locate faults.

Reflection

  • Key learnings

  • Clear distinction between input modules and output actuators: Buttons and potentiometers are inputs that send commands. LEDs, buzzers and fans are actuators that produce feedback.

  • Basic control logic: Inputs generate signals, the main controller handles logic, then triggers actuators. This is different from a simple series circuit.
  • Current path: The power supply powers the main controller first, then the controller supplies power to other modules. Input modules only pass control signals and cannot drive motors or LEDs directly.
  • Physical circuits differ from simulation: Port matching is critical in real hardware. Wrong ports stop the circuit and require step-by-step troubleshooting.

  • How it applies to your teaching / context Boson block-style circuits have a low barrier and are ideal for maker lessons. Students can distinguish inputs and outputs by hands-on wiring and directly observe the “command → response” logic. It helps students build computational thinking and makes abstract concepts such as signals, control, input and output easier to understand, instead of only learning simple series loops.

  • Next steps or improvements

  • Build an AND logic circuit: The fan or LED turns on only when two buttons are pressed at the same time, to learn AND logic.

  • Add more sensor inputs to create more trigger conditions.
  • Design student worksheets: Ask learners to define inputs and outputs before they start wiring.

Tools

  • Tools or software used DFRobot Boson maker module set, USB power cable
  • References or tutorials followed Boson module datasheet, maker teaching cases about basic input and output circuits
  • Boson Circuits

Week 1 Assignments

  • [✓] Task 1: Develop an interactive Christmas tree project with UNIHIKER K10
  • [✓] Task 2: Use the on‑board gyroscope to detect shake gestures and trigger falling snow animation, built with Vibe Coding on schematik.io

Process

  • Steps followed

  • Prepare the UNIHIKER K10 board and confirm its built‑in gyroscope sensor can detect acceleration and shake motion.

  • Define the project logic: The gyroscope acts as the input to capture shake gestures; the screen shows a static Christmas tree background, and falling snowflakes are the visual output response.
  • Open schematik.io and start the project with Vibe Coding. Describe the interactive requirement in natural language to generate the initial program code.
  • Calibrate the gyroscope trigger threshold: Tune the acceleration value to filter out small accidental tilts and only respond to clear shaking.
  • Implement the snowflake animation: Create multiple snowflake sprites, set random horizontal starting positions, falling speed, and reset logic when snowflakes reach the bottom of the screen.
  • Test and iterate: Shake the UNIHIKER K10 to check if snowflakes activate and fall smoothly. Adjust animation parameters and sensor sensitivity repeatedly.
  • Final test: The Christmas tree background stays on screen steadily; shaking the board triggers the snowfall effect as expected.

  • Photos / screenshots of key stages Screenshot of the Christmas tree snowfall interface, photo of UNIHIKER K10 hardware, code workspace screenshot from schematik.io.

  • Challenges and solutions

  • Challenge: The gyroscope was overly sensitive, triggering snowfall easily with slight unintended tilting. Solution: Increase the acceleration threshold in the code so only deliberate shaking activates the snow animation.

  • Challenge: Snowflakes fell too fast or stacked together on the display. Solution: Adjust vertical falling speed and randomise snowflake positions for a more natural look.
  • Challenge: It was difficult to translate the creative idea into complete functional code manually. Solution: Use Vibe Coding on schematik.io. Describe the interactive logic in natural language and refine the code incrementally with AI support.

Reflection

  • Key learnings

  • The gyroscope is an input sensor that captures physical movement and shake gestures, converting motion into digital signals for the program.

  • Interactive maker projects integrate sensor input, conditional logic and visual output. Physical gestures can trigger graphical feedback on the screen.
  • Schematik.io with Vibe Coding reduces coding barriers. We can turn creative concepts into runnable programs through natural language prompts and iterative tuning.
  • Fine‑tuning parameters is critical: sensor trigger sensitivity, animation speed and visual effects all require repeated testing for a comfortable user experience.

  • How it applies to your teaching / context Festival themes are great inspiration for student maker projects. Students can create engaging interactive works inspired by holidays. This links programming with culture and daily life, boosts creative thinking, and lets learners explore sensor input, event triggers and screen animation in a fun, motivating way.

  • Next steps or improvements

  • Add more interactions: Change the colour of Christmas tree lights when shaking, or add festive sound effects.

  • Expand gesture control: Use left/right tilt gestures to adjust snowflake density.
  • Guide students to design their own festival‑themed interactive projects using the same Vibe Coding workflow on schematik.io.

Tools

  • Tools or software used UNIHIKER K10 single‑board computer, schematik.io (Vibe Coding)
  • References or tutorials followed UNIHIKER K10 gyroscope API documentation, screen animation sample projects for schematik.io

✏ Edit this page