GithubHelp home page GithubHelp logo

Comments (7)

freeifier avatar freeifier commented on August 17, 2024

I figured it out myself, for people building this project you have to be careful when switching around motor connections, this will also impact how the cube reacts to specific axis. The best is to physically switch the motor connectors if the wrong motor spins for the given axis. Otherwise you will have to change the values which the motors will receive.

from self-balancing-cube.

remrc avatar remrc commented on August 17, 2024

A bigger battery is not good, but I didn't understand what you meant: "have to be careful when switching around motor connections, this will also impact how the cube reacts to specific axis"? You got the axles mixed up? Off course, this is important. But this is easy understand and swap if necessary.

from self-balancing-cube.

freeifier avatar freeifier commented on August 17, 2024

My Motor connections differ from yours in that, that the
1->3, 2->1 and 3->2. So I changed the pin output in the code, but than also the directions was mirrored, wo I changed that in Code too. Then I got two sides Wirkung first one but removed the battery than the second worked too.

Then the 3rd side die not work at all, I Bad to change the value given to Motor1_Control from pwm_Y to -pwm_X.

Then all sides worked fine but edge point, if had to change the values too so after I understood how the cube is counteracting the forces I tested 2 Motors controlling one Y axis and then figured out X axis and then it worked.
So awesome.

from self-balancing-cube.

remrc avatar remrc commented on August 17, 2024

Oh, not needed to change pins in code, not needed to change motors directions. Only swap motor connections. I not declare what motor is 1, what 2 and what 3. So it is not clear which motor is on which side of the cube. But it is easy to determine. Only swap motor connections!

from self-balancing-cube.

freeifier avatar freeifier commented on August 17, 2024

Yeah, but the cables wouldn't fit otherwise, so I took this path the nice thing is that I understand the code and know where everything is, learned also about PID controllers on the way so nice excersise.
It is also nice code solid structure found the stuff quite well.

from self-balancing-cube.

remrc avatar remrc commented on August 17, 2024

Yes, understanding what is where - good. But there is no PID here...

from self-balancing-cube.

freeifier avatar freeifier commented on August 17, 2024

Ok it seemed that way not that familiär with pid bit you have a proportional term than one which responds to Motorspeed and one Which you can tune with I thought it might stand for Intergral.

What type of controller is it then ?

from self-balancing-cube.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.