View unanswered posts | View active topics It is currently Thu Jul 10, 2014 8:26 am






Reply to topic  [ 14 posts ] 
Minsensor Lineleader 
Author Message
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Minsensor Lineleader
OK, a couple of (advanced) newb questions;

I have just started to get serious with a lineLeader, and thus just moving beyond the demo program provided on their (mindsensors) web site.

First thing I notice, is that robotC 'allow third party sensors' includes the Mindsensor lineFollower. I assume that is a typo? and is indeed the lineLeader?

Next thing is the mindsensors sample robotC code does not use any robotC I can decypher. So does the 'built in' support in robotc, do anything? or should I just stick to the mindsensor supplied include file?

Is there any guidance as to how the lineleader PID works? I'm not asking for the basics, I'm actually asking about any of modified PIDs (integral windup, deadband, feedforward, cascade), and which type if any, might they be using? I'm leaning towards cascade as I write my own. I guess I could ask them, but it seems like a public forum would share the answers better.

And last, any guidance as to what things I should 'log' to assist in tuning a PID? I assume in, time, error, out(PID) - not being able to get at the PID from the line leader (you only access the constants, not the actual values) is why I believe I need to write my own, am I correct? How badly does logging data hit the CPU? am I better trying to store in whatever memory I have left (round robbin) ? then dump to a file when stopped?

Sorry, advanced newbs are the worst :|

_________________
Mike aka Spiked3
http://www.spiked3.com


Fri Jun 08, 2012 12:51 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3155
Location: Rotterdam, The Netherlands
Post Re: Minsensor Lineleader
Use the MSLL driver in my suite and all will be well!

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Jun 08, 2012 1:12 pm
Profile WWW
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
mightor wrote:
Use the MSLL driver in my suite and all will be well!

- Xander


I very likely will. But, still curious on the questions. Did you implement a genetic algorithm for cascading PID? :)

(http://journal.library.iisc.ernet.in/vo ... r4/343.pdf)

_________________
Mike aka Spiked3
http://www.spiked3.com


Fri Jun 08, 2012 2:00 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3155
Location: Rotterdam, The Netherlands
Post Re: Minsensor Lineleader
Yes but then my dog ate the source code.

True story.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Jun 08, 2012 2:26 pm
Profile WWW
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
mightor wrote:
Yes but then my dog ate the source code.

True story.

- Xander


That's why I always keep my dogs in a virtual machine :|

_________________
Mike aka Spiked3
http://www.spiked3.com


Fri Jun 08, 2012 9:15 pm
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
mightor wrote:
Yes but then my dog ate the source code.

True story.

- Xander


I was just looking at some of your old articles and came across this
"This is the most interesting part in building a PID control. In this step one should tune the Kp, Ki and Kd values to get the best results. I cannot give you the values because what works for me will not work for you. The optimum Kp, Ki and Kd values vary a lot from robot to robot. And the best way to determine the optimum values is by trial and error."

In fact, that is known as "the poor man's genetic algorithm", so your story is plausible. Now if I could just get my hands on one of them fancy new mindstorms IMU units, I could turn it in to a rich man's algorithm :) (yes, already emailed, no reply :( )

_________________
Mike aka Spiked3
http://www.spiked3.com


Sun Jun 10, 2012 2:58 pm
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
I wrote a plotting program for NXT/Robotc datalogs. Read about it here http://www.spiked3.com/?p=345

Image

Nevermind :| RobotC, Datalog, Grrrrr.

_________________
Mike aka Spiked3
http://www.spiked3.com


Mon Jun 11, 2012 7:08 pm
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
Xander, I hope its ok to post a question to you here, if its not, just ban me :|
I read your article about smoothing the lineleaders reading, and I was curious, was this because you were receiving data that looked like this?
If so, would dampening it be the correct choice, versus just ignoring (ie continue previous course of action) it when it spikes to 100? Or maybe enter some sort off 'lost' behavior?

Side question: I am eagerly anticipating being able to order a Mindsensors IMU soon (finally got a reply; "soon"). Any chance I can get your updated RobotC drivers for it early?

Thanks.


Attachments:
pie.png
pie.png [ 57.88 KiB | Viewed 2861 times ]

_________________
Mike aka Spiked3
http://www.spiked3.com
Thu Jun 14, 2012 10:28 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3155
Location: Rotterdam, The Netherlands
Post Re: Minsensor Lineleader
The reason I did this was to allow me to more easily detect a crossing or a T-junction with my maze following robot.

As for the driver, I don't have the sensor yet either but when I do, I will start working on it :) I'll ping Deepak about it.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Jun 15, 2012 12:41 am
Profile WWW
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
I feel the need ... the need for speed;


_________________
Mike aka Spiked3
http://www.spiked3.com


Sun Jun 17, 2012 7:03 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3155
Location: Rotterdam, The Netherlands
Post Re: Minsensor Lineleader
Wow, that thing is fast! Nice job!

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Sun Jun 17, 2012 7:30 am
Profile WWW
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: Minsensor Lineleader
Wow! :eek: That thing is on fire!!

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Sun Jun 17, 2012 9:50 am
Profile WWW
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Minsensor Lineleader
thanks :) notice the mat is on a table, I really wish the camera had been rolling for the blooper reel :lol: There is a reason an easy to reach and hit button got added on top.

_________________
Mike aka Spiked3
http://www.spiked3.com


Mon Jun 18, 2012 1:21 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3155
Location: Rotterdam, The Netherlands
Post Re: Minsensor Lineleader
This is why I test my robots on the ground, haha. I have had many a robot nose-dive right off the table onto one of my two unsuspecting dogs.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Jun 18, 2012 2:01 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.