Skip to main content

Line flow module


  • Ring:bit car V2 line following module is a dedicated module designed for the Ring:bit car V2, it is easy to be installed to achieve the line following function for the Ring:bit car V2.

  • Equipped with double infrared probes, it can detect the distance between 2~12mm accurately that can achieve the function of line following around the circles, the detection of the black lines and the detection of the edge.


  • The micro:bit can drive it directly with the input voltage of this module in 3V~5V.
  • It only needs one IO port it with standard 3-pin GVS ports.
  • It uses the infrared light to detect with a strong anti-interference capability.


NameRing:bit car V2 line following module-
Working VoltageDC 3-5V-
PortRing:bit car dedicated pin portsFixed by screws
Types of Output SignalSimulation-
Effective Distance2~12mm-
Dimension34.15 x 27.20mm-
Net Weight4.7g-


Quick to Start

Hardware Connection

  • The first step is to insert this module to the baseboard of the Ring:bit car V2.

  • The next step is to fix the module with the two screws.

  • Completed.

Software Programming

  • Program a simple line-following code in the makecode .

  • Initiate the connection ports for the left and right wheels to P1 and P2.

  • When the left detection probe detects deviation from the black line, the right wheel would stop moving and the left wheel would adjust to go back to the black line at the speed of 50.

  • The right detection probe would work as the same as the way of the left detection probe works.


You can also download the code directly below:


  • The Ring:bit car runs around the circle slowly.