Resources
Basic Robot Test Programs
-
Motor connection test
Click here for codeBasic Code to test the Motor connections for the LF-2 Line Follower Kit
-
Sensor read program
Click here for codeProgram to print out the raw sensor values read by the line following sensor array
New LF2 Kit Program
New Code for Line Following with the LF-2 kit using 5/7 channel sensors. This code does not require any library installations. Work in progress!! So try with caution.
Edit Lines 18-20 as per your robot and track details.
LF2 Kit Program
Older code for the LF-2 Line Follower Kit. This code requies the TB6612FNG Library which needs to be installed separately.
This code is adjusted for 5 sensors reading a 25mm black line. Configure lines 13-16 as per your robot to get optimal performance.
You can change speed using the lfspeed variable on line 42
8 Channel Line Follower Program
Sample Code for Line Following using the 8 channel sensor
Maze Solver Program
Sample Maze Solver Program for 3mm white line of a black background
Sample Arena Designs
Feel free to use these sample designs to test out your robots.