Project help? Answered
I am trying to build my own version of OneWheel. [ Working principle similar to that of a segway.]
I am using PMDC motor MY1020Z, sabertooth motor driver 2x60, Arduino Mega, MPU6050, 12V 7Ah Lead acid batteries for my build. I have written a code and it seems to work fine, but occasionally the Arduino stops and motor spins independently of control signals. I would like to have your inputs how I could prevent this glitch and point out any mistakes that I might be making.
I can send the photos of my build, and the arduino code to you.