Robot Follows the Edge of a Black Line
This is an example of how to create a program this will make your robot follow a line. It doesn't actually follow a line at all, but follow the edge between a black line and a white area. The challenge for you is that it was written in the old app for the EV3 robots. The concepts are the same, the programming app is slightly different. You will need to use this program as a model to create your own in the Spike Prime app.
Spike Prime Line Follow
Notice! The color sensor is raised above the ground, facing down so that it can scan the ground for reflected light. There is no specific way you have to attach your color sensor as long as it is about a centimeter off the ground.
This video explains how to make your robot follow a line in Spike Prime.
The instructions below were made for EV3. If you think you need to calibrate your light sensor with Spike Prime, and you can't figure it out, let me know. we will need to figure it out together.
How to Calibrate your Light Sensor