Connect red and green wire to 3.3V or 5V power output. Micro:bit connecting: Blue wire (echo) to P3 and black wire (trig) to input P0 . Need to add package "SONAR". For Arduino and Raspberry BLUE wire = ECHO, BLACK wire = TRIG.
ULTRASOUND sensor I2C - (value in mm) 3.3V - 5V
Power supply 3.3V or 5V (red and green). The BLACK wire connects to the SCL connector, and the BLUE to the SDA connector of the I2C port. An example program can be seen in our programming school.