User Manual

Software Flow ................................................................................................................................ 31
Code Explanation ........................................................................................................................ 33
Light Following .................................................................................................................................... 34
How It Works ................................................................................................................................... 34
Principle ........................................................................................................................................... 34
Procedures ..................................................................................................................................... 35
Software Flow ................................................................................................................................ 37
Code Explanation ........................................................................................................................ 40
Line Following ..................................................................................................................................... 41
How to Follow Lines ...................................................................................................................... 41
Principle ........................................................................................................................................... 41
Procedures ..................................................................................................................................... 41
Software Flow ................................................................................................................................ 45
Code Explanation ........................................................................................................................ 49
Combination ....................................................................................................................................... 50
Appendix .................................................................................................................................................. 53
Appendix 1: Modules ....................................................................................................................... 53
Robot HATS ..................................................................................................................................... 53
PCA9865 .......................................................................................................................................... 54
TB6612 .............................................................................................................................................. 55
Line Follower Module ................................................................................................................... 55
Light Follower Module ................................................................................................................. 56
Ultrasonic Obstacle Avoidance Module ............................................................................... 57
SunFounder SF006C Servo .......................................................................................................... 57
WiFi Adapter .................................................................................................................................. 58
DC Gear Motor ............................................................................................................................. 58