Balboa Line Following Sensor Code

Hi,

I am currently trying to get a Balboa robot following a line using the dedicated 5 channel reflectance sensor array.

There is a video on the product page of the sensor array which succesfully shows a Balboa achieving line following.

Would it be possible to get the code that was used for making that video?

Best
jns

Hello.

Here is a compressed folder with the code running in that video.

Balancer-linefollower.zip (7.5 KB)

We wrote this program quickly back in 2018 by modifying the Balancer example program from the Balboa 32U4 Arduino library available on github. Keep in mind it is not as polished as our usual published examples, so in general, the comments are not all updated for the line following purpose, and will probably take some work to optimize for your robot’s combination of gearmotors, gear ratios, and wheels.

Additionally, the Balance.cpp and .h files are a little different from the ones on github. We took a look and suspect the differences will be inconsequential, but it might be worth looking at and testing yourself too.

- Patrick

Thank you Patrick, very helpful!

Looking forward to testing it out :slight_smile:

Have a nice day!