Tracking Module for ring:bit car v2
-
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.
Features
-
The micro:bit can drive it directly with the input voltage of this module is 3V~5V.
-
It only needs one IO port in the Ring:bit with standard 3-pin GVS ports.
-
It uses the infrared light to detect with a strong anti-interference capability.
Dimensions
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.
Extension is completed.
Software Programming
-
Program a simple line-following code in the makecode .
-
The equivalent connection port for the left and right wheels is P1 and P2 when on start.
-
When the left detection probe deviates from the black line, the right wheel would stop moving and the left wheel would adjust to go back to the black line in the speed of 50.
-
The right detection probe would work the same as the way of the left detection probe works.
-
When both of the detection probes detects the black line, the car would go forward in the speed of 100.
Links for the code: https://makecode.microbit.org/_Jh2RVDMRwDz1
Result
It can run around the circle slowly.
Parameter
Files