Controlling an Inverted Pendulum with a Microchip Microcontroller
By frabs Sep 7th, 2008
At "Scuola Universitaria Professionale della Svizzera Italiana" (Lugano, Switzerland) an Inverted Pendulum was controlled using FLEX board with Scilab/Scicos.
The FLEX Base Board and the FLEX Multibus Board with a CAN module was used for swinging-up and maintaining the inverted equilibrium. The Source code was entirely generated using Scilab/Scicos , an automatic code generator for control systems.
Software
- Scilab/Scicos
Hardware
- FLEX Multibus Base Daughter Board
- FLEX Multibus CAN module
- Inverted Pendulum setup
For more informations click here.
- frabs's blog
- 4045 reads





The Pic and the Pendulum,
The Pic and the Pendulum, now that's something E.A.Poe could have easily handled!
LOL.
LOL.
asking for help
hello im doing my project is inverted pendulum rotary.now im trying to do it with Atmega 32. it's possible or not?
can you recommend for me a good way to do it.
RE: asking for help
It can be done. I am not sure in the frequency operating difference between the ATMEGA32 and the dsPIC used in this article, but in case it is lower for the microcontroller you choose, I'd say a good way of doing it would be not to use automatically generated code, as I am not very confident in the efficiency of such a method in terms of execution speed. It might be that in the project above the dsPIC was just an overkill from an operating frequency point of view, and used only to compensate for the slow code generated automatically. So just write your code by hand.
Regards,
Cristian
Post new comment