﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>RoboticsConnection User Forum / Serializer Robot Controller Support / RoboticsConnection Hardware Support  / How configure PID ? / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>RoboticsConnection User Forum</description><link>http://roboticsconnection.com/userForums/</link><webMaster>info@roboticsconnection.com</webMaster><lastBuildDate>Tue, 06 Jan 2009 17:20:03 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>I think Ringo confused you a few posts back, when he referred to using a floating PID parameter.   The firmware doesn't support a floating parameter, and is integer based only.&lt;/P&gt;&lt;P&gt;He was talking about possibly adding it to a future release of the firmware.  :)  I apologize for the confusion.&lt;/P&gt;&lt;P&gt;Sounds like you're making good progress!  The PID stuff just takes some trial runs to get it set exactly like you want it.&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Mon, 28 Apr 2008 10:08:55 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>ok, here is the process that I have used to configure my vpid and dpid&lt;br&gt;1- first off all, configure vpid&lt;br&gt;(as developped in my previous message)&lt;br&gt;you have to find the right curve that increases well (without oscillation and vibration, without jerk, something like a cumulative chi-square distribution. (using vpid and mogo)&lt;br&gt;2- configure dpid&lt;br&gt;set the dpid and use digo&lt;br&gt;&lt;br&gt;so, one main question remains:&lt;br&gt;currently, VPID are explained with float values&lt;br&gt;(vpid with 0.1 for V, 0 for P, 0 for I and 10 for D, that is corresponding to 10 div regulation according to coders)&lt;br&gt;P defines approximatively the starting slope&lt;br&gt;BUT, in the serializer doc, pids are available with integer arguments ?&lt;br&gt;so when you are at 1 for P value, how to divide P again? &lt;br&gt;&lt;br&gt;(ps: contrary to my previous message, CFG ENC works as mentionned in the doc but nothing is different between simple and quadric modes.&lt;br&gt;I have tested all this using two differents motors, and the one with 512 div per wheel circonference  needs to start slower (jerking at start with P = 1) , so it needs a smaller P value, but once again, how to fix P at 0.1)&lt;br&gt;&lt;br&gt;</description><pubDate>Sat, 26 Apr 2008 17:41:57 GMT</pubDate><dc:creator>n at mime</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Dear Rigo, many thanks for your interesting reply.&lt;br&gt;&lt;br&gt;I have tried vpid with following steps:&lt;br&gt;(serializer reply are mentionned under stars)&lt;br&gt;-------------------&lt;br&gt;getFirmware&lt;br&gt; * 1.5.1&gt; * &lt;br&gt;vpid 1:0:5:2&lt;br&gt; * ACK&gt; * &lt;br&gt;clrenc  1 2&lt;br&gt; * ACK&gt; * &lt;br&gt;getenc&lt;br&gt; * 0 0&gt; * &lt;br&gt;mogo 1: 20 2:20&lt;br&gt; * ACK&gt; * &lt;br&gt;%%%%% wait 1 sec to release the mogo &lt;br&gt;getenc&lt;br&gt; * 6169 6206&gt; * &lt;br&gt;setStopMotor&lt;br&gt; * ACK&gt; * &lt;br&gt;-------------------&lt;br&gt;&lt;br&gt;so it seems to work well&lt;br&gt;vpid works but dpid is more interesting&lt;br&gt;&lt;br&gt;from now, few problems appeared:&lt;br&gt;1) sometimes, the first command doesn't work (i.e. replies * NACK&gt; * )&lt;br&gt;2) cfg enc seems to be different than the doc&lt;br&gt;-------------------&lt;br&gt;cfg enc 0&lt;br&gt;* ACK&gt; *&lt;br&gt;&lt;br&gt;cfg enc 1&lt;br&gt;* ACK&gt; *&lt;br&gt;&lt;br&gt;%%%%%% but both reply&lt;br&gt;cfg enc&lt;br&gt;* ACK&gt; * &lt;br&gt;%%%%%% (that is different from the doc, &lt;br&gt;%%%%%%  serializer WL 2.1, p22 ??? )&lt;br&gt;-------------------&lt;br&gt;&lt;br&gt;is there anybody who has same problems?&lt;br&gt;&lt;br&gt;So, I will try dpid today and report it soon&lt;br&gt;Does anybody can show me a good dpid sequence?&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 24 Apr 2008 02:54:13 GMT</pubDate><dc:creator>n at mime</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Thanks for informations&lt;/P&gt;&lt;P&gt;But can you said me which parameters are float (vpid,dpid,mogo,digo)? because in you document i d'ont find anything about float</description><pubDate>Wed, 23 Apr 2008 22:52:58 GMT</pubDate><dc:creator>Arnaud</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>The ramping down function will be tied to the P parameter, If you P is too high then it may stop abruptly. We have tested this extensively with the stinger and traxter, and a little with a couple home-brew robots. Every setup is different however. I don;t think we coul d show the code without publishing just about the entire Serializer code because it is so linked with everythign else but i can try to explain how we did it.&lt;/P&gt;&lt;P&gt;the VPID parameters are pretty straightforward. this is what MOGO uses. It works to maintain a constant velocity for each wheel.&lt;/P&gt;&lt;P&gt;The way the DIGO command works is it is sort of a wrapper around the VPID stuff.&lt;/P&gt;&lt;P&gt;If you call DIGO and tell it to go 1000 ticks at a speed of 50 with an accelleration of 5, then Digo is going to ramp up the speed variable that MOGO uses until it reaches 50. So MOGO is maintaining the 50. Then as the counters approach 1000, the DIGO command start decreasing the speed variable the MOGO uses untill the distance is reached. That is why the VPID parameters must be tuned before the DPID ones are.&lt;/P&gt;&lt;P&gt;So try playing with the P in DPID. If you cannot get it low enough then we may need to make a change so it can be fractional or somethig like that. You may need a P of 0.1 or somehting depending on your setup. The math is there and it works, we jsut need to feed it the right constants.&lt;/P&gt;&lt;P&gt;Ringo</description><pubDate>Wed, 23 Apr 2008 06:05:01 GMT</pubDate><dc:creator>ringo</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Dear Arnaud, I have the same problem. Motors controlled by the serializer using the pid over a fixed distance brutally stop when this fixed distance has been reached. Each motor seems to stop independantly. No decelerating ramp seems to be calculated in the serializer (and so on, no trapezoid control). When doing this, the robot shifts forward, left or right, and this pid command becomes useless.&lt;br&gt;Maybe jsummerour could show us how the pid control has been done? &lt;br&gt;Does anyone have successfully use the dpid command? (without drift due to stop)&lt;br&gt;Is there a way to see the whole code used here to implement dpid (I mean the serializer class)? &lt;br&gt;&lt;br&gt;</description><pubDate>Tue, 22 Apr 2008 19:48:12 GMT</pubDate><dc:creator>n at mime</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;I have configure Vpid and dpid but can you say me the form of your pid&lt;/P&gt;&lt;P&gt;Half trapezoidal , trapezoidal ??&lt;/P&gt;&lt;P&gt;Please!!!!!&lt;/P&gt;&lt;P&gt;Arnaud</description><pubDate>Tue, 22 Apr 2008 12:56:42 GMT</pubDate><dc:creator>Arnaud</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>When i read the doc, i read "you must also configure the VPID and DPID parameters" p26&lt;/P&gt;&lt;P&gt;inside digo command.&lt;/P&gt;&lt;P&gt;And you say me the parameters are independants ?(i don't understand)&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arnaud</description><pubDate>Tue, 22 Apr 2008 04:01:11 GMT</pubDate><dc:creator>Arnaud</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Inside pour PID algo :&lt;/P&gt;&lt;P&gt;The cmd form are trapezoidal ?(start low speed (acceleration),middle1 max speed, middle2 max speed, end low speed(deceleration) ) ????&lt;/P&gt;&lt;P&gt;Because when i test the pid i have only acceleration to max speed and stop ??? i don't saw the deceleration.&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Mon, 21 Apr 2008 23:36:01 GMT</pubDate><dc:creator>Arnaud</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>VPID sets the Velocity PID parameters, and DPID sets the Distance PID Parameters.   &lt;/P&gt;&lt;P&gt;Digo command the Serializer to run the motors, based on the DPID parameters a specified distance.  Mogo commands the Serializer the drive the motors at a specified velocity, based on the VPID parameters.&lt;/P&gt;&lt;P&gt;It's all documented in the User Guide.  Just read it.&lt;/P&gt;&lt;P&gt;Best Regards,</description><pubDate>Mon, 21 Apr 2008 13:10:08 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Thanks,&lt;/P&gt;&lt;P&gt;I have seen your articles, but VPID and DPID are independant ?&lt;/P&gt;&lt;P&gt;If there are independant when i read DPID article, the digo cmd modifie the vpid values ?&lt;/P&gt;&lt;P&gt;The cmd form are trapezoidal ?(start low speed (acceleration),middle1 max speed, middle2 max speed, end low speed(deceleration) )&lt;/P&gt;&lt;P&gt;What is the use of restore ? (factory default settings ? reset all card ?)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arnaud</description><pubDate>Sun, 20 Apr 2008 23:49:09 GMT</pubDate><dc:creator>Arnaud</dc:creator></item><item><title>RE: How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>Hi Arnaud,&lt;/P&gt;&lt;P&gt;We have a section in the Serializer User's Guide dedicated to explaining how to configure the PID settings for your robot.   Read and work thru that, and if you have any specific questions, please don't hesitate to post.&lt;/P&gt;&lt;P&gt;Best Regards!</description><pubDate>Sun, 20 Apr 2008 07:03:49 GMT</pubDate><dc:creator>jsummerour</dc:creator></item><item><title>How configure PID ?</title><link>http://roboticsconnection.com/userForums/Topic362-4-1.aspx</link><description>I want to configure PID for my robot with serializer but i don't find anything for calculate vpid and dpid values.&lt;/P&gt;&lt;P&gt;if you have calculate personnal values can you help me&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arnaud</description><pubDate>Sat, 19 Apr 2008 15:10:17 GMT</pubDate><dc:creator>Arnaud</dc:creator></item></channel></rss>