Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Project Request

Return
Serge Tremblay
Toley

posted on 2011/08/30 09:07:46 PM CEST

Motor Control

PID library

I would like to have a PID library to control servo motors with the feedback of an accelerometer for balancing a quadcopter. I know theres a lot of request here and you surely could not fill them all, but you could open a pool to see the most popular and after begin by the less time consuming.

USER Comments

Farrukh Hussain
programmer5

posted on 2012/02/14 04:32:40 PM CET

i have done pid controller project at college, how i can upload c file here? actually i'm new here. i have checked it by attaching sevro motor, h-bridge and oscilloscope, it works perfect. when we increase load, duty cycle increase.

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 236 in "PID library" request.

Serge Tremblay
Toley

posted on 2011/09/14 01:18:00 PM CEST

Hello Adrien, I already have build a board with a dsPIC30F6014A. I can read the accelerometers (I2C) and have speed control over the motors (using the Output compare module). I just need an algorithm to send proportional compensation to the motors depending on the error read from the accelerometer.

Something similar to what is done in Arduino.
http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 90 in "PID library" request.

Adrien Letellier
_adrien_

posted on 2011/09/06 10:45:00 AM CEST

Hello

Your request can be done but there is some points that needs to be clear. What kind of pic do you want to use?
I recommand one with a mul operand. a PID controller is only used to give a command from an error. In your case you will have to do all the others things (to have the position from the accelerometer some filtering...).

Let me know.

Regards
Adrien

  • Rating:
0
No Abuse Reported

Do you want to report abuse comment ID: 60 in "PID library" request.