Additional sensors and actuators can be add as Jacdac modules. MicroCode automatically detect additional hardware and will show the additional tiles if supported.

The railroad crossing sample shows a program using a servo and a LED ring Jacdac module.

Railroad crossing MicroCode program

The servo set angle tile servo uses a servo motor move to move an physical arm. The servo set angle tile servo arm orientation is mapped to the wall clock hours: 0 (or 12) is on rotated 90 degree from the resting position to the left, 6 is rotated 90 degree right from the rest position. There is also a secret animation mode when you press the micro:bit logo button.

when press button A, do move servo to 1 o'clock

  • when press press button A button A, do servo set angle servo set arm to 1 o'clock.

The LED LED uses a programmable LED ring module to display blue and red colors.

when press button A, turn LEDs to red

  • when press press button A button A, do LED LED set all color to red red, black and repeat.

This guide was first published on Oct 24, 2022. It was last updated on Oct 24, 2022.

This page (Accessories) was last updated on Oct 24, 2022.

Text editor powered by tinymce.