Where are the example Arduino sketches for Ultimate


#1

I have looked and looked but can not find a repository for sketches to control balance robot. Do I have to write this myself? I’ve looked through the documentation and don’t find what I need. I see people with videos of their balance robot working…I must have missed something. Can someone offer advice?

Thanks!


#2

hello,

the balancing mode is part of the megapi firmware (this is executing the balancing when you control by smartphone app), so you might want to take a look at how to set up with arduino here:

And if you’re interested in the code, it is here:


search for “BALANCED_MODE” and you can see the PID control details.


#3

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