Comments (7)
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.
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.
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.
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.
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.
Yes, understanding what is where - good. But there is no PID here...
from self-balancing-cube.
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)
- Schematic Feature Request HOT 3
- Print Settings HOT 1
- The motor is not moving HOT 14
- schematic missing information HOT 2
- esp32 q1 transistor code HOT 1
- Missing license
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from self-balancing-cube.