1

Topic: Inverted Pendulum controlled with Mobile

https://media.giphy.com/media/9SIB3MUW91Ar0LoJXH/giphy.gif

Video here
https://www.youtube.com/watch?v=2drqoHPP7z0

Find more on Arduino Project Hub
https://create.arduino.cc/projecthub/ur … p;offset=0

2

Re: Inverted Pendulum controlled with Mobile

Hi urzik,
your project is cool and really stable !  smile
I have by own made some Inverted Pendulum robot, but i never really succed to have the best stability a long time, after a while, even it stays stable, it starts to move forward without be able to compensate the movment then falls down.
So i loaded ur .ino and tested, unfortunatly there is an error message saying it is unable to compilate on arduino mega !
Have you an idea what is linked ?
Thanks

Serge

3

Re: Inverted Pendulum controlled with Mobile

Hi Serge,

Thank you for your comment. I guess it's because you don't have all librairies ;  I have added them on Arduino project hub.
However, the code is more to be understood than copy/paste as you need exactly same components and same dimension to make it work.
Be sure you use a PID, it takes time to tune parameters (Kp, Kd, Ki) but after work very well.
As well, a 12V battery is necessary to control it.

If you have other question, please ask on Arduino project hub, I don't receive notification on this forum.

4

Re: Inverted Pendulum controlled with Mobile

Thank you for ur reply Urzikh,
I'm agree with you, I cant copy and past wink
Anyway what i look for to understand the most is the way u analyse the gyro informations then calculate the power for motors. As i wrote before, mine run not bad standing up well... but after a while he finaly fall down because unable to compensate a moving forward or backward.
I will post some pics of my own, so u will see the difference with yours !
I will have a look about the library, u maybe right about it.

Serge

5

Re: Inverted Pendulum controlled with Mobile

i'm sad because i don't understand the way to share some pics with U on this page sad
Is there an other way for ? maybe some mail adress !

Serge