Hello,
I'm trying to build a self balancing robot with (Uno, MPU6050, L298N module, DC Motors etc).
Can anyone recommend a project that works / has code including libraries please?
Use the forum Google search function in the upper right of this page to search for the key words of your project. You will probably find many similar previous project discussions and code to get you started.
mmm did that. Most have challenging issues in getting it to work, not with the simple hardware but with the libraries.
LymeRegis:
mmm did that. Most have challenging issues in getting it to work, not with the simple hardware but with the libraries.
Natures warning sign.
Not a "cut and paste" project.
ha ha!
Yes, I understand your comment. Quite correct.
But, given my level of technical expertise, granted not in this particular niche, if I cant do it then it wont be accessible to a very wide section of the target population. This is evidenced by the low numbers who engage with the projects.
To be frank, its disappointing that even a determined beginner can be turned off by such trivial problems that are essentially sloppy documentation. And before someone says, you know what, ask yourself, what is the point of publishing these projects if Joe public cant get them done?
They aren't difficult except for the sloppy documentation.
zoomcat
MMm. Very 'in crowd' but please explain.
Nice car.
A balancing robot is NOT a simple project and very, very few people are capable and have the time and interest to build one from scratch and get it to work well. As in a few thousand people, world wide. And of those, how many take time to carefully document their work (unpaid)?
Details like the robot frame size, weight and shape, component placement, motor power and gear ratio, wheel size, battery voltage and weight, choice of control algorithm, processor speed, etc. ALL affect the parameters required to achieve balance and reliable operation. Advanced math, as in upper division control theory, is required to fully understand any of the common control algorithms.
Inexperienced people should consider buying a standard framework, where the hardware and software is understood and known to work, yet capable of refinement. The Pololu Balboa is one example; inexpensive and well made.
"MMm. Very 'in crowd' but please explain."
Just looking at the below link, I think a motivated person with reasonable technical skills could make a successful DIY balancing robot without a lot of issues. Looks like there are a number of reasonably priced kits available for those that want a quick project. Just saying, no sense reinventing the wheel unless that is the aim of the project.
A gyroscope can stand.
If the center of mass is below the center line of the axle, it will self balance.
Thanks.
I've familiarized myself with the tutorials in a starter kit.
A project is a good way to learn and I want to play with a PID controller set-up because the maths involved interests me.
Since I already have the necessary parts necessary all I need is to copy some code. The code that others have used, I cant get to run ... because I cant figure out a problem associated with the libraries.
For specific problems with code, post it according to the guidelines in How to use this forum. Please include a hand drawn wiring diagram with pins and parts clearly labeled, and provide details of the power supply.
Sorry, a spinning wheel/gyro will counter force applied to change the orientation of the spin axis.
Standing with some precession is still standing. The gyro will try and maintain a horizontal axis, turning bicycle wheels help keep the bike stable.
So maybe a robot with a gyro could react to tip by twisting the axis.