Data Sheet
:CREATE BBC micro:bit interface for Fischertechnik
www.kitronik.co.uk/5656
Software:
Custom MAKECODE blocks have been created for driving the electrical components supplied in the
Fischertechnik Electronics kit. These include switches, LED, Phototransistor and NTC resistor.
Motor On – the block allows the user to select which motor, the direction required and the speed of the motor
(between 0 and 100)
NTC Block – measures the temperature in Celsius and returns a number. It is possible to select either P0 or P1
Phototransistor Block – take a voltage reading from the phototransistor, select either P0 or P1. returns a value
between 0 and 255
LED Block – Connect the LED to either P0 or P1 from the selection and choose to either turn it on or off
Motor Off – select which motor to stop.
Example Code:
The example code reads the temperature of the NTC resistor (on P0)
and turns on an LED on P0, and Motor 1 when over 25 degrees C.
When below 25 degrees C, the LED and Motor 1 are turned off.
Pressing Button A and Button B will start and stop Motor 2.
The Makecode blocks and microPython example code are available at:
https://github.com/KitronikLtd/pxt-kitronik-fischertechnik
and
https://github.com/KitronikLtd/micropython-microbit-kitronik-
fischertechnik
Buttons – inputs SW A and SW B on the board link with using the standard button press blocks in Makecode.


