Pages: [1]   Go Down
Author Topic: Laplace transform and PID controller library ?  (Read 1294 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

This is my first post on this forum so sorry if it isn't written as it should be, if anything has to be changed i'd be glad to change it.

For a science project in my engineering class I choosed to build a balancing bot, all the hardware is already build and i am now writting the code to stabilize it.
My code will be based on the one shown in "Arduino robotics" published by Apress, but my plan is to improve the stabilizing process by using a PID controller (in facts a PI).
I have already found all the equations and i will soon have found the gains to use for the controller , my only problem left is to code it on my arduino board.

The board i'm using is an arduino uno SMD version.

So i wondered if anyone knew about an existing library that could be used to implement such a controller and my equations ?

PS: sorry for my poor english  i'm from France.
« Last Edit: May 22, 2012, 02:43:55 am by gamazepsilon » Logged

Sydney, Australia
Offline Offline
Edison Member
*
Karma: 33
Posts: 1284
Big things come in large packages
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a PID libraries in the libraries section of the website. There is also lots out there if you google "arduino PID".
Logged

Arduino libraries http://arduinocode.codeplex.com
Parola hardware & library http://parola.codeplex.com

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 636
Posts: 50280
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is also a Robotics section with a long running thread on a self balancing robot that is worth a read. Or was, at least, before you committed to your hardware design.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@marco_c: Thanks, i looked for Laplace tranform library but i didn't think to look for a PID one only , and it kinda solves my problem (sorry for the pointless thread, silly me ..)

@PaulS : In facts I did the hardware a month ago and i looked a this thread at this time (eveen though i hadn't registered yet)

Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


my plan is to improve the stabilizing process by using a PID controller (in facts a PI).

That sounds like a good fun project. I wish we'd had toys like this to play with when I was studying this type of thing.

The 'D' (differential) element of the PID algorithm provides a damping effect and I would have thought was essential to get the system to settle.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I did not know the 'D' was so usefull, in facts the only reason why i choosed a PI is that it is much easier to settle but if i happen to have some spare time (won't be easy with Diablo III lurking on my desk) i'll try to use one.

Actually it's not really a toy to play with since my teacher told me to build one and then did not help me at all after ....
Logged

Pages: [1]   Go Up
Jump to: