1. BitBotXL

This is for BitBot XL v1.1, 2020 and v1.2, 2022.
v1.2 has drive straight calibration using a downloadable hex file. See: https://4tronix.co.uk/blog/?p=2479.
For the makecode github of its code see: https://github.com/4tronix/BitBot/blob/master/bitbot.ts

Warning

v2 microbits are required for the module used here.
v1 microbits lack the memory space required.
The 4tronix BitBOt XL has 2 independent motors, 2 digital line following sensors for line tracking, optional distance sensor for obstacle avoidance, 12 LEDs, 2 analog light sensors and a buzzer, all powered by 3 AAA batteries.
The servo outputs and are not used here.
bitbotxl HC_SR04P
Dimensions 11cm x 12cm x 5.5cm (with vertical microbit)

1.1. Pins

The pin numbers used to control different parts are below.

Pin

Purpose

pin0

Buzzer

pin1

Right Light Sensor

pin2

Left Light Sensor

pin16

Left Motor

pin8

Left Motor Backwards

pin14

Right Motor

pin12

Right Motor Backwards

pin13

12x LEDs

pin15

Ultrasonic

I2C address 0x1c (28)
Left Line Sensor bit 0
Right Line Sensor bit 1