Self balancing bike with engineering kit rev2

Hello! A while ago I bought the Arduino engineering kit rev2, I’ve built the motorcycle project and have been wanting to program the Arduino with code to balance.

I know that the guide says to use matlab to use the board but I want it to be Arduino code, and anyway I don’t have access to matlab anymore.

I know that the code involves PID but I really don’t understand how it works and how I’m supposed to implement it.

Any help?

A couple of options: write the C/C++ equivalent of the Matlab code, or try GNU Octave, a free (but slower) Matlab replacement.

Yes but even if I had matlab. I want to use Arduino code.

You could use the search engine you trust, it'll give you loads projects just doing this.

The Arduino is coded in C/C++, the first option I suggested. The entire point of the engineering kit is to learn how to write a program for a self balancing bike.

Indeed, I found many projects like this online, but most use code I don’t know how to change for it to work on my bike, or use a different type of balancing

Then it is time for you to put on your back-to-school hat and begin your education.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.